Thanks for the info guys.
GML 2.0 does support srs attributes according to the spec (and JTS claims to too according to that spec).
But I'm not sure if my srsName declaration is having any effect. Using 69.1 miles per degree of latitude (assuming the result is in degrees of latitude) gives 133.8 miles and the actual distance is 141.0. This difference could be due to using a 2d projection instead of spherical.
Zachary you were correct about the coordinate order. It should be long,lat.
Either way, not being familiar with GML or GIS this is all getting way to complicated for me as a method to find the distance in miles between two coordinates of lat/lng. I am just going to use an implementation of the Haversine function in my app to calculate the distances I need.
Thanks again,
-Jesse
Hi Jesse,
as Zachary thankfully pointed out, our implementation only supports GML 2.0. It is based on the JTS library [1], which seems to return a NullPointerException for geo elements that do not comply with 2.0. I’ve slightly updated the error message [2] to make clearer what’s going on.
Best,
Christian