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


ogo12:lundi

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
ogo12:lundi [2012/04/15 22:03]
oertz
ogo12:lundi [2018/05/15 17:18] (current)
Line 11: Line 11:
     * http://​dev.openlayers.org/​docs     * http://​dev.openlayers.org/​docs
     * http://​www.youmapps.org/​api/​docs/​doc_librairie_OpenLayers.pdf     * http://​www.youmapps.org/​api/​docs/​doc_librairie_OpenLayers.pdf
-    * http://​docs.openlayers.org/​library/​feature_styling.html+    ​* styling framework : 
 +      ​* http://​docs.openlayers.org/​library/​feature_styling.html 
 +      * liste des propriétés graphiques : http://​dev.openlayers.org/​apidocs/​files/​OpenLayers/​Feature/​Vector-js.html
  
 ===== Ressources ===== ===== Ressources =====
Line 24: Line 26:
  
 ====== Intro : navigation carto "from scratch"​ ====== ====== Intro : navigation carto "from scratch"​ ======
 +  * première requête WMS.GetMap :
  
-====== Série 3 : requête ​WFS ======+http://​ogo.heig-vd.ch/​geoserver/​ogo/​wms?​service=WMS&​version=1.1.0&​request=GetMap&​layers=ogo:​world_simple&​styles=&​bbox=-180.0,​-90.0,​180.0,​83.623&​width=684&​height=330&​srs=EPSG:​4326&​format=image%2Fpng 
 + 
 +  * pour démarrer : 
 +<​code>​ 
 +<​!DOCTYPE html> 
 +<​html>​ 
 +    <​head>​ 
 +        <​title></​title>​ 
 +        <meta http-equiv="​Content-Type"​ content="​text/​html;​ charset=UTF-8">​ 
 + 
 +        <style type="​text/​css">​ 
 + 
 +            span { 
 +                font-weight:​ bold; 
 +            } 
 +                        
 +            #map img { 
 +                width: 800; 
 +                height: 400; 
 +                position: absolute; 
 +                top: 50; 
 +            }            
 +             
 +        </​style>​ 
 + 
 +        <script type="​text/​javascript"​ src="​js/​jquery-1.5.1.js"></​script>​ 
 + 
 +        <script type="​text/​javascript">​ 
 +            var ctrx, ctry, x, y; 
 +             
 +            $(document).ready(function(){ 
 +               
 +              // Put some code here ...         
 +             
 +            }); 
 +        </​script>​ 
 + 
 +    </​head>​ 
 +    <​body>​ 
 +        <p> 
 +            PAN: <span id="​eastBtn">​East</​span>​ - <span id="​northBtn">​North</​span>​ - <span id="​westBtn">​West</​span>​ - <span id="​southBtn">​South</​span>​ |  
 +            ZOOM: <span id="​zinBtn">​In</​span>​ - <span id="​zoutBtn">​Out</​span>​ 
 +        </​p>​ 
 +        <div id="​map">​ 
 +            <img id="​layer1"​ src="​http://​spin3d.com/​Combo.jpg"​ alt="​Put a map here ..."> ​     
 +        </​div>​ 
 +    </​body>​ 
 +</​html>​ 
 +</​code>​ 
 + 
 +====== SLD ====== 
 +  * SLD documentation : http://​mapserver.org/​ogc/​sld.html 
 +  * Swisstopo OGC :  
 +    * **Créer une application OpenLayers qui superpose une couche Swisstopo WMS à un fond Google Maps**  
 +      * WMS : http://​www.geo.admin.ch/​internet/​geoportal/​fr/​home/​services/​geoservices/​display_services/​services_wms.html 
 +    * **Créer un style externe exploitant un attribut de la couche : ch.swisstopo.pixelkarte-pk25.metadata-kartenblatt** 
 +      * WFS : http://​wms.geo.admin.ch/?​service=WFS 
 + 
 + 
 + 
 +====== Série 3 : requêtes ​WFS bien utiles ​======
   * wfs.DescribeFeatureType :   * wfs.DescribeFeatureType :
 <​code>​ <​code>​
-<​DescribeFeatureType version="​1.1.0"​ service="​WFS"​ xmlns="​http://​www.opengis.net/​wfs"​ xmlns:​ogo="​http://​geosysin.iict.ch/​ogo"​ xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance"​ xsi:​schemaLocation="​http://​www.opengis.net/​wfs http://​schemas.opengis.net/​wfs/​1.1.0/​wfs.xsd"> ​+<​DescribeFeatureType version="​1.1.0"​ service="​WFS"​ xmlns="​http://​www.opengis.net/​wfs" ​ 
 + xmlns:​ogo="​http://​geosysin.iict.ch/​ogo"​ xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance" ​ 
 + xsi:​schemaLocation="​http://​www.opengis.net/​wfs http://​schemas.opengis.net/​wfs/​1.1.0/​wfs.xsd"> ​
  <​TypeName>​ogo:​cities</​TypeName> ​  <​TypeName>​ogo:​cities</​TypeName> ​
 </​DescribeFeatureType> ​ </​DescribeFeatureType> ​
Line 35: Line 100:
   * wfs.GetFeature   * wfs.GetFeature
 <​code>​ <​code>​
-<​wfs:​GetFeature service="​WFS"​ version="​1.1.0"​ xmlns:​ogo="​http://​geosysin.iict.ch/​ogo"​ xmlns:​wfs="​http://​www.opengis.net/​wfs"​ xmlns:​ogc="​http://​www.opengis.net/​ogc"​ xmlns:​gml="​http://​www.opengis.net/​gml"​ xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance"​ xsi:​schemaLocation="​http://​www.opengis.net/​wfs http://​schemas.opengis.net/​wfs/​1.1.0/​wfs.xsd"> ​+<​wfs:​GetFeature service="​WFS"​ version="​1.1.0"​ xmlns:​ogo="​http://​geosysin.iict.ch/​ogo" ​ 
 + xmlns:​wfs="​http://​www.opengis.net/​wfs"​ xmlns:​ogc="​http://​www.opengis.net/​ogc" ​ 
 + xmlns:​gml="​http://​www.opengis.net/​gml"​ xmlns:​xsi="​http://​www.w3.org/​2001/​XMLSchema-instance" ​ 
 + xsi:​schemaLocation="​http://​www.opengis.net/​wfs http://​schemas.opengis.net/​wfs/​1.1.0/​wfs.xsd"> ​
  <​wfs:​Query typeName="​ogo:​cities">​  <​wfs:​Query typeName="​ogo:​cities">​
  <​wfs:​PropertyName>​ogo:​wup_capit</​wfs:​PropertyName>​  <​wfs:​PropertyName>​ogo:​wup_capit</​wfs:​PropertyName>​
ogo12/lundi.1334520214.txt.gz · Last modified: 2018/05/15 17:17 (external edit)