AtlasOfLivingAustralia / spatial-hub

New spatial portal front end using AngularJS
https://spatial.ala.org.au/
7 stars 16 forks source link

Grails 4 upgrade #420

Closed qifeng-bai closed 2 years ago

qifeng-bai commented 3 years ago

Includes: Spatial hub Spatial service

qifeng-bai commented 3 years ago

Known Issues:

max =-1 in hibernate is supported by > grails 4 Incompatible Grails.converter:

When grails 4 load configurations like this:

` projections:
    3857:
      label: 'Pseudo-Mercator -- Spherical Mercator'
      definition:
        code: 'EPSG:3857' # leaflet supported, uses startup lat,lon,zoom

    4326:
      label: 'World Geodetic System 1984'
      definition:
        code: 'EPSG:4326' # leaflet supported, uses startup lat,lon,zoom`

It does not treat it as a Map, and key is 3857, 4326.

It treats it as an array,  4326 is an index.  It ends up with an array of 4326 elements. 
We need to add "" on the number to turn it to string