Changes between Version 28 and Version 29 of ZooWebSite/Demo/GdalProfileJs
- Timestamp:
- Dec 1, 2010, 3:43:29 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/Demo/GdalProfileJs
v28 v29 154 154 155 155 function lineFeaturAadded(feature) { 156 alert(feature);156 simpleProcessing1(); 157 157 } 158 158 … … 205 205 206 206 function simpleProcessing1(aProcess) { 207 if( lineLayer.features.length == 0)207 if(mapControls.line.features.length == 0) 208 208 return alert("No path created !"); 209 209 var url = '/zoosoo/?request=Execute&service=WPS&version=1.0.0&'; 210 210 var geojson=new OpenLayers.Format.GeoJSON(); 211 211 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)+";"); 213 213 var geom="{\"type\":\"LineString\",\"coordinates\":["; 214 214 for(var i=0;i<toto.geometry.coordinates.length;i++){