Comments (7)
Hi strk,
If you have GEOS and you are creating a custom application I would definitely recommend using it instead of geoPHP. geoPHP contains a subset of the most important GEOS methods, but doesn't support most of the more advanced topological ones. geoPHP is meant to be used in applications that might be installed on shared hosts etc. where GEOS is not available.
However, if geoPHP detects that GEOS is installed, it will automatically wrap itself around it and start using GEOS. See here for more details on how this works: https://github.com/phayes/geoPHP/wiki/GEOS
from geophp.
Oh, the one reason you may want to use geoPHP instead of GEOS (or even better,with GEOS) is all the awesome adapters we have (wkt, wkb, geoRSS, KML, GPX).
from geophp.
And I just realized that the big comment I wrote to you got eaten by the internet. Will post again...
from geophp.
On Wed, Jan 18, 2012 at 08:10:07AM -0800, Patrick Hayes wrote:
However, if geoPHP detects that GEOS is installed, it will
automatically wrap itself around it and start using GEOS. See here for
more details on how this works: https://github.com/phayes/geoPHP/wiki/GEOS
Neat ! Thank you for the overview.
I've added geoPHP on the list of GEOS users:
http://trac.osgeo.org/geos/wiki/Applications
First user of the PHP API I know of :)
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
from geophp.
Thanks!
One useful way you could use geoPHP with GEOS that I just thought of just this moment is to only use geoPHP as a format parser. For example:
$GEOS_geom = geoPHP::load("<georss:polygon>10 23 45 53 12 10 23</georss:polygon>",'georss')->geos();
This should allow you to use geoPHP to load GEOS geometries from geoRSS, GPX, KML and GeoJSON (and addresses via google geocode). Equally, here an example of using geoPHP to output GEOSGeometry into kml:
$kml = geoPHP::geosToGeometry($GEOS_geom)->out('kml');
Just a thought. I should add this to the wiki. :-)
from geophp.
Just one more thought, given that it sounds like you are interested in knowing if your GEOS PHP bindings are being used: GeoPHP is used pretty extensively in Drupal (it's a prerequisite for many of the more powerful mapping modules). I know that many people in Drupal-mapping-land have installed GEOS because of the performance improvements you get when using it along-side geoPHP. FYI. :-)
from geophp.
On Thu, Jan 19, 2012 at 09:30:11AM -0800, Patrick Hayes wrote:
Just one more thought, given that it sounds like you are interested in knowing if your GEOS PHP bindings are being used: GeoPHP is used pretty extensively in Drupal (it's a prerequisite for many of the more powerful mapping modules). I know that many people in Drupal-mapping-land have installed GEOS because of the performance improvements you get when using it along-side geoPHP. FYI. :-)
Drupal was actually my main target for writing the GEOS PHP bindings,
so I'm glad it's finally used there :)
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
from geophp.
Related Issues (20)
- convert wkb to wkt via php HOT 3
- How to use contains method ? HOT 3
- Convert distance (spatial reference) to meters ? HOT 4
- GPX to KML conversion problem
- Example for re-projecting from one reference frame to another? HOT 1
- Intersects, Crosses, Contains not working HOT 4
- union return null HOT 5
- Could not install in laravel 7
- Cannot construct Point. x and y should be numeric: trim coordinates HOT 2
- Any Tutorial for Windows Users? HOT 2
- error install php-geos on Centos 7
- New GEOS web site
- Check intersect of rotated rectangles
- How to install GEOS-php extension on windows ?
- Fix PHP 8.1 compatibility HOT 2
- Is there an equivalent to python's library shapely function split()?
- Can not execute geos-php on Amazon Linux2 with php7.4 or php8.0 HOT 1
- any URL with a ?url=xxx parameter generates a 429 error(!)
- geoPHP/tests/postgis.php use PHP short tag
- Forks HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geophp.