com.partnersoft.v3x.apps.MapBrowser
Class NamedPolygonSet
java.lang.Object
com.partnersoft.v3x.apps.MapBrowser.NamedPolygonSet
public class NamedPolygonSet
- extends java.lang.Object
A set of polygons, stored in a relational database format, so that you can do
bounds-based queries.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedPolygonSet
public NamedPolygonSet(java.lang.String path)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
NamedPolygonSet
public NamedPolygonSet(java.lang.String path,
boolean readOnly)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
clear
public void clear()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
addPolygon
public void addPolygon(java.lang.String name,
PolylineArray points)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
addPolygon
public void addPolygon(java.lang.String name,
double[] coords)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
close
public void close()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
allPolygonsContaining
public java.util.ArrayList allPolygonsContaining(double x,
double y)
throws java.sql.SQLException,
java.io.IOException
- Throws:
java.sql.SQLException
java.io.IOException
bytes2polygon
public java.awt.geom.GeneralPath bytes2polygon(byte[] bytes)
throws java.io.IOException
- Throws:
java.io.IOException