I am trying to create a custom projection in GeoServer, but I see nothing (from the logs, neither in the SRS_list) coming out. The projection I'm trying to create is a Mercator for Mercury.
I start from the following proj4 string:
+proj=merc +a=2439700 +b=2439700 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs
Then, in Python, I use pyproj to convert it to WKT:
>>> from pyproj.crs import CRS
>>> merc = CRS('+proj=merc +a=2439700 +b=2439700 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs')
>>> merc.to_wkt()
'PROJCRS["unknown",BASEGEOGCRS["unknown",DATUM["unknown",ELLIPSOID["unknown",2439700,0,LENGTHUNIT["metre",1,ID["EPSG",9001]]]],PRIMEM["Reference meridian",0,ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]],CONVERSION["unknown",METHOD["Popular Visualisation Pseudo Mercator",ID["EPSG",1024]],PARAMETER["Latitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8801]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["(E)",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["(N)",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
Which I then append to my GeoServer's /usr/local/tomcat/webapps/ROOT/data/user_projections/epsg.properties
as:
90000000=PROJCRS["Mercator / Mercury", \
BASEGEOGCRS["unknown", \
DATUM["unknown", \
ELLIPSOID["unknown",2439700,0, \
LENGTHUNIT["metre",1, \
ID["EPSG",9001] \
] \
] \
], \
PRIMEM["Reference meridian",0, \
ANGLEUNIT["degree",0.0174532925199433, \
ID["EPSG",9122] \
] \
] \
], \
CONVERSION["unknown", \
METHOD["Popular Visualisation Pseudo Mercator", \
ID["EPSG",1024] \
], \
PARAMETER["Latitude of natural origin",0, \
ANGLEUNIT["degree",0.0174532925199433], \
ID["EPSG",8801] \
], \
PARAMETER["Longitude of natural origin",0, \
ANGLEUNIT["degree",0.0174532925199433], \
ID["EPSG",8802] \
], \
PARAMETER["False easting",0, \
LENGTHUNIT["metre",1], \
ID["EPSG",8806] \
], \
PARAMETER["False northing",0, \
LENGTHUNIT["metre",1], \
ID["EPSG",8807] \
] \
], \
CS[Cartesian,2], \
AXIS["(E)",east,ORDER[1], \
LENGTHUNIT["metre",1, \
ID["EPSG",9001] \
] \
], \
AXIS["(N)",north,ORDER[2], \
LENGTHUNIT["metre",1, \
ID["EPSG",9001] \
] \
] \
]
I then restart GeoServer but nothing comes out in the logs (no error) neither in the Demos/SRS_list. It is like the projection/file is not read.
Clearly, I'm missing something obvious here...Any thoughts?