M13 AWS preship does not respect GEOGTRAN WKT?
cc - josh townsend ; @debasisc ; @gehrmann ; @marneson
-
My understanding was that M13 pre-ship would resolve the issue that custom GEOGTRAN WKT was not read by Apache SIS. Can you please clarify what is going wrong with the request below?
**Request **
{
"fromCRS" : "{\"authCode\":{\"auth\":\"SHELL\",\"code\":\"504191052\"},\"lateBoundCRS\":{\"authCode\":{\"auth\":\"EPSG\",\"code\":\"4191\"},\"name\":\"GCS_Albanian_1987\",\"type\":\"LBC\",\"ver\":\"PE_10_9_1\",\"wkt\":\"GEOGCS[\\\"GCS_Albanian_1987\\\",DATUM[\\\"D_Albanian_1987\\\",SPHEROID[\\\"Krasovsky_1940\\\",6378245.0,298.3]],PRIMEM[\\\"Greenwich\\\",0.0],UNIT[\\\"Degree\\\",0.0174532925199433],AUTHORITY[\\\"EPSG\\\",4191]]\"},\"name\":\"Albanian 1987 [50102_4191]\",\"singleCT\":{\"authCode\":{\"auth\":\"SHELL\",\"code\":\"50102\"},\"name\":\"Albanian_1987_to_WGS_84_Shell_2\",\"type\":\"ST\",\"ver\":\"PE_10_9_1\",\"wkt\":\"GEOGTRAN[\\\"Albanian_1987_to_WGS_84_Shell_2\\\",GEOGCS[\\\"Albanian_1987\\\",DATUM[\\\"Albanian_1987\\\",SPHEROID[\\\"Krassowsky_1940\\\",6378245,298.3,AUTHORITY[\\\"EPSG\\\",\\\"7024\\\"]],AUTHORITY[\\\"EPSG\\\",\\\"6191\\\"]],PRIMEM[\\\"Greenwich\\\",0,AUTHORITY[\\\"EPSG\\\",\\\"8901\\\"]],UNIT[\\\"degree\\\",0.0174532925199433,AUTHORITY[\\\"EPSG\\\",\\\"9102\\\"]],AXIS[\\\"Lat\\\",north],AXIS[\\\"Lon\\\",east],AUTHORITY[\\\"EPSG\\\",\\\"4191\\\"]],GEOGCS[\\\"WGS_84\\\",DATUM[\\\"World_Geodetic_System_1984_ensemble\\\",SPHEROID[\\\"WGS_84\\\",6378137,298.257223563,AUTHORITY[\\\"EPSG\\\",\\\"7030\\\"]],AUTHORITY[\\\"EPSG\\\",\\\"6326\\\"]],PRIMEM[\\\"Greenwich\\\",0,AUTHORITY[\\\"EPSG\\\",\\\"8901\\\"]],UNIT[\\\"degree\\\",0.0174532925199433,AUTHORITY[\\\"EPSG\\\",\\\"9102\\\"]],AXIS[\\\"Lat\\\",north],AXIS[\\\"Lon\\\",east],AUTHORITY[\\\"EPSG\\\",\\\"4326\\\"]],METHOD[\\\"Geocentric_Translation\\\"],PARAMETER[\\\"X_Axis_translation\\\",24,AUTHORITY[\\\"EPSG\\\",\\\"8605\\\"]],PARAMETER[\\\"Y_Axis_translation\\\",-130,AUTHORITY[\\\"EPSG\\\",\\\"8606\\\"]],PARAMETER[\\\"Z_Axis_translation\\\",-92,AUTHORITY[\\\"EPSG\\\",\\\"8607\\\"]],AUTHORITY[\\\"SHELL\\\",\\\"50102\\\"],AUTHORITY[\\\"SHELL\\\",\\\"50102\\\"]]\"},\"type\":\"EBC\",\"ver\":\"PE_10_9_1\"}",
"toCRS" : "{\"authCode\":{\"auth\":\"EPSG\",\"code\":\"4326\"},\"name\":\"GCS_WGS_1984\",\"type\":\"LBC\",\"ver\":\"PE_10_9_1\",\"wkt\":\"GEOGCS[\\\"GCS_WGS_1984\\\",DATUM[\\\"D_WGS_1984\\\",SPHEROID[\\\"WGS_1984\\\",6378137.0,298.257223563]],PRIMEM[\\\"Greenwich\\\",0.0],UNIT[\\\"Degree\\\",0.0174532925199433],AUTHORITY[\\\"EPSG\\\",4326]]\"}",
"points" : [ {
"x": 20.0,
"y": 41.0,
"z" : 0
} ]
}
Should pass on the WKT to SIS which should understand the GEOGTRAN and engine do the calculations. However response is:
{
"code": 400,
"reason": "Error",
"message": "Bad request"
}
I do not know why this does not work. Is there something wrong or is convert not using the latest merge?
Edited by Bert Kampes