[GRASS5] [bug #4160] (grass) v.in.org location= misses lat_ts and datum settings.

Request Tracker grass-bugs at intevation.de
Thu Mar 9 19:06:38 EST 2006


this bug's URL: http://intevation.de/rt/webrt?serial_num=4160
-------------------------------------------------------------------------

Subject: v.in.org location= misses lat_ts and datum settings.

Hi,

I'm trying to create a new location from a shapefile's .prj info via the
'v.in.ogr location=' method as the documentation is unclear to me.

When I do this it misses the datum and the standard lat settings.


Here is what is listed in the docs:

The projection used [...] is:
Mercator Projection
Central Meridian = 100
Standard Parallel = -46
False Easting = 0
False Northing = 0
Spheroid/Datum = Clarke 1866


here is the contents of the .prj file:

PROJCS["Clarke_1866_Mercator",GEOGCS["GCS_Clarke_1866",DATUM["D_Clarke_1866",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",100.0],PARAMETER["Standard_Parallel_1",-46.0],UNIT["Meter",1.0]]


here is what the PROJ_INFO ends up as:

G61-cvs> g.proj -p
-PROJ_INFO-------------------------------------------------
name       : Mercator
proj       : merc
a          : 6378206.4
es         : 0.006768657997609644
lat_ts     : 0
lon_0      : 100
k          : 1.000000
x_0        : 0
y_0        : 0
no_defs    : defined
-PROJ_UNITS------------------------------------------------
unit       : Meter
units      : Meters
meters     : 1


lat_ts = 0 ??!


G61-cvs> g.region -p
projection: 99 (Mercator)
zone:       0
datum:      ** unknown (default: WGS84) **
ellipsoid:  a=6378206.4 es=0.006768657997609644
north:      -1899000
south:      -5288000
west:       4412000
east:       6974000
nsres:      1000
ewres:      1000
rows:       3389
cols:       2562


Datum is missing, can't blame it as I don't understand how Clark 1866 is the
datum either (as specified in the .prj file).

test data: 
http://www.niwascience.co.nz/ncco/mec/mec_example.zip
http://www.niwascience.co.nz/ncco/mec/mec_manual.pdf/view_pdf



?
thanks
Hamish


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list