[GRASSLIST:695] d.measure units

Tom Russo russo at bogodyn.org
Thu Apr 13 01:16:49 EDT 2006


The manual for d.measure says that it outputs distances in the units of the
current location, but as far as I can tell it only outputs in meters.

I'm using grass 6.1cvs, updated a few days ago.  My location was created
by importing a shapefile with v.in.ogr and the "location=" flag.  My shapefile
came from a county GIS department, and had the following prj file:

PROJCS["NAD_1983_HARN_StatePlane_New_Mexico_Central_FIPS_3002_Feet",
  GEOGCS["GCS_North_American_1983_HARN",
     DATUM["D_North_American_1983_HARN",
       SPHEROID["GRS_1980",6378137.0,298.257222101]],
     PRIMEM["Greenwich",0.0],
     UNIT["Degree",0.0174532925199433]],
  PROJECTION["Transverse_Mercator"],
  PARAMETER["False_Easting",1640416.666666667],
  PARAMETER["False_Northing",0.0],
  PARAMETER["Central_Meridian",-106.25],
  PARAMETER["Scale_Factor",0.9999],
  PARAMETER["Latitude_Of_Origin",31.0],
  UNIT["Foot_US",0.3048006096012192]]

(I've reformatted this from the single line in the .prj file so it is more
readable here)

On import, grass warns me about the unknown datum and that I won't be able
to reproject from here, but otherwise works fine.  The PROJ_INFO file contains:

name: Transverse Mercator
proj: tmerc
a: 6378137.0
es: 0.006694380022900787
lat_0: 31
lon_0: -106.25
k: 0.999900
x_0: 500000.0000000002
y_0: 0
no_defs: defined

and PROJ_UNITS contains:

unit: Foot_US
units: Foot_USs
meters: 0.3048006096012192

But each time I use d.measure, with or without the "-m" flag, it reports all
distances in meters (and does so correctly, but requires that I reconvert
back to US feet by hand).

The man page says that d.measure's only supposed to report in meters with
-m (or presumably if the location's units are meters).  What's up here?  Bug,
incorrect documentation, or error between keyboard and chair?

-- 
Tom Russo    KM5VY     SAR502  DM64ux         http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick




More information about the grass-user mailing list