Changes between Version 29 and Version 30 of ZooWebSite/Demo/GdalProfileJs
- Timestamp:
- Dec 1, 2010, 3:50:47 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWebSite/Demo/GdalProfileJs
v29 v30 205 205 206 206 function simpleProcessing1(aProcess) { 207 if( mapControls.line.features.length == 0)207 if(lineLayer.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( mapControls.line.features[0],false)+";");212 eval( "var toto= "+geojson.write(lineLayer.features[0],false)+";"); 213 213 var geom="{\"type\":\"LineString\",\"coordinates\":["; 214 214 for(var i=0;i<toto.geometry.coordinates.length;i++){