EricSoroos commented on issue #34748:
URL: https://github.com/apache/superset/issues/34748#issuecomment-3427951726

   @LordMatalas Your geojson string needs to look like:
   ```
   { "type": "Feature", 
      "geometry": { "type": "polygon", "coordinates": ...}, 
      "properties": {...}
   }
   ```
   Which is not what anyone expects when trying this the first time. 
   
   I'm building a column from a table with a wkb_geometry column like this:
   ```
   SELECT
     json_build_object(
       'type', 'Feature', 
       'geometry', st_asgeojson(wkb_geometry)::jsonb,
       'properties', '{}'::jsonb || 
(row_to_json("cd93663d-4387-43a1-99c3-667a0d07b245".*)::jsonb - 'wkb_geometry' 
))::text as geom
   FROM "cd93663d-4387-43a1-99c3-667a0d07b245"
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to