Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] Accumulo Writing Exception...

Hi,

 

Do you have an example of the line strings that are failing?

 

Chris Snider

Senior Software Engineer

Intelligent Software Solutions, Inc.

Description: Description: Description: cid:image001.png@01CA1F1F.CBC93990

 

From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Adnan Yaqoob
Sent: Thursday, May 29, 2014 4:40 AM
To: Geomesa User discussions
Subject: [geomesa-users] Accumulo Writing Exception...

 

Hello,

 

I am trying to write simple LineString to Accumulo using Geomesa. I have used the schema and code provided in Geomesa documentation and I am getting following error:

 

java.lang.Exception: Invalid geometry

at geomesa.utils.geohash.GeohashUtils$.reconstructGeohashFromGeometry(GeohashUtils.scala:599)

at geomesa.core.index.IndexEntry$IndexEntrySFT.gh$lzycompute(IndexSchema.scala:193)

at geomesa.core.index.IndexEntry$IndexEntrySFT.gh(IndexSchema.scala:193)

at geomesa.core.index.GeoHashTextFormatter.format(Formatters.scala:51)

at geomesa.core.index.GeoHashTextFormatter.format(Formatters.scala:49)

at geomesa.core.index.CompositeTextFormatter$anonfun$format$2.apply(Formatters.scala:119)

at geomesa.core.index.CompositeTextFormatter$anonfun$format$2.apply(Formatters.scala:119)

at scala.collection.TraversableLike$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.TraversableLike$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.immutable.List.foreach(List.scala:318)

at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

at scala.collection.AbstractTraversable.map(Traversable.scala:105)

at geomesa.core.index.CompositeTextFormatter.format(Formatters.scala:119)

at geomesa.core.index.IndexEncoder$anonfun$6$anonfun$7.apply(IndexSchema.scala:245)

at geomesa.core.index.IndexEncoder$anonfun$6$anonfun$7.apply(IndexSchema.scala:245)

at scala.collection.TraversableLike$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.TraversableLike$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)

at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)

at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)

at geomesa.core.index.IndexEncoder$anonfun$6.apply(IndexSchema.scala:245)

at geomesa.core.index.IndexEncoder$anonfun$6.apply(IndexSchema.scala:244)

at scala.collection.TraversableLike$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.TraversableLike$anonfun$map$1.apply(TraversableLike.scala:244)

at scala.collection.immutable.List.foreach(List.scala:318)

at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)

at scala.collection.AbstractTraversable.map(Traversable.scala:105)

at geomesa.core.index.IndexEncoder.encode(IndexSchema.scala:244)

at geomesa.core.index.IndexSchema.encode(IndexSchema.scala:91)

at geomesa.core.data.AccumuloFeatureWriter.writeToAccumulo(AccumuloFeatureWriter.scala:103)

at geomesa.core.data.AppendAccumuloFeatureWriter.write(AccumuloFeatureWriter.scala:128)

at org.geotools.data.AbstractFeatureStore.addFeatures(AbstractFeatureStore.java:324)

at geomesa.core.data.AccumuloFeatureStore.addFeatures(AccumuloFeatureStore.scala:53)

at AccumuloTest.ATest.writeFeature(ATest.java:158)

at AccumuloTest.ATest.main(ATest.java:45)

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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

 

I have used this (*geom:LineString:srid=4326) configuration for geometry field. It only throws this exception in case of LineString, it is working fine with Point and Polygon. Can somebody help me understand what the problem is?

 

Regards,

Adnan

 

 


Back to the top