-
Notifications
You must be signed in to change notification settings - Fork 443
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
Fix GML coordinates and srsName parsing #553
Conversation
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
Signed-off-by: Martin Davis <mtnclimb@gmail.com>
* Remove spaces after commas, for when they are used as separators (default). | ||
* This prevents coordinates being split by the tuple separator | ||
*/ | ||
t = t.replaceAll(",\\s+", ","); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also handle spaces before comma as well?
<gml:Point gml:id="p21" srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
<gml:coordinates>45.67 ,88.56</gml:coordinates>
</gml:Point>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, probably should
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
…ma separators Signed-off-by: Martin Davis <mtnclimb@gmail.com>
coordinates
element parsing now handles spaces before and after comma separatorssrsName
attribute parsing now extracts the final numeric value as the geometry SRIDSigned-off-by: Martin Davis mtnclimb@gmail.com