Home
last modified time | relevance | path

Searched refs:geometry (Results 1 – 25 of 100) sorted by last modified time

1234

/plugin/openlayersmap/ol7/
H A Dol.js.map
/plugin/openlayersmap/
H A Dscript.js261 geometry: new ol.geom.Point(ol.proj.fromLonLat([p.lon, p.lat])),
/plugin/geotag/syntax/
H A Dgeotag.php
/plugin/geophp/
H A Ddeleted.files13 geoPHP/lib/geometry/Collection.class.php
14 geoPHP/lib/geometry/Geometry.class.php
15 geoPHP/lib/geometry/GeometryCollection.class.php
16 geoPHP/lib/geometry/LineString.class.php
17 geoPHP/lib/geometry/MultiLineString.class.php
18 geoPHP/lib/geometry/MultiPoint.class.php
19 geoPHP/lib/geometry/MultiPolygon.class.php
20 geoPHP/lib/geometry/Point.class.php
21 geoPHP/lib/geometry/Polygon.class.php
H A Dcomposer.lock57 "description": "Open-source native PHP library for doing geometry operations. Can read and write a wide variety of formats: (E)WKT, (E)WKB, TWKB, GeoJSON, KML, GPX, GeoRSS. Works with all Simple-Feature geometries (Point, LineString, Polygon...) and can be used to get centroids, bounding-boxes, area, etc.",
64 "geometry",
/plugin/geophp/vendor/funiq/geophp/src/Adapter/
H A DEWKT.php16 * @param Geometry $geometry
20 public function write(Geometry $geometry) argument
22 $srid = $geometry->getSRID();
25 $wkt .= $geometry->out('wkt');
28 return $geometry->out('wkt');
H A DGeoHash.php109 * Convert the geometry to geohash.
111 * @param Geometry $geometry
113 * @return string the GeoHash or null when the $geometry is not a Point
115 public function write(Geometry $geometry, $precision = null) argument
117 if ($geometry->isEmpty()) {
121 if ($geometry->geometryType() === Geometry::POINT) {
122 /** @var Point $geometry */
123 return $this->encodePoint($geometry, $precision);
126 $envelope = $geometry->envelope();
H A DEWKB.php13 public function write(Geometry $geometry, $writeAsHex = false, $bigEndian = false) argument
15 $this->SRID = $geometry->getSRID();
17 return parent::write($geometry, $writeAsHex, $bigEndian);
H A DGeoJSON.php18 * Note that it will always return a GeoJSON geometry. This
20 * geometry of that feature strip everything else.
57 // It's a geometry - process it
82 $geometry = $this->read($obj->geometry);
85 $geometry->setData($property, $value);
89 return $geometry;
105 /** @var GeometryCollection $geometry */
106 $geometry = $this->$method($obj->coordinates);
107 $geometry
220 write(Geometry $geometry, $returnAsArray = false) global() argument
243 getArray($geometry, $isRoot = true) global() argument
[all...]
H A DGeoRSS.php37 * Read GeoRSS string into geometry objects
51 * @param Geometry $geometry
55 public function write(Geometry $geometry, $namespace = false) argument
61 return $this->geometryToGeoRSS($geometry) ?: '';
182 // @@TODO: Add good support once we have circular-string geometry support
195 * @param Geometry $geometry
198 protected function geometryToGeoRSS($geometry) argument
200 $type = $geometry->geometryType();
203 return $this->pointToGeoRSS($geometry);
206 return $this->linestringToGeoRSS($geometry);
224 pointToGeoRSS($geometry) global() argument
233 linestringToGeoRSS($geometry) global() argument
250 polygonToGeoRSS($geometry) global() argument
268 collectionToGeoRSS($geometry) global() argument
[all...]
H A DGoogleGeocode.php36 * Makes a geocoding (lat/lon lookup) with an address string or array geometry objects
115 * @param Geometry $geometry
123 public function write(Geometry $geometry, $apiKey = null, $returnType = 'string', $language = null) argument
125 $centroid = $geometry->centroid();
167 $lat = $this->result->results[$delta]->geometry->location->lat;
168 $lon = $this->result->results[$delta]->geometry->location->lng;
187 $lat = $this->result->results[$delta]->geometry->bounds->northeast->lat;
188 $lon = $this->result->results[$delta]->geometry->bounds->southwest->lng;
194 $lat = $this->result->results[$delta]->geometry->bounds->northeast->lat;
195 $lon = $this->result->results[$delta]->geometry
[all...]
H A DKML.php45 * Read KML string into geometry objects
87 /** @var Geometry|null $geometry */
88 $geometry = null;
94 $geometry = $this->$function($child);
99 if ($geometry) {
101 $geometry->setData($data);
103 $geometries[] = $geometry;
108 // The document does not have a placemark, try to create a valid geometry from the root element
240 * @param Geometry $geometry
244 public function write(Geometry $geometry, argument
257 geometryToKML($geometry) global() argument
284 pointToKML($geometry) global() argument
300 linestringToKML($geometry, $type = false) global() argument
331 polygonToKML($geometry) global() argument
350 collectionToKML($geometry) global() argument
[all...]
H A DTWKB.php31 * "Tiny Well-known Binary is is a multi-purpose format for serializing vector geometry data into a byte buffer,
36 * - reading and writing all geometry types (1-7)
76 * Read TWKB into geometry objects
97 $geometry = $this->getGeometry();
101 return $geometry;
172 $geometry = $this->getPoint($options);
175 $geometry = $this->getLineString($options);
178 $geometry = $this->getPolygon($options);
181 $geometry = $this->getMulti('Point', $options);
184 $geometry
334 write(Geometry $geometry, $writeAsHex = false, $decimalDigitsXY = null, $decimalDigitsZ = null, $decimalDigitsM = null, $includeSizes = false, $includeBoundingBoxes = false) global() argument
363 writeGeometry($geometry) global() argument
458 writePoint($geometry) global() argument
483 writeLineString($geometry) global() argument
496 writePolygon($geometry) global() argument
509 writeMulti($geometry) global() argument
[all...]
H A DWKB.php74 * Read WKB into geometry objects
90 throw new \Exception('Cannot read empty WKB geometry. Found ' . gettype($wkb));
95 $geometry = $this->getGeometry();
99 return $geometry;
145 $geometry = null;
148 $geometry = $this->getPoint();
151 $geometry = $this->getLineString();
154 $geometry = $this->getPolygon();
157 $geometry = $this->getMulti('Point');
160 $geometry
273 write(Geometry $geometry, $writeAsHex = false, $bigEndian = false) global() argument
287 writeGeometry($geometry) global() argument
385 writeMulti($geometry) global() argument
403 writeType($geometry, $writeSRID = false) global() argument
[all...]
H A DWKT.php27 * Determines if the given typeString is a valid WKT geometry type
30 * @return string|bool The geometry type if found or false
43 * Read WKT string into geometry objects
79 if ($geometry = $this->parseTypeAndGetData($wkt)) {
80 if ($geometry && $srid) {
81 $geometry->setSRID($srid);
83 return $geometry;
96 // geometry type is the first word
255 $geometry = $this->parseTypeAndGetData(trim(substr($dataString, 0, $cutPosition)));
256 $geometries[] = $geometry;
271 write(Geometry $geometry) global() argument
311 extractData($geometry) global() argument
[all...]
H A DGPX.php47 * Read GPX string into geometry object
107 * Parses the GPX XML and returns a geometry
109 * @return GeometryCollection|Geometry Returns the geometry representation of the GPX (@see geoPHP::buildGeometry)
127 $geometry = geoPHP::buildGeometry($geometries);
133 if ($geometry->getData() !== null && $metadata !== null) {
134 $geometry = new GeometryCollection([$geometry]);
136 $geometry->setData($metadata);
139 return $geometry;
309 * @param Geometry|GeometryCollection $geometry
317 write(Geometry $geometry, $namespace = null, $allowedElements = null) global() argument
340 geometryToGPX($geometry) global() argument
434 collectionToGPX($geometry) global() argument
466 processGeometryData($geometry, $tagList, $indent = 't') global() argument
[all...]
H A DGeoAdapter.php34 * @param Geometry $geometry
37 public function write(Geometry $geometry); argument
/plugin/geophp/vendor/funiq/geophp/src/Geometry/
H A DPoint.php220 * Determines weather the specified geometry is spatially equal to this Point
226 * @param Point|Geometry $geometry
230 public function equals($geometry) argument
232 return $geometry->geometryType() === Geometry::POINT
233 ? (abs($this->x() - $geometry->x()) <= 1.0E-9 && abs($this->y() - $geometry->y()) <= 1.0E-9)
252 * @param Geometry|Collection $geometry
255 public function distance($geometry) argument
257 if ($this->isEmpty() || $geometry->isEmpty()) {
263 return $this->getGeos()->distance($geometry
[all...]
H A DPolygon.php50 // throw new \Exception('Cannot create Polygon: geometry should be simple');
324 * Checks whether the given geometry is spatially inside the Polygon
326 * @param Geometry $geometry
329 public function contains(Geometry $geometry) argument
334 return $this->getGeos()->contains($geometry->getGeos());
339 foreach ($geometry->getPoints() as $p) {
349 if ($geometry->geometryType() == Geometry::LINE_STRING) {
350 } elseif ($geometry->geometryType() == Geometry::POLYGON) {
351 $geometry = $geometry
[all...]
H A DCollection.php11 * A geometry is a collection if it is made up of other
172 * Returns every sub-geometry as a multidimensional array
194 * Returns the 1-based Nth geometry.
196 * @param int $n 1-based geometry number
243 * @param Collection $geometry The geometry from which points will be extracted
246 private static function getPointsRecursive($geometry, &$points) argument
248 foreach ($geometry->components as $component) {
258 * @param Geometry $geometry
261 public function equals($geometry) argument
332 distance($geometry) global() argument
[all...]
H A DGeometry.php19 * All coordinates within a geometry object should be in the same coordinate reference systems.
21 * either directly or through its containing geometry.
128 * Methods applicable on certain geometry types *
169 * @return Geometry|null The geometry, or null if not found.
294 * Adds custom data to the geometry
309 * Returns the requested data by property name, or all data of the geometry
324 * Tells whether the geometry has data with the specified name
326 * @return bool True if the geometry has data with the specified name
541 * @param Geometry $geometry
546 public function equalsExact(Geometry $geometry) argument
562 relate(Geometry $geometry, $pattern = null) global() argument
611 intersection(Geometry $geometry) global() argument
640 difference(Geometry $geometry) global() argument
655 symDifference(Geometry $geometry) global() argument
672 union(Geometry $geometry) global() argument
740 disjoint(Geometry $geometry) global() argument
755 touches(Geometry $geometry) global() argument
770 intersects(Geometry $geometry) global() argument
785 crosses(Geometry $geometry) global() argument
800 within(Geometry $geometry) global() argument
815 contains(Geometry $geometry) global() argument
830 overlaps(Geometry $geometry) global() argument
845 covers(Geometry $geometry) global() argument
860 coveredBy(Geometry $geometry) global() argument
875 hausdorffDistance(Geometry $geometry) global() argument
[all...]
H A DGeometryCollection.php15 * any of valid Geometry types, including empty geometry
44 * Not valid for this geometry type
76 foreach ($geometries as $geometry) {
77 if ($geometry->dimension() > $highestDimension) {
78 $highestDimension = $geometry->dimension();
86 foreach ($geometries as $geometry) {
87 if ($geometry->dimension() === $highestDimension) {
88 $highestDimensionGeometries[] = $geometry;
100 * Returns every sub-geometry as a multidimensional array
138 // Not valid for this geometry
[all...]
H A DLineString.php198 * @return float Haversine length of geometry in degrees
474 * @param Geometry|Collection $geometry
477 public function distance($geometry) argument
482 return $this->getGeos()->distance($geometry->getGeos());
486 if ($geometry->geometryType() == Geometry::POINT) {
488 return $geometry->distance($this);
490 if ($geometry->geometryType() == Geometry::LINE_STRING) {
492 $geometrySegments = $geometry->explode();
518 return parent::distance($geometry);
/plugin/geophp/vendor/funiq/geophp/src/
H A DgeoPHP.php83 * If $data is an array, all passed in values will be combined into a single geometry
127 } else { // Data is an array, combine all passed in items into a single geometry
170 $geometry = geoPHP::load($wkb, 'wkb', true);
171 if ($geometry) {
172 $geometry->setGeos($geos);
173 return $geometry;
180 * Reduce a geometry, or an array of geometries, into their 'lowest' available common geometry.
183 * An array of geometries can be passed and they will be compiled into a single geometry
194 * If it is a single geometry
[all...]
/plugin/geophp/vendor/funiq/geophp/
H A DREADME.md3 GeoPHP is a open-source native PHP library for doing geometry operations. It is a fork of famous [geoPHP](https://github.com/phayes/geoPHP) library by Patrick Hayes.
13 get a useful "core-set" of geometry operations that work in all environments, and an "extended-set"of operations
66 Calling get components returns the sub-geometries within a geometry as an array.
74 An alternative is to use the `asArray()` method. Using the above geometry collection of two linestrings,

1234