For a project where most queries on the database will include requirements like "within an polygon" I have come to think about choosing PostgreSQL with PostGIS instead of MySQL, which I have previously mainly used. Mainly because PostgreSQL has more GIS functions. However, I am uncertain how to evaluate this, and also can't really see the difference from a PHP developer perspective.
- Is PostgreSQL support integrated just as well with PHP as MySQL is?
- Is writing PostgreSQL queries (SQL) very similar to MySQL?
- Are there any caveats to consider when choosing PostgreSQL instead of MySQL?
- Is PostgreSQL per definition the better solution when using GIS data?
Hope you guys can help me clarify some of this.