Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Basically my question is:

Can I combine the functions of proj4 with php in my server?

For example, I would like to know if it is possible get data in WGS84 and transform in ETRS89.

I need to get WGS84 data with php, then use proj4 to transform them to ETRS89 and finally use them in php.

If the answer is right, how can I configure php and proj4 to work together???


share|improve this question
are you on a shared server, our can you install php extensions? if you can, then adding GEOS (google) and using geo-php (search github) would do It. –  deroses Jun 1 '14 at 12:01
Are you sure? Geos manage spatial operations and not projections at all. –  ThomasG77 Dec 17 '14 at 13:21

1 Answer 1

If you use geoserver you can configure it to do transformations from source. Also WGS84 is practically same as ETRS89 (<1m) (You need to know when it's measured to do more accurate transformations) So you can probably play dump and just assume that they are same.

Have you considered PostGIS -> Geoserver -> PHP app stack? In that configurationyou would have PostGIS and Geoserver which both are capable to transform data.

Something like load data into PostGIS , do st_Transform , use geoserver view to server WFS or WMS layer. Or you could just use PostGIS + (SQL) from PHP, where PostGIS does all hard GIS functions and php only stores/vies data from database.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.