|
Fails to create a spatialite FeatureType when it contains fields with any of the following java.sql.Types: BOOLEAN, SMALLINT, BIGINT, DOUBLE, NUMERIC, DATE, TIME and TIMESTAMP.
Failure trace is:
java.io.IOException: Error occurred creating table at org.geotools.jdbc.JDBCDataStore.createSchema(JDBCDataStore.java:757) Caused by: java.lang.RuntimeException: Unable to map bigdecimal( java.math.BigDecimal) at org.geotools.jdbc.JDBCDataStore.createTableSQL(JDBCDataStore.java:2102) at org.geotools.jdbc.JDBCDataStore.createSchema(JDBCDataStore.java:743) ... 21 more
It would be nice to support at least the core JDBC type mapping: https://github.com/geotools/geotools/blob/aa0d0346e4bb4a5a2055559c22d2b12ded7cbd20/modules/library/jdbc/src/main/java/org/geotools/jdbc/SQLDialect.java#L313
Bug rised when copying FeatureTypes from other database engines to Spatialite: https://github.com/oscarfonts/gt-exporter
|