v.save(getDataImporter().getAuthorizations());
}
}
private Object toValueGeo(PtPropertyAndValue row, Object propertyValue) {
JGeometryWrapper geometryGis = JGeometryWrapper.load(row.getGeometryGis());
if (geometryGis == null) {
return propertyValue;
}
if (geometryGis.getType() == JGeometryWrapper.Type.POINT) {
if (propertyValue == null) {
propertyValue = "";
}
Point2D pt = geometryGis.getJavaPoint();
double lon = pt.getX();
double lat = pt.getY();
propertyValue = new GeoPoint(lat, lon, propertyValue.toString());
} else {
LOGGER.error("Unhandled geometry gis type: " + geometryGis.getType());
}
return propertyValue;
}