Package io.lumify.palantir.dataImport.util

Examples of io.lumify.palantir.dataImport.util.JGeometryWrapper


            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;
    }
View Full Code Here

TOP

Related Classes of io.lumify.palantir.dataImport.util.JGeometryWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.