[pgrouting-users] question : Shortest Path Shooting star using
python
Daniel Kastl
daniel at georepublic.de
Thu Feb 2 23:18:06 EST 2012
>
>
>
> Taking the third element of each line (that is '0.00087415387662070204'
> for the first line) as what I think as 'road length',
> I got total value of 0.0447577289587.
>
> If '0.0447577289587' the total length of route, what is it's 'Unit of
> measure' ?
The unit is the unit of your projection. It's probably degree in your case.
> How to got value in 'Kilometers/meters' ?
>
You can transform your projection for example to some meter projection like
"World Mercator" (ie. EPSG:3785).
Then length(geometry) will be in meter.
Like "SELECT length(ST_transform(<geometry column>,3785)) AS meter FROM
<table>".
Daniel
>
> Note : When I try to count the route using same start Lat/Lon and end
> lat/lon, google map said it was about 2.1 km
>
> Sincerely
> -bino-
>
> ______________________________**_________________
> Pgrouting-users mailing list
> Pgrouting-users at lists.osgeo.**org <Pgrouting-users at lists.osgeo.org>
> http://lists.osgeo.org/**mailman/listinfo/pgrouting-**users<http://lists.osgeo.org/mailman/listinfo/pgrouting-users>
>
--
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
Web: http://georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/pgrouting-users/attachments/20120203/319fcae6/attachment.html
More information about the Pgrouting-users
mailing list