Skip to main content
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.
JB D's user avatar
  • 503
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.
spreaderman's user avatar
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(...
Vince's user avatar
  • 20.3k
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 `...
vrteach's user avatar
  • 21

Only top scored, non community-wiki answers of a minimum length are eligible