geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
511 stars 398 forks source link

The TableWidget layer Observatories does not work #4874

Open ElenaGallo opened 4 years ago

ElenaGallo commented 4 years ago

Description

If a TableWidget with the Observatories layer opens on a dashboard , the layer is not visible.

1 The problem comes from the extra spaces found in the 'Type of Ob' and 'Major Inst' attributes. Here the WFS request:

<?xml version="1.0" encoding="UTF-8"?>
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" startIndex="0" maxFeatures="40">
   <wfs:Query typeName="gs:observatories" srsName="EPSG:4326">
      <ogc:PropertyName>Type</ogc:PropertyName>
      <ogc:PropertyName>Observator</ogc:PropertyName>
      <ogc:PropertyName>Observat_1</ogc:PropertyName>
      <ogc:PropertyName>Location</ogc:PropertyName>
      <ogc:PropertyName>Latitude</ogc:PropertyName>
      <ogc:PropertyName>Longitude</ogc:PropertyName>
      <ogc:PropertyName>Establishe</ogc:PropertyName>
      <ogc:PropertyName>Major Inst</ogc:PropertyName>
      <ogc:PropertyName>Elev_m</ogc:PropertyName>
   </wfs:Query>
</wfs:GetFeature>

2 The longitude and latitude attributes are incorrectly coded. si

How to reproduce

1

2

Expected Result

1 All the attributes are visibile in the table

2 The longitude and latitude attributes are coded with a correct form

Current Result

1 The layer is not visible in the table

2 The longitude and latitude attributes are coded in the wrong form

Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users) | Browser Affected | Version | |---|---| |Internet Explorer| | |Edge| | |Chrome| | |Firefox| | |Safari| |

Other useful information

ElenaGallo commented 5 months ago

@tdipisa this issue is still valid