protected Geometry getDefaultGeometry(Content content) {
if (content.hasContentClass(EntityType.geopoint)) {
double latitude = content.get(WGS84PosName.lat, Double.class).get();
- double longitude = content.get(WGS84PosName.lng, Double.class).get();
+ double longitude = content.get(WGS84PosName.lon, Double.class).get();
Coordinate coordinate = new Coordinate(longitude, latitude);
Point the_geom = JTS.GEOMETRY_FACTORY.createPoint(coordinate);
return;
double latitude = c.get(WGS84PosName.lat, Double.class).get();
- double longitude = c.get(WGS84PosName.lng, Double.class).get();
+ double longitude = c.get(WGS84PosName.lon, Double.class).get();
Coordinate coordinate = new Coordinate(longitude, latitude);
the_geom = geometryFactory.createPoint(coordinate);
// } else {
if (c.hasContentClass(EntityType.geopoint)) {
double latitude = c.get(WGS84PosName.lat, Double.class).get();
- double longitude = c.get(WGS84PosName.lng, Double.class).get();
+ double longitude = c.get(WGS84PosName.lon, Double.class).get();
Coordinate coordinate = new Coordinate(longitude, latitude);
the_geom = JTS.GEOMETRY_FACTORY.createPoint(coordinate);
Node field = row.getNode("geopoint");
if (field != null && field.isNodeType(EntityType.geopoint.get())) {
double lat = field.getProperty(WGS84PosName.lat.get()).getDouble();
- double lon = field.getProperty(WGS84PosName.lng.get()).getDouble();
+ double lon = field.getProperty(WGS84PosName.lon.get()).getDouble();
double alt = field.hasProperty(WGS84PosName.alt.get())
? field.getProperty(WGS84PosName.alt.get()).getDouble()
: Double.NaN;