Hello Paul
(cc grass5)
I'm just having import fun with projections and would like
to hear your opinion:
Trying to import the German FRIDA free vector data extended by a .prj
file which looks like this:
cat frida-1.0-shp-joined/proj.prj
PROJCS["Transverse Mercator",GEOGCS["bessel",DATUM["D_Deutsche_Hauptdreiecksnetz",SPHEROID["bessel",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",9],PARAMETER["scale_factor",1],PARAMETER["false_easting",3500000],PARAMETER["false_northing",0],UNIT["Meter",1]]
I face the following problem:
v.in.ogr dsn=frida-1.0-shp-joined/strassen-joined.shp output=strassen location=frida
A datum name potsdam (Deutsches_Hauptdreiecksnetz) was specified without transformation parameters.
Now select Datum Transformation Parameters
Enter 'list' to see the list of available Parameter sets
Enter the corresponding number, or <RETURN> to cancel request
Checking the name, reports:
grep -i Hauptdreiec ~/grass57/lib/gis/*
~/grass57/lib/gis/datum.table:potsdam "Deutsches_Hauptdreiecksnetz" bessel dx=606.0 dy=23.0 dz=413.0
Since ESRI uses the (gramatically wrong) 'D_Deutsche_Hauptdreiecksnetz', GRASS fails to
find the values. So far no surprise.
To overcome the problem I would like to add 'D_Deutsche_Hauptdreiecksnetz'
in lib/gis/datum.table. But I assume that I should add the 7 parms version
which I could extract from the EPSG SQL database
(should be identical to 'DHDN' = Deutsches HauptDreiecksNetz):
I created a VIEW 'datum_parameters_tidied' like this:
SELECT o.coord_op_name, m.coord_op_method_name, p.parameter_name, pu.sort_order, pv.parameter_value, u.unit_of_meas_name, a.area_name FROM ((((((epsg_coordoperation o JOIN epsg_coordoperationmethod m ON ((m.coord_op_method_code = o.coord_op_method_code))) JOIN epsg_coordoperationparamvalue pv ON (((pv.coord_op_method_code = o.coord_op_method_code) AND (pv.coord_op_code = o.coord_op_code)))) JOIN epsg_coordoperationparamusage pu ON (((pu.coord_op_method_code = o.coord_op_method_code) AND (pu.parameter_code = pv.parameter_code)))) JOIN epsg_coordoperationparam p ON ((p.parameter_code = pv.parameter_code))) JOIN epsg_unitofmeasure u ON ((u.uom_code = pv.uom_code))) JOIN epsg_area a ON ((a.area_code = o.area_of_use_code))) WHERE (((o.coord_op_type = 'transformation'::character varying) AND (o.coord_op_name ~~ '%WGS 84%'::text)) AND (o.deprecated = 0)) ORDER BY o.coord_op_name;
which then reports:
select * from datum_parameters_tidied where coord_op_name ~ 'DHDN';
[ see attached file dhdn_datum_parameters.csv ]
Question: which one to pick? I assume the
'Position Vector 7-param. transformation'...
Recommendations are welcome.
Thanks
Markus
(attachments)
dhdn_datum_parameters.csv (1.9 KB)