Changes between Version 28 and Version 29 of ZooWebSite/Demo/GdalProfileJs


Ignore:
Timestamp:
Dec 1, 2010, 3:43:29 PM (13 years ago)
Author:
djay
Comment:

Correct the JavaScript code

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/Demo/GdalProfileJs

    v28 v29  
    154154
    155155function lineFeaturAadded(feature) {               
    156 alert(feature);
     156simpleProcessing1();
    157157}
    158158
     
    205205
    206206        function simpleProcessing1(aProcess) {
    207           if(lineLayer.features.length == 0)
     207          if(mapControls.line.features.length == 0)
    208208            return alert("No path created !");
    209209          var url = '/zoosoo/?request=Execute&service=WPS&version=1.0.0&';
    210210          var geojson=new OpenLayers.Format.GeoJSON();
    211211          url += 'Identifier=GdalExtractProfile&DataInputs=RasterFile=topofr.tif@dataType=string;Geometry=';
    212           eval( "var toto= "+geojson.write(lineLayer.features[0],false)+";");
     212          eval( "var toto= "+geojson.write(mapControls.line.features[0],false)+";");
    213213          var geom="{\"type\":\"LineString\",\"coordinates\":[";
    214214          for(var i=0;i<toto.geometry.coordinates.length;i++){

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png