GIS and Media fusion

"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

User Tools

Site Tools


geoinf14:postgis0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
geoinf14:postgis0 [2014/12/05 17:57]
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 41: Line 48:
  
 ===== Géoservice Get4Capitals.php ===== ===== Géoservice Get4Capitals.php =====
-Cet exemple montre comment créer un service sur mesure qui va //publier// l'​information géographique de la géotable. Il est notamment fait usage du format GeoJSON pour transmettre ces données au client. OpenLayers saura par exemple l'​exploiter facilement.+Cet exemple montre comment créer un service sur mesure qui va //publier// l'​information géographique de la géotable. Il est notamment fait usage du format GeoJSON pour transmettre ces données au client. OpenLayers saura par exemple l'​exploiter facilement ​comme vu dans [[geoinf14:​oltuto#​ex5asource_de_donnees_openlayersformat|Ex5A]].
  
 <​code>​ <​code>​
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
geoinf14/postgis0.1417798625.txt.gz · Last modified: 2018/05/16 10:05 (external edit)