Weltstaat opened a new issue, #538:
URL: https://github.com/apache/incubator-baremaps/issues/538

   Hi,
   
   I'm trying to export vector tiles from a Postgres DB using baremaps map 
export. 
   
   I followed the tutorial https://www.baremaps.com/examples/openstreetmap/ and 
created a custom tileset.json file:
   
   ```
     "tilejson": "2.2.0",
     "center": [
       15.9234124,
       28.6031286,
       8.0
     ],
     "bounds": [
       18.3840463,
       29.9738913,
       13.2001493,
       27.0776233
     ],
     "minzoom": 8.0,
     "maxzoom": 22.0,
     "tiles": [
       "http://localhost:9000/tiles/{z}/{x}/{y}.mvt";
     ],
     "vector_layers": [
       {
         "id": "roads",
         "queries": [
           {
             "minzoom": 8,
             "maxzoom": 22,
             "sql": "SELECT tags, geom FROM Z16_route_l"
           },
           {
             "minzoom": 16,
             "maxzoom": 22,
             "sql": "SELECT tags, geom FROM Z16_roads_l"
           },
           {
             "minzoom": 15,
             "maxzoom": 16,
             "sql": "SELECT tags, geom FROM Z15_roads_l"
           },
           {
             "minzoom": 14,
             "maxzoom": 15,
             "sql": "SELECT tags, geom FROM Z14_roads_l"
           },
           {
             "minzoom": 13,
             "maxzoom": 14,
             "sql": "SELECT tags, geom FROM Z13_roads_l"
           },
           {
             "minzoom": 12,
             "maxzoom": 13,
             "sql": "SELECT tags, geom FROM Z12_roads_l"
           },
           {
             "minzoom": 11,
             "maxzoom": 12,
             "sql": "SELECT tags, geom FROM Z11_roads_l"
           },
           {
             "minzoom": 10,
             "maxzoom": 11,
             "sql": "SELECT tags, geom FROM Z10_roads_l"
           },
           {
             "minzoom": 9,
             "maxzoom": 10,
             "sql": "SELECT tags, geom FROM Z9_roads_l"
           },
           {
             "minzoom": 8,
             "maxzoom": 9,
             "sql": "SELECT tags, geom FROM Z8_roads_l"
           }
         ]
       }
     ]
   }
   ```
   
   The error message I'm receiving is:
   
   ```
   Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: 
Cannot construct instance of `com.baremaps.model.TileJSON` (although at least 
one Creator exists): no String-argument constructor/factory method to 
deserialize from String value ('tilejson')
    at [Source: (byte[])"
     "tilejson": "2.2.0",
     "center": [
       15.9234124,
       28.6031286,
       8.0
     ],
     "bounds": [
       18.3840463,
       29.9738913,
       13.2001493,
       27.0776233
     ],
     "minzoom": 8.0,
     "maxzoom": 22.0,
     "tiles": [
       "http://localhost:9000/tiles/{z}/{x}/{y}.mvt";
     ],
     "vector_layers": [
       {
         "id": "roads",
         "queries": [
           {
             "minzoom": 8,
             "maxzoom": 22,
             "sql": "SELECT geom FROM Z16_route_l"
           },
           {
          "[truncated 1505 bytes]; line: 2, column: 3]
   ```
   
   I'm kind of stuck here and don't know where the problem lies. Does somebody 
have an idea?
   
   Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to