Help coordinate system not recognized in gvNIX

Regarding this post, I am trying to create a map-based web application using gvNIX to store location data at healthcare facilities. Follow this guide as a guide. When issuing a command:

web mvc geo controller --class ~.web.MapViewerController --preferredMapping Tanzania --projection EPSG4210 

I get an error message:

 java.lang.IllegalArgumentException: Failed to convert 'EPSG4210' to type ProjectionCRSTypes for option 'projection' No enum constant org.gvnix.addon.geo.addon.ProjectionCRSTypes.EPSG4210 

Is new to GIS and guess EPSG4210 is the correct coordinate system for Tanzania? How can I overcome this mistake?

Regards, T

+5
source share
1 answer

This projection is not included in gvNIX, so it cannot handle it by default.

To use this forecast, follow these steps:

  • Create a view using register projection (4326 for example)
  • Modify show.jspx to use your projection (EPSG4210).
  • Register this projection in the file proj4leaflet-custom-proj.js (there you can find an example that defines EPSG: 25830) (see poster sheet design )

    Good luck

0
source

Source: https://habr.com/ru/post/1240520/


All Articles