On 8/19/19 9:58 PM, Alexander Quilliam wrote:
      I get the following exception when I attempt to execute org.geotools.referencing.CRS.decode(String):

org.opengis.referencing.FactoryException: Database failure while creating a 'Datum' object for code "6269".
...
Caused by: java.sql.SQLSyntaxErrorException: incompatible data type in conversion: from SQL type INTEGER to java.sql.Date, value: 1986



I've been trying to use EPSG:26918, but appears to occur with any EPSG SRID. I've been executing it like: CRS.decode("EPSG:26918").

Here's the relevant section of my pom:
 <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<geotools.version>22-SNAPSHOT</geotools.version>
...
<version>${geotools.version}</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>21.2</version>


Any help with this would be greatly appreciated.

you shouldn't mix geotools versions, but I doubt that this is the cause of the problem. The syntax you are using is correct. Are you providing a hsql dependency?

really odd...

-M



_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to