doneill / koop-provider-pg

A postgis provider for koop
Apache License 2.0
14 stars 8 forks source link

RasterData through MapServer endpoint #10

Closed d-paulus closed 11 months ago

d-paulus commented 1 year ago

I have raster/tiles data in an Azure PostgreSQL/PostGIS database. Querying https://localhost:8080/pg/public.rasterdb/MapServer returns "Internal Server Error" with the following log message:

TypeError: Cannot read properties of null (reading 'f_geometry_column') at C:\Users\...\pg-koop\pg-koop\node_modules\koop-provider-pg\src\model\index.js:17:27 {"level":"error","message":"error TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(public, rasterdb)","stack":"Error: TypeError: Cannot read properties of null (reading 'f_geometry_column') on getGeometryColumn(public, rasterdb)\n at C:\\Users\\...\\pg-koop\\pg-koop\\node_modules\\koop-provider-pg\\src\\model\\index.js:44:16"}

Querying https://localhost:8080/pg/public.yem_geojson/FeatureServer/0/query works fine with feature data in another Azure PostgreSQL/PostGIS DB.

d-paulus commented 1 year ago

Would appreciate any guidance on how to get the MapServer endpoint working for raster/tiles data in an Azure PostgreSQL/PostGIS DB. Thanks!

doneill commented 1 year ago

Excuse my delayed response, raster tiles are not supported as they do not have a geometry column like vector data. Would have to add support for raster column.

d-paulus commented 1 year ago

No problem, thanks for getting back. Any plans to support raster column some time soon?

doneill commented 1 year ago

No, not anytime soon