"The explosive growth of the GeoWeb and geographic information has made GIS powerful media for the general public to communicate, but perhaps more importantly, GIS have also become media for constructive dialogs and interactions about social issues." - Sui & Goodchild
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
geoinf14:postgis0 [2014/12/05 17:59] oertz [Géoservice Get4Capitals.php] |
geoinf14:postgis0 [2018/05/16 10:05] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
* pour Windows, installer d'abord Postgresql par [[http://www.enterprisedb.com/products-services-training/pgdownload|EnterpriseDB]], puis activer l'add-on PostGIS (veiller à cocher la case "create spatial database" durant l'installation) | * pour Windows, installer d'abord Postgresql par [[http://www.enterprisedb.com/products-services-training/pgdownload|EnterpriseDB]], puis activer l'add-on PostGIS (veiller à cocher la case "create spatial database" durant l'installation) | ||
* si aucune ne fonctionne, explorer les autres approches pour réaliser cette installation | * si aucune ne fonctionne, explorer les autres approches pour réaliser cette installation | ||
+ | |||
+ | * Astuce pour WAMP et le problème //pg_connect//, d'après Daniel : | ||
+ | <code> | ||
+ | 1. Copier C:\wamp\bin\php\php5.xxx\libpq.dll | ||
+ | 2. Dans C:\wamp\bin\apache\apache2.xxx\bin | ||
+ | 3. Restart Apache | ||
+ | </code> | ||
* Compléter l'installation par la création d'une //geodatabase// : | * Compléter l'installation par la création d'une //geodatabase// : | ||
Line 60: | Line 67: | ||
</code> | </code> | ||
- | On a besoin d'un GeoManager (GeoManager.php) qui sait communiquer avec la geodatabase. | + | On a besoin d'un GeoManager (GeoManager.php) qui sait gérer les requêtes avec la geodatabase et encoder les résultats par un flux GeoJSON. |
<code> | <code> | ||
<?php | <?php | ||
Line 125: | Line 132: | ||
__TODO__ | __TODO__ | ||
- | - Tester ce géoservice et analyser les différentes étapes du processus | + | - Tester ce géoservice et analyser les différentes étapes du processus (veiller à reconfigurer les paramètres de connexion) |
- Terminer l'exemple en exploitant le géoservice dans OpenLayers avec une OpenLayers.Layer.Vector | - Terminer l'exemple en exploitant le géoservice dans OpenLayers avec une OpenLayers.Layer.Vector |