Re: [JPP-Devel] Run datastore query too tied to schema with Spatialide DS

2020-09-28 Thread edgar . soldin
On 28.09.2020 21:46, Rahkonen Jukka (MML) wrote: > Yes, the only robust way to deal with SpatiaLite and GeoPackage geometries > would probably be to use the duck test like our DB Query Plugin does. If the > result is a blob that like a SpatiaLite BLOB or like a GeoPackage BLOB, then > it probabl

Re: [JPP-Devel] Run datastore query too tied to schema with Spatialide DS

2020-09-28 Thread Rahkonen Jukka (MML)
Yes, the only robust way to deal with SpatiaLite and GeoPackage geometries would probably be to use the duck test like our DB Query Plugin does. If the result is a blob that like a SpatiaLite BLOB or like a GeoPackage BLOB, then it probably is so. However, it may get complicated to support this

Re: [JPP-Devel] Run datastore query too tied to schema with Spatialide DS

2020-09-28 Thread edgar . soldin
hey Jukka, looked a bit deeper. sqlite is not really tagging cols retrieved in the metadata apart from known col types (eg. text,blob,...) . it obviously is is totally ignorant of geometries. as a workaround we could "transport" a type information in the col name which is then used in OJ only.

Re: [JPP-Devel] Run datastore query too tied to schema with Spatialide DS

2020-09-28 Thread edgar . soldin
well, at least spatialite works again :)) yayhh. wrt. the issue below. https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteValueConverterFactory.java#l47 is where the column type is "detected" and it uses the column name to do s

[JPP-Devel] SVN: [6555] core/trunk/src/com/vividsolutions/jump/datastore/spatialite/ SpatialiteValueConverterFactory.java

2020-09-28 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6555 http://sourceforge.net/p/jump-pilot/code/6555 Author: edso Date: 2020-09-28 13:06:25 + (Mon, 28 Sep 2020) Log Message: --- little workaround to fetch geom coltype by using sql select as Modified Paths: -- core/trunk/src/com/vividsolutions

[JPP-Devel] Run datastore query too tied to schema with Spatialide DS

2020-09-28 Thread Rahkonen Jukka (MML)
Hi, When using Spatialite/Geopackage as data source OpenJUMP seems to check the schema too literally. While this works SELECT geom FROM test LIMIT 1; the same query with a simple alias gives an error SELECT geom AS geometry FROM test LIMIT 1; java.lang.Exception: java.lang.Exception: Result Set