\SolrGeoPoint
- Author: <marcus@silverstripe.com.au>
- License: BSD License http://www.silverstripe.org/bsd-license
Synopsis
class SolrGeoPoint
extends SolrGeoDBField
implements
CompositeDBField
{
- // Inherited members from SolrGeoDBField
- protected string $srid;
- protected $wkt;
- protected static $wkt_name;
- // methods
- public static SolrGeoPoint from_x_y()
- public static SolrGeoPoint from_lat_lng()
- public void requireField()
- public void compositeDatabaseFields()
- public void hasValue()
- public string WKT()
- public void setAsWKT()
- public void setAsArray()
- public array getCoords()
- public void setX()
- public void setY()
- public void getX()
- public void getY()
- public void getLat()
- public void getLng()
- public void latLon()
- public void setLat()
- public void setLng()
- public void writeToManipulation()
- public static boolean is_valid_wkt()
- public void debug()
- public void toJSON()
- public void toXML()
- public void toCSV()
- public void scaffoldFormField()
- // Inherited methods from SolrGeoDBField
- public void __construct()
- public void isChanged()
- public void hasValue()
- public void requireField()
- public void addToQuery()
- public void setValue()
- public void setAsWKT()
- public string WKT()
- public string getSRID()
- public void setSRID()
- public static void is_valid_wkt()
Hierarchy
Members
protected
- $srid
—
string
SRID - Spatial Reference Identifier - $wkt
—
string
Stores the field value as a "Well-Known-Text" string, as opposed to the usual $value storage of DBField classes. - $wkt_name
- $wkt_name
—
string
Well-known text identifier of the subclass, e.g. POINT - $x
—
float
X coordinate (or Longitude) - $y
—
float
Y coordinate (or Latitude)
Methods
public
- WKT()
- compositeDatabaseFields()
- debug()
- from_lat_lng()
- from_x_y()
- getCoords() — Returns an associative array with the X/Y and lat/lng coordinates.
- getLat()
- getLng()
- getX()
- getY()
- hasValue()
- is_valid_wkt() — Determines if the passed string is in valid "Well-known Text" format.
- latLon()
- requireField()
- scaffoldFormField()
- setAsArray() — Set the value as an array. Accepts different formats:
- setAsWKT() — Setting as "Well-known Text" with x/y or lng/lat.
- setLat()
- setLng()
- setX()
- setY()
- toCSV()
- toJSON()
- toXML()
- writeToManipulation()
Inherited from SolrGeoDBField
public
- WKT()
- addToQuery()
- getSRID()
- hasValue()
- isChanged()
- is_valid_wkt() — Determines if the passed string is in valid "Well-known Text" format.
- requireField()
- setAsWKT()
- setSRID()
- setValue()