Examples of transformGeometry()


Examples of org.exist.indexing.spatial.AbstractGMLJDBCIndexWorker.transformGeometry()

                    if (geometry == null) {
                        logger.error("Unable to get a geometry from the node");
                        throw new XPathException("Unable to get a geometry from the node");
                    }
                    targetSRS = args[1].itemAt(0).getStringValue().trim();
                    geometry = indexWorker.transformGeometry(geometry, sourceSRS, targetSRS);
                }
            } else if (isCalledAs("WKTtoGML")) {
                if (args[0].isEmpty())
                    result = Sequence.EMPTY_SEQUENCE;
                else {
View Full Code Here

Examples of org.exist.indexing.spatial.AbstractGMLJDBCIndexWorker.transformGeometry()

                    if (srsName2 == null)
                        throw new XPathException("Unable to get a SRS for the second geometry");

                    //Transform the second geometry in the SRS of the first one if necessary
                    if (!srsName1.equalsIgnoreCase(srsName2)) {
                        geometry2 = indexWorker.transformGeometry(geometry2, srsName1, srsName2);
                    }

                    if (isCalledAs("intersection")) {
                        geometry = geometry1.intersection(geometry2);
                    } else if (isCalledAs("union")) {
View Full Code Here

Examples of org.exist.indexing.spatial.AbstractGMLJDBCIndexWorker.transformGeometry()

                        logger.error("Unable to get a geometry from the node");
                        throw new XPathException("Unable to get a geometry from the node");
                    }
                    //Transform the geometry to EPSG:4326 if relevant
                    if (propertyName.indexOf("EPSG4326") != Constants.STRING_NOT_FOUND) {
                        geometry = indexWorker.transformGeometry(geometry, sourceCRS, "EPSG:4326");
                        if (isCalledAs("getEPSG4326WKT")) {
                            result = new StringValue(wktWriter.write(geometry));
                        } else if (isCalledAs("getEPSG4326WKB")) {
                            byte data[] = wkbWriter.write(geometry);
                            return BinaryValueFromInputStream.getInstance(context, new Base64BinaryValueType(), new ByteArrayInputStream(data));
View Full Code Here

Examples of org.exist.indexing.spatial.AbstractGMLJDBCIndexWorker.transformGeometry()

                    //Get the geometry from the index if available
                    EPSG4326_geometry = indexWorker.getGeometryForNode(context.getBroker(), (NodeProxy)geometryNode, true);
                if (EPSG4326_geometry == null) {
                    String sourceCRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                    Geometry geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    EPSG4326_geometry = indexWorker.transformGeometry(geometry, sourceCRS, "EPSG:4326");
                }
                if (EPSG4326_geometry == null) {
                    logger.error("Unable to get a geometry from the node");
                    throw new XPathException("Unable to get a geometry from the node");
                }
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.