Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.


Ignore:
Timestamp:
02/04/2012 02:38:35 (12 years ago)
Author:
djay
Message:

Fix language in the code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workshop-routing-foss4g/web/routing-final.html

    r76 r80  
    22<head> 
    33 
    4 <title>A Basic GeoExt Page</title> 
     4<title>Une page GeoExt de base</title> 
    55<script src="ext/adapter/ext/ext-base.js" type="text/javascript"></script> 
    66<script src="ext/ext-all.js"  type="text/javascript"></script> 
     
    1717<script type="text/javascript"> 
    1818 
    19      // global projection objects (uses the proj4js lib) 
     19     // Objets globaux projection (utilise la librairie proj4js) 
    2020     var epsg_4326 = new OpenLayers.Projection("EPSG:4326"), 
    2121         epsg_900913 = new OpenLayers.Projection("EPSG:900913"); 
     
    2323     function pgrouting(store, layer, method) { 
    2424         if (layer.features.length == 2) { 
    25              // erase the previous route 
     25             // Effacer le chemin précédent 
    2626             store.removeAll(); 
    2727 
    28              // transform the two geometries from EPSG:900913 to EPSG:4326 
     28             // Re-projÚte les deux géométries de EPSG:900913 et EPSG:4326 
    2929             var startpoint = layer.features[0].geometry.clone(); 
    3030             startpoint.transform(epsg_900913, epsg_4326); 
     
    3232             finalpoint.transform(epsg_900913, epsg_4326); 
    3333 
    34              // load to route 
     34             // Charge le chemin 
    3535             store.load({ 
    3636                 params: { 
     
    4444 
    4545    Ext.onReady(function() { 
    46         // create the map panel 
     46        // Création du paneau carte 
    4747        var panel = new GeoExt.MapPanel({ 
    4848            renderTo: "gxmap", 
     
    5858        var map = panel.map; 
    5959 
    60         // create the layer where the route will be drawn 
     60        // Création de la couche où le chemin sera dessiné 
    6161        var route_layer = new OpenLayers.Layer.Vector("route", { 
    6262            styleMap: new OpenLayers.StyleMap(new OpenLayers.Style({ 
     
    6666        }); 
    6767 
    68         // create the layer where the start and final points will be drawn 
     68        // Création de la couche où le point de départ et d'arrivée sront dessinés 
    6969        var points_layer = new OpenLayers.Layer.Vector("points"); 
    7070 
    71         // when a new point is added to the layer, call the pgrouting function 
     71        // Lorsqu'un nouveau point est ajouté à la couche, appeler la fonction pgrouting 
    7272        points_layer.events.on({ 
    7373            featureadded: function() { 
     
    7676        }); 
    7777 
    78         // add the layers to the map 
     78        // Ajouter la couche à la carte 
    7979        map.addLayers([points_layer, route_layer]); 
    8080 
    81         // create the control to draw the points (see the DrawPoints.js file) 
     81        // Création du control pour dessiner les point (voir le fichier DrawPoints.js) 
    8282        var draw_points = new DrawPoints(points_layer); 
    8383 
    84         // create the control to move the points 
     84        // Création du control pour déplacer les points 
    8585        var drag_points = new OpenLayers.Control.DragFeature(points_layer, { 
    8686            autoActivate: true 
    8787        }); 
    8888 
    89         // when a point is moved, call the pgrouting function 
     89        // Lorsqu'un point est déplacé, appeler la fonction pgrouting 
    9090        drag_points.onComplete = function() { 
    9191              pgrouting(store, points_layer, method.getValue()); 
    9292        }; 
    9393 
    94         // add the controls to the map 
     94        // Ajouter les controls à la carte 
    9595        map.addControls([draw_points, drag_points]); 
    9696 
    97         // create the store to query the web service 
     97        // Création du store pour interroger le service web 
    9898        var store = new GeoExt.data.FeatureStore({ 
    9999            layer: route_layer, 
     
    112112        }); 
    113113 
    114         // create the method combo box 
     114        // Création de la liste déroulante 
    115115        var method = new Ext.form.ComboBox({ 
    116116            renderTo: "method", 
     
    129129            } 
    130130        }); 
    131         // default method is Shortest Path Dijkstra 
     131        // Définir Disjkstra comme méthode par défaut 
    132132        method.setValue("SPD"); 
    133133    }); 
Note: See TracChangeset for help on using the changeset viewer.