/** * Manages a sub geometry, which simply means always pass it to the current content handler as a * sub. * * @param localName The local name of the geometry, which corresponds to an OGC simple feature * type. * @throws SAXException parser error. */ public void geometrySub(String localName) throws SAXException { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_SUB); }
geometries.add(currentHandler.create(geometryFactory)); } else if (type == GEOMETRY_SUB) { currentHandler.subGeometry(message, type); currentHandler.subGeometry(message, type); LOGGER.fine(internalType + " != " + message);
/** * Manages the start of a new main or sub geometry. This method looks at the status of the * current handler and either returns a new sub-handler (if the last one was successfully * returned already) or passes the element start notification along to the current handler as a * sub geometry notice. * * @param localName The local name of the geometry, which corresponds to an OGC simple feature * type. * @param atts The attributes of the geometry, including SRID, etc. * @throws SAXException parser error. */ public void geometryStart(String localName, org.xml.sax.Attributes atts) throws SAXException { String srs = null; for (int i = 0; i < atts.getLength(); i++) { final String NAME = atts.getQName(i); if ("srs".equalsIgnoreCase(NAME)) { srs = atts.getValue(i); } } if (currentHandler == null) { currentHandler = handlerFactory.create(localName); } else { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_START); } currentHandler.setSRS(srs); }
/** * Manages the end of a new main or sub geometry. This method looks at the status of the current * handler and either returns the finished JTS object to its parent or passes the element end * notification along to the current handler as a sub geometry notice. * * @param localName The local name of the geometry, which corresponds to an OGC simple feature * type. * @throws SAXException parser error. */ public void geometryEnd(String localName) throws SAXException { if (currentHandler.isComplete(localName)) { parent.geometry(currentHandler.create(geometryFactory)); currentHandler = null; } else { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_END); } }
/** * Manages a sub geometry, which simply means always pass it to the current * content handler as a sub. * * @param localName The local name of the geometry, which corresponds to an * OGC simple feature type. * * @throws SAXException parser error. */ public void geometrySub(String localName) throws SAXException { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_SUB); }
/** * Manages a sub geometry, which simply means always pass it to the current * content handler as a sub. * * @param localName The local name of the geometry, which corresponds to an * OGC simple feature type. * * @throws SAXException parser error. */ public void geometrySub(String localName) throws SAXException { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_SUB); }
geometries.add(currentHandler.create(geometryFactory)); } else if (type == GEOMETRY_SUB) { currentHandler.subGeometry(message, type); currentHandler.subGeometry(message, type); LOGGER.fine(internalType + " != " + message);
geometries.add(currentHandler.create(geometryFactory)); } else if (type == GEOMETRY_SUB) { currentHandler.subGeometry(message, type); currentHandler.subGeometry(message, type); LOGGER.fine(internalType + " != " + message);
/** * Manages the start of a new main or sub geometry. This method looks at * the status of the current handler and either returns a new sub-handler * (if the last one was successfully returned already) or passes the * element start notification along to the current handler as a sub * geometry notice. * * @param localName The local name of the geometry, which corresponds to an * OGC simple feature type. * @param atts The attributes of the geometry, including SRID, etc. * * @throws SAXException parser error. */ public void geometryStart(String localName, org.xml.sax.Attributes atts) throws SAXException { String srs = null; for (int i = 0; i < atts.getLength(); i++) { final String NAME = atts.getQName(i); if( "srs".equalsIgnoreCase( NAME ) ){ srs = atts.getValue(i); } } if (currentHandler == null) { currentHandler = handlerFactory.create(localName); } else { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_START); } currentHandler.setSRS( srs ); }
/** * Manages the start of a new main or sub geometry. This method looks at * the status of the current handler and either returns a new sub-handler * (if the last one was successfully returned already) or passes the * element start notification along to the current handler as a sub * geometry notice. * * @param localName The local name of the geometry, which corresponds to an * OGC simple feature type. * @param atts The attributes of the geometry, including SRID, etc. * * @throws SAXException parser error. */ public void geometryStart(String localName, org.xml.sax.Attributes atts) throws SAXException { String srs = null; for (int i = 0; i < atts.getLength(); i++) { final String NAME = atts.getQName(i); if( "srs".equalsIgnoreCase( NAME ) ){ srs = atts.getValue(i); } } if (currentHandler == null) { currentHandler = handlerFactory.create(localName); } else { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_START); } currentHandler.setSRS( srs ); }
/** * Manages the end of a new main or sub geometry. This method looks at the * status of the current handler and either returns the finished JTS * object to its parent or passes the element end notification along to * the current handler as a sub geometry notice. * * @param localName The local name of the geometry, which corresponds to an * OGC simple feature type. * * @throws SAXException parser error. */ public void geometryEnd(String localName) throws SAXException { if (currentHandler.isComplete(localName)) { parent.geometry(currentHandler.create(geometryFactory)); currentHandler = null; } else { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_END); } }
/** * Manages the end of a new main or sub geometry. This method looks at the * status of the current handler and either returns the finished JTS * object to its parent or passes the element end notification along to * the current handler as a sub geometry notice. * * @param localName The local name of the geometry, which corresponds to an * OGC simple feature type. * * @throws SAXException parser error. */ public void geometryEnd(String localName) throws SAXException { if (currentHandler.isComplete(localName)) { parent.geometry(currentHandler.create(geometryFactory)); currentHandler = null; } else { currentHandler.subGeometry(localName, currentHandler.GEOMETRY_END); } }