Hi list,

I'm running into this issue with GeoServer 2.8.2/GeoTools 14.2:

https://osgeo-org.atlassian.net/browse/GEOT-5079

This happens when the Postgres user used in the GS/GT datastore doesn't
have permissions to read from the geography/geometry_columns tables, or if
a record for the geom doesn't exist in those tables. GeoTools falls back to
trying to use a non-existent DIMENSION() function to get the number of
coordinate dimensions from a sample geometry. Testing with GeoServer, every
configured layer throws this error during startup, which causes several
minutes of delay.

Although this is a database configuration problem, GeoTools should fall
back to using a working function to determine dimensionality. Based on the
contents of geometry_columns.coord_dimension, the function should be
ST_NDims. I can make a quick PR, just following contributor protocol here,
especially since I don't see updates from this JIRA ticket coming through
on the mailing list.

Also, I can't figure out a good solution for a test case here, and it's
such a small change I'm not sure if it needs one? Any suggestions?

Thanks,
Shane
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to