|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.filter.SQLEncoder
org.geotools.filter.SQLEncoderPostgis
org.geotools.filter.SQLEncoderPostgisGeos
Encodes a filter into a SQL WHERE statement for postgis. With geos installed. This should be redone, probably integrated with the postgis stuff, but that whole hierarchy should be redone, since the capabilities stuff is a bit wacky. This should only be used on versions of postgis installed with GEOS support, to handle all the advanced spatial queries.
| Field Summary |
| Fields inherited from class org.geotools.filter.SQLEncoderPostgis |
looseBbox |
| Fields inherited from class org.geotools.filter.SQLEncoder |
mapper, out |
| Constructor Summary | |
SQLEncoderPostgisGeos()
Empty constructor TODO: rethink empty constructor, as BBOXes _need_ an SRID, must make client set it somehow. |
|
SQLEncoderPostgisGeos(int srid)
Constructor with srid. |
|
| Method Summary | |
FilterCapabilities |
getCapabilities()
Capabils of this encoder. |
void |
setDefaultGeometry(java.lang.String name)
Sets the default geometry, so that filters with null for one of their expressions can assume that the default geometry is intended. |
void |
setSRID(int srid)
Sets a spatial reference system ESPG number, so that the geometry can be properly encoded for postgis. |
void |
visit(GeometryFilter filter)
Turns a geometry filter into the postgis sql bbox statement. |
void |
visit(LiteralExpression expression)
Checks to see if the literal is a geometry, and encodes it if it is, if not just sends to the parent class. |
| Methods inherited from class org.geotools.filter.SQLEncoderPostgis |
createFilterCapabilities, isLooseBbox, setLooseBbox, visitLiteralGeometry |
| Methods inherited from class org.geotools.filter.SQLEncoder |
encode, encode, escapeName, getColnameEscape, setColnameEscape, setFIDMapper, setSqlNameEscape, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.geotools.filter.FilterVisitor |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
| Constructor Detail |
public SQLEncoderPostgisGeos()
public SQLEncoderPostgisGeos(int srid)
srid - spatial reference id to encode geometries with.| Method Detail |
public FilterCapabilities getCapabilities()
getCapabilities in class SQLEncoderorg.geotools.filter.SQLEncoder#getCapabils()public void setSRID(int srid)
setSRID in class SQLEncoderPostgissrid - the integer code for the EPSG spatial reference system.public void setDefaultGeometry(java.lang.String name)
setDefaultGeometry in class SQLEncoderPostgisname - the name of the default geometry Attribute.
public void visit(GeometryFilter filter)
throws java.lang.RuntimeException
visit in interface FilterVisitorvisit in class SQLEncoderPostgisfilter - the geometry filter to be encoded.
java.lang.RuntimeException - for IO exception (need a better error)
public void visit(LiteralExpression expression)
throws java.lang.RuntimeException
visit in interface FilterVisitorvisit in class SQLEncoderexpression - the expression to visit and encode.
java.lang.RuntimeException - for IO exception (need a better error)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||