/** * Sets an entrance into a coord element. * * @param isInside Sets whether or not we are inside a coord tag. * @throws SAXException if error occurs in reading */ public void insideCoord(boolean isInside) throws SAXException { // if entering coord tag, simply set our internal flag for this if (isInside) { insideOuterFlag = INSIDE_COORD; } else { // if leaving coord tag, send coordinates to parent and // set all internal values to null equivalent. // if coordinates exist, send on down the filter chain // otherwise, throw an exception if ((!x.isNaN()) && (!y.isNaN()) && (z.isNaN())) { parent.gmlCoordinates(x.doubleValue(), y.doubleValue()); } else if ((!x.isNaN()) && (!y.isNaN()) && (!z.isNaN())) { parent.gmlCoordinates(x.doubleValue(), y.doubleValue(), z.doubleValue()); } // else { x = new Double(Double.NaN); y = new Double(Double.NaN); z = new Double(Double.NaN); insideOuterFlag = NOT_INSIDE; } }
parent.gmlCoordinates(x.doubleValue(), y.doubleValue(), z.doubleValue()); } else { parent.gmlCoordinates(x.doubleValue(), y.doubleValue());
/** * Sets an entrance into a coord element. * * @param isInside Sets whether or not we are inside a coord tag. * * @throws SAXException if error occurs in reading */ public void insideCoord(boolean isInside) throws SAXException { // if entering coord tag, simply set our internal flag for this if (isInside) { insideOuterFlag = INSIDE_COORD; } else { // if leaving coord tag, send coordinates to parent and // set all internal values to null equivalent. // if coordinates exist, send on down the filter chain // otherwise, throw an exception if ((!x.isNaN()) && (!y.isNaN()) && (z.isNaN())) { parent.gmlCoordinates(x.doubleValue(), y.doubleValue()); } else if ((!x.isNaN()) && (!y.isNaN()) && (!z.isNaN())) { parent.gmlCoordinates(x.doubleValue(), y.doubleValue(), z.doubleValue()); } //else { x = new Double(Double.NaN); y = new Double(Double.NaN); z = new Double(Double.NaN); insideOuterFlag = NOT_INSIDE; } }
/** * Sets an entrance into a coord element. * * @param isInside Sets whether or not we are inside a coord tag. * * @throws SAXException if error occurs in reading */ public void insideCoord(boolean isInside) throws SAXException { // if entering coord tag, simply set our internal flag for this if (isInside) { insideOuterFlag = INSIDE_COORD; } else { // if leaving coord tag, send coordinates to parent and // set all internal values to null equivalent. // if coordinates exist, send on down the filter chain // otherwise, throw an exception if ((!x.isNaN()) && (!y.isNaN()) && (z.isNaN())) { parent.gmlCoordinates(x.doubleValue(), y.doubleValue()); } else if ((!x.isNaN()) && (!y.isNaN()) && (!z.isNaN())) { parent.gmlCoordinates(x.doubleValue(), y.doubleValue(), z.doubleValue()); } //else { x = new Double(Double.NaN); y = new Double(Double.NaN); z = new Double(Double.NaN); insideOuterFlag = NOT_INSIDE; } }
parent.gmlCoordinates(x.doubleValue(), y.doubleValue(), z.doubleValue()); } else { parent.gmlCoordinates(x.doubleValue(), y.doubleValue());
parent.gmlCoordinates(x.doubleValue(), y.doubleValue(), z.doubleValue()); } else { parent.gmlCoordinates(x.doubleValue(), y.doubleValue());