View Javadoc
1 /* 2 * WKB4J - WKB reader for geographical mapping toolkits 3 * (C) 2002,2003, David Garnier, dgarnier@users.sourceforge.net 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation, 8 * version 2.1 of the License. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 * or visit the web to http://www.gnu.org. 19 * 20 */ 21 22 package org.wkb4j.engine; 23 24 /*** 25 * <code>WKBFactory3D</code> must be implemented by any class wishing to serve as a factory 26 * for geometric objects. When an object implements this interface, it can be submitted 27 * to the <code>WKBParser</code> and it will call thoses methods with the correct values. 28 * The author of each factory is completly free to implement any behavior, including ignoring some calls.<br/> 29 * 30 * wkbByteOrders and wkbTypes values don't generate events because there is no point in doing so. 31 * Similarly, there is no way to pass a generic Geometry. MultiPoints, WKBPoints and Points are colapsed in a double array. 32 * It is the responsability of the Factory to ensure that the stream of events actually represents a correct construction. 33 * See AbstractWKBFactory for an implementation of a "validating" WKBFactory. 34 * 35 * <br/>Inspired by the SAX API. 36 * @author David Garnier 37 * 38 * <br/>Creation date: 6 juil. 2002 21:22:00 39 * @version $Revision: 1.2 $ $Date: 2003/06/14 22:31:26 $ 40 */ 41 public interface WKBFactory3D { 42 43 44 /*** points is an array of doubles reprensentings coordinates. They are in the same order as the data in the WKB format. 45 * addPoints() and addPoints3D() are mutually exclusive and can only be called once.*/ 46 public boolean addPoints3D(double[] points); 47 48 }

This page was automatically generated by Maven