com.partnersoft.v3x.apps.MapBrowser
Class NamedPolygonSet

java.lang.Object
  extended by 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.


Constructor Summary
NamedPolygonSet(java.lang.String path)
           
NamedPolygonSet(java.lang.String path, boolean readOnly)
           
 
Method Summary
 void addPolygon(java.lang.String name, double[] coords)
           
 void addPolygon(java.lang.String name, PolylineArray points)
           
 java.util.ArrayList allPolygonsContaining(double x, double y)
           
 java.awt.geom.GeneralPath bytes2polygon(byte[] bytes)
           
 void clear()
           
 void close()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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