[Mapbender-commits] r2291 - branches/2.4.5/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 25 11:23:16 EDT 2008
Author: christoph
Date: 2008-03-25 11:23:15 -0400 (Tue, 25 Mar 2008)
New Revision: 2291
Modified:
branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php
Log:
bug fix mixed up wfs conf ids
Modified: branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php
===================================================================
--- branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php 2008-03-25 13:48:53 UTC (rev 2290)
+++ branches/2.4.5/http/javascripts/mod_wfs_SpatialRequest.php 2008-03-25 15:23:15 UTC (rev 2291)
@@ -404,7 +404,7 @@
}
filter += '</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs>';
filter += '</gml:Polygon></Within></ogc:Filter>';
- mb_get_geom(url, filter, i, w_[i]);
+ mb_get_geom(url, filter, i, wfs_config[w_[i]]['featuretype_name'], w_[i], w[i]);
}
}
else if(queryGeom.geomType==geomType.line){
@@ -426,7 +426,7 @@
filter += rectangle[0].x+","+rectangle[0].y+ " " + rectangle[1].x+","+rectangle[1].y;
filter += "</gml:coordinates></gml:Box></ogc:BBOX></ogc:Filter>";
url += param;
- mb_get_geom(url, filter, i, w_[i]);
+ mb_get_geom(url, filter, i, wfs_config[w_[i]]['featuretype_name'], w_[i], w[i]);
}
}
else if(queryGeom.geomType == geomType.point){
@@ -447,17 +447,16 @@
filter += (tmp.x + buffer) + "," + (tmp.y + buffer) + " " + (tmp.x - buffer) + "," + (tmp.y + buffer) + " " + (tmp.x - buffer) + "," + (tmp.y - buffer);
filter += "</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></ogc:Filter>";
url += param;
- mb_get_geom(url, filter, i, w_[i]);
+ mb_get_geom(url, filter, i, wfs_config[w_[i]]['featuretype_name'], w_[i], w[i]);
}
}
// highlight = new Highlight(mb_wfs_targets, highlight_tag_id, {"position":"absolute", "top":"0px", "left":"0px", "z-index":generalHighlightZIndex}, generalHighlightLineWidth);
return true;
}
-function mb_get_geom(url, filter, index, wfs_conf_id) {
-
- mb_ajax_post("../" + wfsResultModulePath + wfsResultModuleFilename,{'url':url,'filter':filter,'typename':wfs_config[wfs_conf_id]['featuretype_name'],'wfs_conf_id':wfs_conf_id},function(js_code,status){
-// alert(js_code);
+function mb_get_geom(url, filter, index, typename, js_wfs_conf_id, db_wfs_conf_id) {
+ mb_ajax_post("../" + wfsResultModulePath + wfsResultModuleFilename, {'url':url,'filter':filter,'typename':typename,'js_wfs_conf_id':js_wfs_conf_id, 'db_wfs_conf_id':db_wfs_conf_id}, function(js_code,status){
+ // alert(js_code);
eval(js_code);
if (typeof(geom) == 'object') mb_execWfsReadSubFunctions(geom);
// prompt('', js_code);
More information about the Mapbender_commits
mailing list