2
votes
Accepted
PHP library to get center of the polygon center
GeoPHP is a popular extension for geospatial manipulation and had a centroid method for what you want to do.
1
vote
GeoPHP cannot find any lines contained or intersection my polygons by QGIS does
I found the solution. As a matter of fact "contains" is a feature from GEOS. I installed GEOS and now it works.
1
vote
MySQL, geoPHP, select sites near the current site
There are two ways to integrate a query into another query. One is by using a sub-select:
SELECT siteid
FROM aa_allstate_cty
WHERE ST_Intersects(shape,ST_Buffer(
(SELECT ST_Centroid(...
1
vote
MySQL, geoPHP, select sites near the current site
Thanks, I believe that I figured it out. I should be able to store the "Point(333...,466...)" that was returned in the first SELECT and then feed it to second SELECT.
SELECT
siteid
FROM
`...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
geophp × 10php × 5
postgis × 2
geojson × 2
mysql × 2
qgis × 1
polygon × 1
postgresql × 1
openlayers-2 × 1
geometry × 1
google-maps × 1
gps × 1
intersection × 1
extents × 1
point-in-polygon × 1
spatial-query × 1
geos × 1
mariadb × 1