Java Code Examples for com.spatial4j.core.context.jts.JtsSpatialContext#GEO
The following examples show how to use
com.spatial4j.core.context.jts.JtsSpatialContext#GEO .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: OPolygonShapeFactory.java From orientdb-lucene with Apache License 2.0 | 5 votes |
@Override public Shape makeShape(OCompositeKey key, SpatialContext ctx) { SpatialContext ctx1 = JtsSpatialContext.GEO; String value = key.getKeys().get(0).toString(); try { return ctx1.getWktShapeParser().parse(value); } catch (ParseException e) { OLogManager.instance().error(this, "Error on making shape", e); } return null; }
Example 2
Source File: SpatialSupportInitializer.java From rya with Apache License 2.0 | 4 votes |
@Override protected SpatialContext createSpatialContext() { return JtsSpatialContext.GEO; }
Example 3
Source File: SpatialSupportInitializer.java From rya with Apache License 2.0 | 4 votes |
@Override protected SpatialAlgebra createSpatialAlgebra() { return new JtsSpatialAlgebra(JtsSpatialContext.GEO); }
Example 4
Source File: SpatialSupportInitializer.java From rya with Apache License 2.0 | 4 votes |
@Override protected WktWriter createWktWriter() { return new JtsWktWriter(JtsSpatialContext.GEO); }