5

In reference to this post I am trying to create a map based web application using gvNIX to hold location data on health faciilities. Am following this tutorial as a guide. When issuing the command:

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

I get the error:

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

Am new to GIS and am assuming that EPSG4210 is the correct Coordinate Referencing System for Tanzania? How may I overcome this error?

Kind regards, T

Community
  • 1
  • 1
Tumaini Kilimba
  • 195
  • 2
  • 15

1 Answers1

0

This projection is not included on gvNIX, so it can't handle it by default.

To use this projection you must follow this steps:

  1. Create the view using a register projection (4326 by example)

  2. Modify show.jspx to use your projection (EPSG4210)

  3. Register this projection in proj4leaflet-custom-proj.js file (there you can find an example which defines EPSG:25830) (see leaflet plugin project)

    Good luck!

Community
  • 1
  • 1
jmvivo
  • 2,653
  • 1
  • 16
  • 20