Giter Club home page Giter Club logo

Comments (7)

phayes avatar phayes commented on June 10, 2024

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.

phayes avatar phayes commented on June 10, 2024

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.

phayes avatar phayes commented on June 10, 2024

And I just realized that the big comment I wrote to you got eaten by the internet. Will post again...

from geophp.

strk avatar strk commented on June 10, 2024

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.

phayes avatar phayes commented on June 10, 2024

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.

phayes avatar phayes commented on June 10, 2024

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.

strk avatar strk commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.