Commit 7a4d2965357c86ff78652eda953f9a3eaa12ce89

Authored by Edmar Moretti
1 parent f19caa81

--no commit message

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
mashups/openlayers.js.php
... ... @@ -517,18 +517,18 @@ i3GEO.editorOL = {
517 517 }
518 518 },
519 519 captura: function(lonlat){
520   - if(i3GEO.editorOL.layergrafico !== ""){return;}
  520 + //if(i3GEO.editorOL.layergrafico !== ""){return;}
521 521 var layers = [i3GEO.editorOL.layerAtivo()],
522 522 xy = lonlat.split(","),
523 523 u = layers[0].url+"&request=getfeature&service=wfs&version=1.0.0";
524 524 u += "&OUTPUTFORMAT=gml2&typename="+layers[0].params.LAYERS;
525 525  
526   - //u += "&filter=<Filter><Intersect><PropertyName>Geometry</PropertyName><gml:Point><gml:coordinates>"+lonlat+"</gml:coordinates></gml:Point></Intersect></Filter>";
  526 + //u += "&filter=<Filter><Intersects><PropertyName>Geometry</PropertyName><gml:Point><gml:coordinates>"+lonlat+"</gml:coordinates></gml:Point></Intersects></Filter>";
527 527  
528 528 xy[0] = xy[0] * 1;
529 529 xy[1] = xy[1] * 1;
530 530 var poligono = (xy[0]-0.1)+","+(xy[1]+0.1) + " "+(xy[0]+0.1)+","+(xy[1]+0.1)+" " + (xy[0]+0.1)+","+(xy[1]-0.1)+" " + (xy[0]-0.1)+","+(xy[1]-0.1)+" "+(xy[0]-0.1)+","+(xy[1]+0.1);
531   - u += "&filter=<Filter><Intersect><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:posList>"+poligono+"</gml:posList></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersect></Filter>";
  531 + u += "&filter=<Filter><Intersects><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:posList>"+poligono+"</gml:posList></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></Filter>";
532 532  
533 533 document.body.style.cursor="wait";
534 534 if(document.getElementById("i3geoMapa"))
... ...