Home
last modified time | relevance | path

Searched refs:geometry (Results 1 – 25 of 45) sorted by relevance

12

/plugin/geophp/geoPHP/lib/geometry/
H A DGeometry.class.php222 public function union(Geometry $geometry) { argument
224 if (is_array($geometry)) {
226 foreach ($geometry as $item) {
243 public function disjoint(Geometry $geometry) { argument
249 public function touches(Geometry $geometry) { argument
261 public function crosses(Geometry $geometry) { argument
267 public function within(Geometry $geometry) { argument
273 public function contains(Geometry $geometry) { argument
279 public function overlaps(Geometry $geometry) { argument
285 public function covers(Geometry $geometry) { argument
[all …]
H A DPoint.class.php161 public function equals($geometry) { argument
162 if (get_class($geometry) != 'Point') {
165 if (!$this->isEmpty() && !$geometry->isEmpty()) {
171 … return (abs($this->x() - $geometry->x()) <= 1.0E-9 && abs($this->y() - $geometry->y()) <= 1.0E-9);
173 else if ($this->isEmpty() && $geometry->isEmpty()) {
H A DCollection.class.php239 public function equals($geometry) { argument
241 return $this->geos()->equals($geometry->geos());
252 $other_points = $geometry->getPoints();
/plugin/geophp/geoPHP/lib/adapters/
H A DEWKB.class.php48 * @param Geometry $geometry
52 public function write(Geometry $geometry, $write_as_hex = FALSE) { argument
56 switch ($geometry->getGeomType()) {
59 $wkb .= $this->writePoint($geometry);
63 $wkb .= $this->writeLineString($geometry);
67 $wkb .= $this->writePolygon($geometry);
71 $wkb .= $this->writeMulti($geometry);
75 $wkb .= $this->writeMulti($geometry);
79 $wkb .= $this->writeMulti($geometry);
83 $wkb .= $this->writeMulti($geometry);
H A DWKB.class.php44 $geometry = $this->getGeometry($mem);
46 return $geometry;
156 * @param Geometry $geometry
164 switch ($geometry->getGeomType()) {
167 $wkb .= $this->writePoint($geometry);
175 $wkb .= $this->writePolygon($geometry);
179 $wkb .= $this->writeMulti($geometry);
183 $wkb .= $this->writeMulti($geometry);
187 $wkb .= $this->writeMulti($geometry);
191 $wkb .= $this->writeMulti($geometry);
[all …]
H A DWKT.class.php206 * @param Geometry $geometry
210 public function write(Geometry $geometry) { argument
215 return $writer->write($geometry->geos());
218 if ($geometry->isEmpty()) {
219 return strtoupper($geometry->geometryType()).' EMPTY';
221 else if ($data = $this->extractData($geometry)) {
229 * @param Geometry $geometry A Geometry object
233 public function extractData($geometry) { argument
235 switch ($geometry->geometryType()) {
237 return $geometry->getX().' '.$geometry->getY();
[all …]
H A DGoogleGeocode.class.php87 * @param Geometry $geometry
92 public function write(Geometry $geometry, $return_type = 'string') { argument
93 $centroid = $geometry->getCentroid();
126 $lat = $this->result->results[$delta]->geometry->location->lat;
127 $lon = $this->result->results[$delta]->geometry->location->lng;
144 $lat = $this->result->results[$delta]->geometry->bounds->northeast->lat;
145 $lon = $this->result->results[$delta]->geometry->bounds->southwest->lng;
150 $lat = $this->result->results[$delta]->geometry->bounds->northeast->lat;
151 $lon = $this->result->results[$delta]->geometry->bounds->northeast->lng;
156 $lat = $this->result->results[$delta]->geometry->bounds->southwest->lat;
[all …]
H A DGeoJSON.class.php40 return $this->read($input->geometry);
125 public function write(Geometry $geometry, $return_array = FALSE) { argument
127 return $this->getArray($geometry);
130 return json_encode($this->getArray($geometry));
134 public function getArray($geometry) { argument
135 if ($geometry->getGeomType() == 'GeometryCollection') {
137 foreach ($geometry->components as $component) {
149 'type'=> $geometry->getGeomType(),
150 'coordinates'=> $geometry->asArray(),
H A DEWKT.class.php11 * @param Geometry $geometry
15 public function write(Geometry $geometry) { argument
16 $srid = $geometry->SRID();
20 $wkt .= $geometry->out('wkt');
24 return $geometry->out('wkt');
H A DGeoHash.class.php95 * @param Point $geometry
98 public function write(Geometry $geometry, $precision = NULL){ argument
99 if ($geometry->isEmpty()) return '';
101 if($geometry->geometryType() === 'Point'){
102 return $this->encodePoint($geometry, $precision);
106 $envelope = $geometry->envelope();
H A DGPX.class.php32 * @param Geometry $geometry
36 public function write(Geometry $geometry, $namespace = FALSE) { argument
37 if ($geometry->isEmpty()) return NULL;
42 …return '<'.$this->nss.'gpx creator="geoPHP" version="1.0">'.$this->geometryToGPX($geometry).'</'.$…
H A DGeoRSS.class.php32 * @param Geometry $geometry
36 public function write(Geometry $geometry, $namespace = FALSE) { argument
41 return $this->geometryToGeoRSS($geometry);
H A DKML.class.php40 * @param Geometry $geometry
44 public function write(Geometry $geometry, $namespace = FALSE) { argument
49 return $this->geometryToKML($geometry);
H A DGeoAdapter.class.php29 abstract public function write(Geometry $geometry); argument
/plugin/geophp/geoPHP/
H A DgeoPHP.inc137 if ($geometry) {
138 $geometry->setGeos($geos);
139 return $geometry;
143 // Reduce a geometry, or an array of geometries, into their 'lowest' available common geometry.
149 if (is_array($geometry)) {
151 if (count($geometry) == 1) return geoPHP::geometryReduce(array_shift($geometry));
158 return $geometry;
172 return $geometry;
178 if (!is_array($geometry)) {
179 $geometry = array($geometry);
[all …]
/plugin/openlayersmap/javascript/OpenLayersMap/Handler/
H A DKeyboardPoint.js103 this.callback('done', [ this.point.geometry.clone() ]);
121 this.point.geometry.x = this.point.geometry.x + lon * resolution;
122 this.point.geometry.y = this.point.geometry.y + lat * resolution;
123 this.callback('modify', [ this.point.geometry, this.point, false ]);
124 this.point.geometry.clearBounds();
133 var geometry = new OpenLayers.Geometry.Point(center.lon, center.lat);
134 this.point = new OpenLayers.Feature.Vector(geometry);
135 this.callback('create', [ this.point.geometry, this.point ]);
136 this.point.geometry.clearBounds();
/plugin/openlayersmap/javascript/OpenLayersMap/Control/
H A DKeyboardClick.js62 onClick : function(geometry) { argument
64 var px = this.map.getPixelFromLonLat(new OpenLayers.LonLat(geometry.x, geometry.y));
68 var radius = Math.round(lonlat.lon - geometry.x);
71 var clicked = OpenLayers.Geometry.Polygon.createRegularPolygon(geometry, radius, sides, rotation);
76 clicked = clicked.resize(resized, geometry);
81 if (clicked.intersects(selTarget.geometry)) {
/plugin/stlviewer/stlviewer/
H A DProjector.js433 var geometry = object.geometry;
445 var attributes = geometry.attributes;
446 var groups = geometry.groups;
482 if ( geometry.index !== null ) {
484 var indices = geometry.index.array;
522 var vertices = geometry.vertices;
523 var faces = geometry.faces;
657 var attributes = geometry.attributes;
681 if ( geometry.index !== null ) {
683 var indices = geometry.index.array;
[all …]
H A Dstl_viewer.min.js2geometry.boundingBox||e.mesh.geometry.computeBoundingBox(),o.model_loaded_callback&&o.model_loaded…
/plugin/spatialhelper/helper/
H A Dindex.php106 $geometry = new Point($geotags ['lon'], $geotags ['lat']);
107 $geohash = $geometry->out('geohash');
207 $geometry = $this->getCoordsFromExif($img ['id']);
208 if(!$geometry) {
211 $geohash = $geometry->out('geohash');
H A Dsearch.php84 $geometry = new Point($lon, $lat);
85 return $this->findNearby($geometry->out('geohash'), $geometry);
/plugin/openlayersmap/lib/
H A DOpenLayers.js398geometry=null;for(var i=0,len=features.length;i<len;i++){geometry=features[i].geometry;if(geometry variable
539geometry,options);distance=details?result.distance:result;if(distance<min){min=distance;best=resul… argument
572geometry;geometry=geometry.clone();if(this.internalProjection&&this.externalProjection)geometry.tr…
600geometry.CLASS_NAME=="OpenLayers.Geometry.Point")intersect=this.containsPoint(geometry);else if(ge…
679geometry){return this.buildGeometry.collection.apply(this,[geometry])},linestring:function(geometr…
755geometry.components.length;i++){this.calculateFeatureDx(geometry.components[i].getBounds(),worldBo…
796geometry),complete:drawn};else return false},postDraw:function(node){},drawPoint:function(node,geo…
798geometry.components.length;i<len;i++)this.eraseGeometry(geometry.components[i],featureId);else{var…
847geometry){return this.drawCircle(node,geometry,1)},drawCircle:function(node,geometry,radius){if(!i…
848geometry){return this.drawLine(node,geometry,false)},drawLinearRing:function(node,geometry){return…
[all …]
/plugin/wysiwyg/fckeditor/editor/_source/internals/
H A Dfcktablehandler.js305 var geometry = this._GetMarkerGeometry( tableMap, rowIdx, colIdx, '_CellSelected' ) ;
306 var baseColIdx = colIdx - geometry.x ;
307 var baseRowIdx = rowIdx - geometry.y ;
309 if ( geometry.width >= geometry.height )
311 for ( colIdx = baseColIdx ; colIdx < baseColIdx + geometry.width ; colIdx++ )
313 rowIdx = baseRowIdx + ( colIdx - baseColIdx ) % geometry.height ;
320 if ( g.width != geometry.width || g.height != geometry.height )
329 for ( rowIdx = baseRowIdx ; rowIdx < baseRowIdx + geometry.height ; rowIdx++ )
331 colIdx = baseColIdx + ( rowIdx - baseRowIdx ) % geometry.width ;
338 if ( g.width != geometry.width || g.height != geometry.height )
/plugin/jdraw/src/com/mxgraph/examples/swing/editor/
H A DEditorPalette.java227 mxGeometry geometry = new mxGeometry(0, 0, width, height); in addEdgeTemplate() local
228 geometry.setTerminalPoint(new mxPoint(0, height), true); in addEdgeTemplate()
229 geometry.setTerminalPoint(new mxPoint(width, 0), false); in addEdgeTemplate()
230 geometry.setRelative(true); in addEdgeTemplate()
232 mxCell cell = new mxCell(value, geometry, style); in addEdgeTemplate()
/plugin/googlemaps3/
H A Dscript.js84 attachMarker(map, options, results[0].geometry.location);
94 map.setCenter(results[0].geometry.location);

12