01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2004-2006, Geotools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.data.vpf.readers;
17:
18: import java.io.IOException;
19: import java.sql.SQLException;
20:
21: import org.geotools.data.vpf.VPFFeatureType;
22: import org.geotools.feature.Feature;
23: import org.geotools.feature.IllegalAttributeException;
24:
25: import com.vividsolutions.jts.geom.GeometryFactory;
26:
27: /**
28: * DOCUMENT ME!
29: *
30: * @author <a href="mailto:jeff@ionicenterprise.com">Jeff Yutzler</a>
31: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/vpf/src/main/java/org/geotools/data/vpf/readers/VPFGeometryFactory.java $
32: */
33: public abstract class VPFGeometryFactory {
34: private static final GeometryFactory m_GeometryFactory = new GeometryFactory();
35:
36: /**
37: * Constructs a geometry for the appropriate feature type based on values currently on the object,
38: * retrieving values as needed from the various VPFFile objects
39: * @param featureType the VPFFeatureType to use
40: * @param values the current feature
41: * @throws SQLException
42: * @throws IOException
43: * @throws IllegalAttributeException
44: */
45: public abstract void createGeometry(VPFFeatureType featureType,
46: Feature values) throws SQLException, IOException,
47: IllegalAttributeException;
48: }
|