3
« on: January 05, 2016, 12:19:32 PM »
Hi,
Can you help me understand how to use the new vertical datums feature in 1.2? I have downloaded navd88-09.tif and placed in the geoids folder (on mac inside the PhotoScanPro.app package). I have a project with reference entered in longitude, latitude, WGS84 ellipsoid altitude, using EPSG::4326. I can successfully Build DEM using any normal coordinate system, and a built in compound coordinate system like the "NAD83 + NAVD88 height EPSG::5498".
However, all of the coordinate systems I use (US State Planes and UTM zones) don't have built-in entries. So, to get one that's directly useful, I save the NAD83 + NAVD88 entry to a .prj file that looks like:
COMPD_CS["NAD83 + NAVD88 height",
GEOGCS["NAD83",
DATUM["North American Datum 1983",
SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6269"]],
PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9102"]],
AUTHORITY["EPSG","4269"]
],
VERT_CS["NAVD88 height",
VERT_DATUM["North American Vertical Datum 1988",2005,AUTHORITY["EPSG","5103"]],
UNIT["metre",1,AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","5703"]
],
AUTHORITY["EPSG","5498"]
]
I change only the top level name, the GEOGCS block, and remove the outer Authority block for a horizontal CRS that I want, like California State Plane Zone 3. The resulting prj:
COMPD_CS["California Zone 3 + NAVD88 height",
PROJCS["NAD83(HARN) / California zone 3",
GEOGCS["NAD83(HARN)",
DATUM["NAD83 (High Accuracy Reference Network)",
SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY["EPSG","6152"]
],
PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],
UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9102"]],
AUTHORITY["EPSG","4152"]
],
PROJECTION["Lambert_Conformal_Conic_2SP",AUTHORITY["EPSG","9802"]],
PARAMETER["latitude_of_origin",36.5],
PARAMETER["central_meridian",-120.5],
PARAMETER["standard_parallel_1",38.4333333333333],
PARAMETER["standard_parallel_2",37.0666666666667],
PARAMETER["false_easting",2000000],
PARAMETER["false_northing",500000],
UNIT["metre",1,AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","2768"]
],
VERT_CS["NAVD88 height",
VERT_DATUM["North American Vertical Datum 1988",
2005,
AUTHORITY["EPSG","5103"]
],
UNIT["metre",1,AUTHORITY["EPSG","9001"]],
AUTHORITY["EPSG","5703"]
]
]
The VERT_CS part is totally unchanged. I can import this, and PhotoScan recognizes the name of the new CRS and that it has a Vertical Datum. However, when I try to Build DEM with this CRS, I get an "Unsupported vertical datum" dialog and a log message "Error: Vertical datum missing" in the console. Clearly the datum is supported and present as the exact same VERT_CS worked before.
How is this supposed to work, or what am I doing wrong? I can reproduce the exact same steps and error using python (and building PhotoScan.CoordinateSystems with strings instead of importing .prj files). Given that there's at least one geoid on the website (Australia) that has no built in compound CRS entries, it seems like you must be able to build arbitrary combinations manually?