[Qgis-user] [SPAM] Unit of length determined by layer or project CRS? (OTFon)

Piotr Kania p.kania at op.pl
Sat Oct 24 12:40:50 PDT 2015


Hi!

Try Quick map Services plugin- I use it in my project with local Polish crs (epsg 2180) and everything works-units are meters, measure tools and calculations made with field calculator are correct, in project settings I had to set: crs on the fly, than I could choose epsg 2180.

24 paź 2015 20:55 magerlin <MAP at ramboll.dk> napisał(a):
>
> I am a bit confused about what the unit of length is determined by: CRS for
> layer or CRS for project (when OTF is on).
>
> This post
> <http://osgeo-org.1560.x6.nabble.com/RE-How-Do-I-Set-Field-Calculator-Units-For-Area-td4128975.html#a4128979> 
> claims: "Calculations are in the project CRS unit if OTFR is enabled"
>
> I have loaded OSM shapefiles from geofabrik.de which come in lat/lon (EPSG:
> 4326).
>
> But since I show it on top of an OSM map using the OpenLayers plugin, the
> project CRS is set to EPSG: 3857 (WGS 84 / Pseudo Mercator) and OTF is set
> on.
>
> EPSG: 3857 has in its definition "+units=m".
>
> But when I in field calculator calculates the length using $length, the
> lenght of a road section which is about 100 m long is calculated as about
> 0.001.
>
> This indicates for me that it is calculated in degrees (due to the layer
> CRS?)
>
> Using the Qgis measure tool (with units set to meters) gives the expected
> length of 100 m.
>
> -----
> Regards Morten
>
> Currently using Qgis 2.10.1 (OSGeo4),
> Windows 7, 64bit
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/Unit-of-length-determined-by-layer-or-project-CRS-OTF-on-tp5232374.html
> Sent from the Quantum GIS - User mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the Qgis-user mailing list