/** * {@inheritDoc} */ @Override public void begin(Attributes attributes) { double bottom = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MINLAT); double left = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MINLON); double top = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MAXLAT); double right = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MAXLON); String origin = attributes.getValue(XmlConstants.ATTRIBUTE_NAME_ORIGIN); if (origin == null) { origin = defaultOrigin; } bound = new Bound(right, left, top, bottom, origin); }
/** * {@inheritDoc} */ @Override public void end() { getSink().process(new BoundContainer(bound)); bound = null; }
return new LegacyBoundElementProcessor(this, getSink(), true); } else { return new BoundsElementProcessor(this, getSink(), true, generator);
/** * {@inheritDoc} */ @Override public void end() { getSink().process(new BoundContainer(bound)); bound = null; }
return new LegacyBoundElementProcessor(this, getSink(), true); } else { return new BoundsElementProcessor(this, getSink(), true, generator);
/** * {@inheritDoc} */ @Override public void begin(Attributes attributes) { double bottom = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MINLAT); double left = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MINLON); double top = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MAXLAT); double right = getRequiredDoubleValue(attributes, XmlConstants.ATTRIBUTE_NAME_MAXLON); String origin = attributes.getValue(XmlConstants.ATTRIBUTE_NAME_ORIGIN); if (origin == null) { origin = defaultOrigin; } bound = new Bound(right, left, top, bottom, origin); }