gvSIG bugs #4363

Updated by Lluís Marqués over 7 years ago

Al intentar convertir una geometría de tipo un polígono (TYPES.POLYGON) en WKB lanza la siguiente excepción:

<pre>
org.gvsig.fmap.geom.operation.GeometryOperationException: Exception executing the operation with code -1 for the geometry with type -1.
at org.gvsig.fmap.geom.jts.AbstractGeometry.convertToWKB(AbstractGeometry.java:388)
at org.gvsig.raster.lib.buffer.impl.DefaultVectorROITest.testGetGeometries(DefaultVectorROITest.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:131)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException: Geometry type 19, 0 not supported.
at org.gvsig.fmap.geom.jts.operation.towkb.OGCWKBEncoder.encode(OGCWKBEncoder.java:166)
at org.gvsig.fmap.geom.jts.operation.towkb.OGCWKBEncoder.encode(OGCWKBEncoder.java:126)
at org.gvsig.fmap.geom.jts.operation.towkb.OGCWKBEncoder.encode(OGCWKBEncoder.java:119)
at org.gvsig.fmap.geom.jts.AbstractGeometry.convertToWKB(AbstractGeometry.java:386)
... 17 more
</pre>

Back