Le 19/11/2010 07:22, Ari Jolma a écrit :
On 11/18/2010 03:52 PM, Ludovic Granjon wrote:Hi allI try to calculate the length of a linestring in python.But is there a way in python with ogr to calculate this. I see there's a GetLength() in the OGRLineString Class Reference http://www.gdal.org/ogr/classOGRLineString.html#7b3dc3abefd16aea17ac9fcc0ccd0010 , but I don't see if there's the same thing in python ?I forgot to mention that Length is the name of the method in the OGC Simple Features specification. In a sprint in Barcelona I added that method and others like Area. There was (non-standard) GetArea before but no GetLength. GetArea still exists but is deprecated (although there is no official deprecation procedure in GDAL).Best regards, AriThanks _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
Thanks for your answer Best regards Ludovic
<<attachment: ludovic_granjon.vcf>>
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
