Semantic MediaWiki and related extensions
Public Member Functions | List of all members
Maps\Semantic\ValueDescriptions\AreaDescription Class Reference
Collaboration diagram for Maps\Semantic\ValueDescriptions\AreaDescription:
Collaboration graph
[legend]

Public Member Functions

 __construct (SMWDataItem $areaCenter, $comparator, $radius, DIProperty $property=null)
 
 getQueryString ($asValue=false)
 
 prune (&$maxsize, &$maxdepth, &$log)
 
 getSQLCondition ($tableName, array $fieldNames, DatabaseBase $dbs)
 
 getBoundingBox ()
 
- Public Member Functions inherited from SMW\Query\Language\ValueDescription
 __construct (DataItem $dataItem, DIProperty $property=null, $comparator=SMW_CMP_EQ)
 
 getFingerprint ()
 
 getDataValue ()
 
 getDataItem ()
 
 getProperty ()
 
 getComparator ()
 
 getQueryString ($asValue=false)
 
 isSingleton ()
 
 getSize ()
 
- Public Member Functions inherited from SMW\Query\Language\Description
 getPrintRequests ()
 
 setPrintRequests (array $printRequests)
 
 addPrintRequest (PrintRequest $printRequest)
 
 prependPrintRequest (PrintRequest $printRequest)
 
 getFingerprint ()
 
 getMembership ()
 
 setMembership ($membership)
 
 getQueryString ($asValue=false)
 
 isSingleton ()
 
 getSize ()
 
 getDepth ()
 
 getQueryFeatures ()
 
 prune (&$maxsize, &$maxDepth, &$log)
 

Additional Inherited Members

- Protected Attributes inherited from SMW\Query\Language\Description
 $m_printreqs = array()
 
 $fingerprint = null
 

Detailed Description

Description of a geographical area defined by a coordinates set and a distance to the bounds. The bounds are a 'rectangle' (but bend due to the earths curvature), as the resulting query would otherwise be to resource intensive.

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

Maps\Semantic\ValueDescriptions\AreaDescription::__construct ( SMWDataItem  $areaCenter,
  $comparator,
  $radius,
DIProperty  $property = null 
)
Parameters
SMWDataItem$areaCenter
string$comparator
string$radius
DIProperty | null$property
Exceptions
InvalidArgumentException

Member Function Documentation

Maps\Semantic\ValueDescriptions\AreaDescription::getBoundingBox ( )
Returns
float[] An associative array containing the limits with keys north, east, south and west.
Maps\Semantic\ValueDescriptions\AreaDescription::getQueryString (   $asValue = false)
See also
::getQueryString
Parameters
boolean$asValue
Returns
string
Maps\Semantic\ValueDescriptions\AreaDescription::getSQLCondition (   $tableName,
array  $fieldNames,
DatabaseBase  $dbs 
)
See also
::getSQLCondition

FIXME: store specific code should be in the store component

Parameters
string$tableName
array$fieldNames
DatabaseBase$dbs
Returns
string|false
Maps\Semantic\ValueDescriptions\AreaDescription::prune ( $maxsize,
$maxdepth,
$log 
)
See also
::prune

The documentation for this class was generated from the following file: