Open DoraKar opened 1 month ago
Dear @DoraKar,
could you please provide a sample dataset to replicate the error? Thanks
Here is the sample dataset: su-grid-dataset.zip
Dear @DoraKar,
the attributes srsName
and srsDimension
cannot be present in the <gml:PolygonPatch>
element (see schema validation error in the screenshot below) since they are attributes of the <gml:LinearRing>
and/or <gml:posList>
elements.
Example:
<su-grid-2021:geometry>
<gml:PolygonPatch>
<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2" srsName="http://www.opengis.net/def/crs/EPSG/0/3035">2186000 5019000 2186000 5020000 2187000 5020000 2187000 5019000 2186000 5019000</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:PolygonPatch>
</su-grid-2021:geometry>
Please ensure that you make the required corrections to your GML file.
Dear @fabiovinci ,
Thank you for your insight regarding the <gml:LinearRing>
element. We will proceed to add the attributes as suggested.
However, we are encountering an issue where GeoServer, which we use for data display, seems to ignore these attributes when generating the XML file. Specifically, GeoServer outputs the <gml:LinearRing>
element without the attributes we’ve added.
When we apply these attributes to the <gml:PolygonPatch>
element, GeoServer retains them, and they are correctly visible in the XML output.
Additionally, we’ve noticed the same issue when adding the XML file to QGIS (v. 3.16.5). If we manually add these attributes to the <gml:LinearRing>
element and then upload the file to QGIS, the coordinate system is not recognized.
Are you familiar with these issues in GeoServer or QGIS? If so, do you have any suggestions on how we might resolve them?
Thank you in advance for your assistance!
Kind regards, Dora su-grid-dataset-linear ring.zip
Hi,
Our response includes statistical grid cell with PolygonPatch geometry that has EPSG code. While validating the response, validator throws an error:
cvc-complex-type.3.2.2: Attribute 'srsName' is not allowed to appear in element 'gml:PolygonPatch'
Attribute 'srsName' is allowed by INSPIRE specification, but still validator throws an error. By removing the attribute, all tests pass. Is there an option of generating the response that will containt srsName and will pass INSPIRE validator tests or is there a bug in validator?Thank you for your response.
Kind regards, Dora