Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PolygonPatch with attribute 'srsName' #1106

Open
DoraKar opened this issue Aug 12, 2024 · 4 comments
Open

PolygonPatch with attribute 'srsName' #1106

DoraKar opened this issue Aug 12, 2024 · 4 comments
Assignees
Labels
user-to-fix Problem is present on user side

Comments

@DoraKar
Copy link

DoraKar commented Aug 12, 2024

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

@fabiovinci
Copy link
Collaborator

Dear @DoraKar,

could you please provide a sample dataset to replicate the error?
Thanks

@fabiovinci fabiovinci added the question Further information is requested label Aug 23, 2024
@DoraKar
Copy link
Author

DoraKar commented Aug 23, 2024

Here is the sample dataset:
su-grid-dataset.zip

@fabiovinci
Copy link
Collaborator

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.

image

@fabiovinci fabiovinci added user-to-fix Problem is present on user side and removed question Further information is requested labels Aug 26, 2024
@DoraKar
Copy link
Author

DoraKar commented Aug 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-to-fix Problem is present on user side
Projects
None yet
Development

No branches or pull requests

2 participants