Skip to content

Commit

Permalink
🐛(opendata) fix statiques dataset SQL query
Browse files Browse the repository at this point in the history
As the coordonneesXY field is stored with a generic bytea type, we need
to cast it first as a Geometry field before performing actions/queries
on it.
  • Loading branch information
jmaupetit committed Jan 27, 2025
1 parent d8152c7 commit 6045f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opendata/data7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ default:
implantation_station,
adresse_station,
code_insee_commune,
ST_AsGeoJSON ("coordonneesXY")::json -> 'coordinates' AS "coordonneesXY",
ST_AsGeoJSON ("coordonneesXY"::geometry)::json -> 'coordinates' AS "coordonneesXY",
nbre_pdc,
id_pdc_itinerance,
id_pdc_local,
Expand Down

0 comments on commit 6045f07

Please sign in to comment.