You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Ralph Perniciaro <ra...@eagles.usm.edu> on 2015/10/27 03:11:26 UTC

Jena spatial parse exception

I get the following parseexception when trying to load the sample
datafile(geoarq-data-1.ttl) into a jena database.

com.spatial4j.core.exception.InvalidShapeException:
java.text.ParseException: Unknown Shape definition [Polygon ((-2.0000
51.2000, 1.0000 51.2000, 1.0000 51.8000, -2.0000 51.8000, -2.0000 51.2000))]

I have not had any issue loading point data using both geo and wkt.
However, I was having problems getting polygon data to be searchable and so
I tried the sample file and got the error above.

Any ideas on what I am missing?

Thanks!

Ralph

Re: Jena spatial parse exception

Posted by Ralph Perniciaro <ra...@eagles.usm.edu>.
entDef.setSpatialContextFactory("com.spatial4j.core.context.jts.JtsSpatialContextFactory");

helps to pay attention to details. :-)




On Mon, Oct 26, 2015 at 9:11 PM, Ralph Perniciaro <
ralph.perniciaro@eagles.usm.edu> wrote:

> I get the following parseexception when trying to load the sample
> datafile(geoarq-data-1.ttl) into a jena database.
>
> com.spatial4j.core.exception.InvalidShapeException:
> java.text.ParseException: Unknown Shape definition [Polygon ((-2.0000
> 51.2000, 1.0000 51.2000, 1.0000 51.8000, -2.0000 51.8000, -2.0000 51.2000))]
>
> I have not had any issue loading point data using both geo and wkt.
> However, I was having problems getting polygon data to be searchable and so
> I tried the sample file and got the error above.
>
> Any ideas on what I am missing?
>
> Thanks!
>
> Ralph
>