Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't open FGB file #1404

Open
nicolas-f opened this issue Jan 17, 2025 · 0 comments
Open

Can't open FGB file #1404

nicolas-f opened this issue Jan 17, 2025 · 0 comments

Comments

@nicolas-f
Copy link
Member

H2GIS 2.2.3

Got this error message when trying to import FGB file (attached)

org.h2.jdbc.JdbcBatchUpdateException: Erreur lors de la conversion de données "GEOMETRY X'00a00000020000086a000000054116b7b066666666415964a4f33333333fa999999999999a4116b78266666666415964a8200000003fa999999999999a4116b3b39999999a415964e1a66666663fa999999999999a4116b138cccccccd41596507533333333fa999999999999a4116aff8cccccccd4159651a6ccccccd3fa999999999999a' (LW_ROADS: ""THE_GEOM"" GEOMETRY(LINESTRING, 2154))"
Data conversion error converting "GEOMETRY X'00a00000020000086a000000054116b7b066666666415964a4f33333333fa999999999999a4116b78266666666415964a8200000003fa999999999999a4116b3b39999999a415964e1a66666663fa999999999999a4116b138cccccccd41596507533333333fa999999999999a4116aff8cccccccd4159651a6ccccccd3fa999999999999a' (LW_ROADS: ""THE_GEOM"" GEOMETRY(LINESTRING, 2154))"; SQL statement:
INSERT INTO LW_ROADS("THE_GEOM","PK","LWD63","LWD125","LWD250","LWD500","LWD1000","LWD2000","LWD4000","LWD8000","LWE63","LWE125","LWE250","LWE500","LWE1000","LWE2000","LWE4000","LWE8000","LWN63","LWN125","LWN250","LWN500","LWN1000","LWN2000","LWN4000","LWN8000") VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [22018-232]

	at org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1277)
	at org.h2gis.utilities.wrapper.StatementWrapper.executeBatch(StatementWrapper.java:169)
	at org.h2gis.functions.io.fgb.FGBDriverFunction.importFile(FGBDriverFunction.java:201)
	at org.h2gis.functions.io.fgb.FGBDriverFunction.importFile(FGBDriverFunction.java:132)
	at org.h2gis.functions.io.fgb.FGBRead.execute(FGBRead.java:66)
	at org.h2gis.functions.io.fgb.FGBRead.execute(FGBRead.java:80)
	at org.noise_planet.noisemodelling.jdbc.RegressionTest.testNoLevelRegression(RegressionTest.java:94)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
org.h2.jdbc.JdbcSQLDataException: Erreur lors de la conversion de données "GEOMETRY X'00a00000020000086a000000054116b7b066666666415964a4f33333333fa999999999999a4116b78266666666415964a8200000003fa999999999999a4116b3b39999999a415964e1a66666663fa999999999999a4116b138cccccccd41596507533333333fa999999999999a4116aff8cccccccd4159651a6ccccccd3fa999999999999a' (LW_ROADS: ""THE_GEOM"" GEOMETRY(LINESTRING, 2154))"
Data conversion error converting "GEOMETRY X'00a00000020000086a000000054116b7b066666666415964a4f33333333fa999999999999a4116b78266666666415964a8200000003fa999999999999a4116b3b39999999a415964e1a66666663fa999999999999a4116b138cccccccd41596507533333333fa999999999999a4116aff8cccccccd4159651a6ccccccd3fa999999999999a' (LW_ROADS: ""THE_GEOM"" GEOMETRY(LINESTRING, 2154))"; SQL statement:
INSERT INTO LW_ROADS("THE_GEOM","PK","LWD63","LWD125","LWD250","LWD500","LWD1000","LWD2000","LWD4000","LWD8000","LWE63","LWE125","LWE250","LWE500","LWE1000","LWE2000","LWE4000","LWE8000","LWN63","LWN125","LWN250","LWN500","LWN1000","LWN2000","LWN4000","LWN8000") VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [22018-232]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:518)
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:489)
	at org.h2.message.DbException.get(DbException.java:212)
	at org.h2.table.Column.getDataConversionError(Column.java:450)
	at org.h2.table.Column.validateConvertUpdateSequence(Column.java:409)
	at org.h2.table.Table.convertInsertRow(Table.java:963)
	at org.h2.command.dml.Insert.insertRows(Insert.java:167)
	at org.h2.command.dml.Insert.update(Insert.java:135)
	at org.h2.command.dml.DataChangeStatement.update(DataChangeStatement.java:74)
	at org.h2.command.CommandContainer.update(CommandContainer.java:139)
	at org.h2.command.Command.executeUpdate(Command.java:304)
	at org.h2.command.Command.executeBatchUpdate(Command.java:271)
	at org.h2.jdbc.JdbcPreparedStatement.executeBatchInternal(JdbcPreparedStatement.java:1318)
	at org.h2.jdbc.JdbcPreparedStatement.executeBatch(JdbcPreparedStatement.java:1267)
	at org.h2gis.utilities.wrapper.StatementWrapper.executeBatch(StatementWrapper.java:169)
	at org.h2gis.functions.io.fgb.FGBDriverFunction.importFile(FGBDriverFunction.java:201)
	at org.h2gis.functions.io.fgb.FGBDriverFunction.importFile(FGBDriverFunction.java:132)
	at org.h2gis.functions.io.fgb.FGBRead.execute(FGBRead.java:66)
	at org.h2gis.functions.io.fgb.FGBRead.execute(FGBRead.java:80)
	at org.noise_planet.noisemodelling.jdbc.RegressionTest.testNoLevelRegression(RegressionTest.java:94)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:767)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$8(TestMethodTestDescriptor.java:217)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:156)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:146)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:144)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:143)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:100)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:160)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:146)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:144)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:143)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:100)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:160)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:146)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:144)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:143)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:100)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85)
	at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47)
	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:63)
	at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:57)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater$1.execute(IdeaTestRunner.java:38)
	at com.intellij.rt.execution.junit.TestsRepeater.repeat(TestsRepeater.java:11)
	at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
	at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
Caused by: org.h2.message.DbException: Erreur lors de la conversion de données "(LINESTRING Z, 2154) -> (LINESTRING, 2154)"
Data conversion error converting "(LINESTRING Z, 2154) -> (LINESTRING, 2154)" [22018-232]

LW_ROADS.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant