Package org.geoscript.js.geom

Examples of org.geoscript.js.geom.Geometry.transform()


            Geometry geometry = (Geometry) value;
            Projection geomProj = geometry.getProjection();
            if (featureProj != null) {
                if (geomProj != null) {
                    if (!featureProj.equals(geometry.getProjection())) {
                        value = geometry.transform(featureProj);
                    }
                }
            } else if (geomProj != null) {
                throw ScriptRuntime.constructError("Error", "Cannot add a geometry with a projection to a feature without a projection");
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.