hello, I found an answer for question 4:<br><br>I can use ST_length_spheroid<br><br><span style="font-family: courier new,monospace;">select ST_length_spheroid(GeomFromText('LINESTRING(0 0,90 0)',4326),'SPHEROID["WGS 84",6378137,298.257223563]');<br>
i get 10018754.1713946 so it is OK<br><br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">select ST_length_spheroid(GeomFromText('LINESTRING(0 45,90 45)',4326),'SPHEROID["WGS 84",6378137,298.257223563]');<br>
</span><span style="font-family: courier new,monospace;">i get </span><span style="font-family: courier new,monospace;">6690232.93269468 so it is smaller as should be</span><br><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">select ST_length_spheroid(GeomFromText('LINESTRING(0 90,90 90)',4326),'SPHEROID["WGS 84",6378137,298.257223563]');<br>and at the north pole I get 0 so SUPER!<br>
<br>But is it a good way to calculate the length??<br></span><br>I found in PostGIS Reference:<br>ST_length_spheroid(geometry,spheroid) Calculates the length of of a geometry on an ellipsoid. <b>This is useful if the coordinates of the geometry are in latitude/longitude and <u>a length is desired without reprojection.</u></b> <br>
<br>so is there any other way to do that? maybe it is faster with reprojection?<br><br>Simon<br><br>