Package org.exist.indexing.spatial

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


                        hasUsedIndex = true;
                    }
                    //Otherwise, build it
                    if (geometry == null) {
                        sourceSRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                        geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    }
                    if (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


                        hasUsedIndex = true;
                    }
                    //Otherwise, build it
                    if (geometry == null) {
                        targetSRS =  ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                        geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    }
                    if (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

                        hasUsedIndex = true;
                    }
                    //Otherwise, build it
                    if (geometry == null) {
                        targetSRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                        geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    }
                    if (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

                        hasUsedIndex = true;
                    }
                    //Otherwise, build it
                    if (geometry == null) {
                        targetSRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                        geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    }
                    if (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

                        hasUsedIndex = true;
                    }
                    //Otherwise, build it
                    if (geometry == null) {
                        targetSRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                        geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    }
                    if (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

                        hasUsedIndex = true;
                    }
                    //Otherwise build them
                    if (geometry1 == null) {
                        srsName1 = ((Element)geometryNode1.getNode()).getAttribute("srsName").trim();
                        geometry1 = indexWorker.streamNodeToGeometry(context, geometryNode1);
                    }
                    if (geometry2 == null) {
                        srsName2 = ((Element)geometryNode2.getNode()).getAttribute("srsName").trim();
                        geometry2 = indexWorker.streamNodeToGeometry(context, geometryNode2);
                    }
View Full Code Here

                        srsName1 = ((Element)geometryNode1.getNode()).getAttribute("srsName").trim();
                        geometry1 = indexWorker.streamNodeToGeometry(context, geometryNode1);
                    }
                    if (geometry2 == null) {
                        srsName2 = ((Element)geometryNode2.getNode()).getAttribute("srsName").trim();
                        geometry2 = indexWorker.streamNodeToGeometry(context, geometryNode2);
                    }
                    if (geometry1 == null) {
                        logger.error("Unable to get a geometry from the first node");
                        throw new XPathException("Unable to get a geometry from the first node");
                    }
View Full Code Here

                    result = indexWorker.getGeometricPropertyForNode(context, (NodeProxy)geometryNode, propertyName);
                    hasUsedIndex = true;
                } else {
                    //builds the geometry
                    sourceCRS = ((Element)geometryNode.getNode()).getAttribute("srsName").trim();
                    geometry = indexWorker.streamNodeToGeometry(context, geometryNode);
                    if (geometry == null) {
                        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
View Full Code Here

                if (geometryNode.getImplementationType() == NodeValue.PERSISTENT_NODE)
                    //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.