[Gdal-dev] Calculating Polyline lengths in a file

Dylan Beaudette dylan.beaudette at gmail.com
Tue Nov 7 18:17:50 EST 2006


Hi Matt,

the results from most PostGIS operations are in the same units as your 
geometry is in.

On Tuesday 07 November 2006 14:26, matt.pettis at thomson.com wrote:
> Is there an easy way to calculate the lengths of polyline objects in a
> shapefile (i have a shapefile of roads for a county, and want to find the
> total length)?  Is there an OGR tool to do this, or does anybody know of
> another tool?
>
> I have done this halfway a hard way... I imported my file into
> PostgreSQL/PostGIS, and applied length2d to it, and got a number.  However,
> I can't find documentation for what the units of the result are in.  Does
> anybody know the answer to this question as well, as long as I am here?
>
> TIA,
> Matt
>
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev

-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341



More information about the Gdal-dev mailing list