Thanks. Not likely to get any support under my current contract. I'm
not sure if there is an abstract SQL way to do this, but with postGIS
something like
select st_geometryType(the_geom) as gts from xxx group by gts
should be reasonably quick. The good thing is that this is not a run
time activity, so mildly slow performance should not be a big issue for
most people.
On 5/11/2022 3:28 AM, Andrea Aime wrote:
The guessing happens by loading a single record from the database. I
guess it could try to use a few more records, but certainly not all of
them (might take minutes or hours on very large tables).
I'd say it's a possible minor improvement request, which we ask users
to report only if they intend to back it with development time or
funding (feature requests are otherwise closed after
one year of inactivity).
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users