Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [geophp]

open-source native PHP library for doing geometry operations

1
vote
2answers
34 views

MySQL, geoPHP, select sites near the current site

I'm working with archaeological sites, stored as polygons in a MariaDB 10.3 table, and I have PHP 7.2 with GEOS and geoPHP available. I'm creating a page that displays all the related information for ...
0
votes
0answers
10 views

GeoPHP geosInstalled returns false

I have installed OSGeo4W on my 64-bit windows. I am trying to use GEOS functions in GeoPHP, but when I call geoPHP::geosInstalled, it returns me false. This is how I included the libraries: <?php ...
1
vote
0answers
3k views

How to output geoJSON file from mysql spatial table?

I have a mysql spatial database ('mydb1') of one table ('pk'), i mean by spatial the fact that i obtained the database from a point shapefile using ogr2ogr tool. one row of this 'pk' table, is like: ...
2
votes
0answers
190 views

geoPHP pointOnSurface always returns null

Using geoPHP with geos installed. pointOnSurface() for a valid polygon always returns null. While other functions such as centroid() work fine. Example: geoPHP::geosInstalled(); //true $...
1
vote
0answers
1k views

Efficient way of determining polygon intersection with bounding box

I have a set of polygons, and I need to check whether they are intersecting with a given bounding box(rectangle). What I am doing is, I am taking every vertex of polygon and checking whether it's ...
1
vote
1answer
73 views

Point in zone problem in calculation

I have a strange problem that i believe its because the zone pass through international date line. My goal is to find if a point is within a zone and I use the geoPHP library, everything seems to be ...
1
vote
2answers
205 views

Viewing large set of polygons in PostGIS using OpenLayers?

I am prety new to GIS. I have set up a postgis database with al large dataset and a openlayers front-end to display it. But since the dataset is getting prety big I am looking for a way to only load ...