Changes between Version 62 and Version 63 of ZooWebSite/Demo/GdalProfileJs


Ignore:
Timestamp:
Jul 25, 2015, 11:25:07 AM (9 years ago)
Author:
xrpc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWebSite/Demo/GdalProfileJs

    v62 v63  
    244244            if(request.readyState == OpenLayers.Request.XMLHttpRequest.DONE) {
    245245              console.log(request.responseText);
    246               var  reg=new  RegExp("[;]", "g");
    247               var tmp=request.responseText.split(reg);
     246              var data=JSON.parse(request.responseText);
     247              console.log(data);
     248
     249              //var  reg=new  RegExp("[;]", "g");
     250              //var tmp=request.responseText.split(reg);
     251              var tmp=data.coordinates;
    248252              var idxs=new Array();
    249253              var values= new Array();
    250254              points=new Array();
    251255              for(var i=0;i<tmp.length;i++){
    252                 var  reg1=new  RegExp("[,]", "g");
    253                 var tmpString=tmp[i]+"";
    254                 var tmp1=tmpString.split(reg1);
     256                //var  reg1=new  RegExp("[,]", "g");
     257                //var tmpString=tmp[i]+"";
     258                var tmp1=tmp[i];//tmpString.split(reg1);
    255259                if(tmp1[0] && tmp1[1] && tmp1[2]){
    256260                        idxs[i]=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