-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
GML format always returns 3d geometries #15617
Comments
what is your WFS server?put its parameters on; |
I don't know the reasoning, but the GML2 parser always produces a openlayers/src/ol/format/GML2.js Lines 90 to 99 in 16e6f37
|
See #6620 for an explanation. I don't know if what's written there is true though, so if anyone has an idea for a fix, a pull request would be welcome. |
I think the format of (x,y) is diffrent of (x,y,0);the first is 2d,another is 3d;z=0 does not mean 2d;so fix it just add push(x,y) case; |
@jacklinna I think that makes sense. Would you be able to create a pull request? |
When i parse a WFS response with a GML2 format, the features geometries have always three dimensions, even if the WFS response had only 2.
Stackblitz Demo
Same happens for WFS 2.0.0 with GML 3.2. I would expect to get geometries with XY layout not XYZ with fake Z dimension.
The text was updated successfully, but these errors were encountered: