| java.lang.Object org.geotools.filter.SQLEncoder org.geotools.filter.SQLEncoderMySQL
SQLEncoderMySQL | public class SQLEncoderMySQL extends SQLEncoder implements org.geotools.filter.FilterVisitor(Code) | | Encodes a filter into a SQL WHERE statement for MySQL. This class adds
the ability to turn geometry filters into sql statements if they are
bboxes.
author: Chris Holmes, TOPP author: Debasish Sahu, debasish.sahu@rmsi.com |
Constructor Summary | |
public | SQLEncoderMySQL() Empty constructor TODO: rethink empty constructor, as BBOXes _need_ an
SRID, must make client set it somehow. | public | SQLEncoderMySQL(int srid) |
SQLEncoderMySQL | public SQLEncoderMySQL()(Code) | | Empty constructor TODO: rethink empty constructor, as BBOXes _need_ an
SRID, must make client set it somehow. Maybe detect when encode is
called?
|
SQLEncoderMySQL | public SQLEncoderMySQL(int srid)(Code) | | |
setDefaultGeometry | public void setDefaultGeometry(String name)(Code) | | Sets the default geometry, so that filters with null for one of their
expressions can assume that the default geometry is intended.
Parameters: name - the name of the default geometry Attribute. |
setSRID | public void setSRID(int srid)(Code) | | Sets a spatial reference system ESPG number, so that the geometry can be
properly encoded for postgis. If geotools starts actually creating
geometries with valid srids then this method will no longer be needed.
Parameters: srid - the integer code for the EPSG spatial reference system. |
visitLiteralGeometry | public void visitLiteralGeometry(LiteralExpression expression) throws IOException(Code) | | Checks to see if the literal is a geometry, and encodes it if it is, if
not just sends to the parent class.
Parameters: expression - the expression to visit and encode. throws: IOException - for IO exception (need a better error) |
|
|