Index: htdocs/geomoose/GeoMOOSE/MapSource/Vector/WFS.js =================================================================== --- htdocs/geomoose/GeoMOOSE/MapSource/Vector/WFS.js (revision 867) +++ htdocs/geomoose/GeoMOOSE/MapSource/Vector/WFS.js (working copy) @@ -35,9 +35,17 @@ this.save_strategy = new OpenLayers.Strategy.Save(); + var strategies = []; + if (this.fixed) { + strategies.push(new OpenLayers.Strategy.Fixed()); + } else { + strategies.push(new OpenLayers.Strategy.BBOX()); + } + strategies.push(this.save_strategy); + this._ol_layer = new OpenLayers.Layer.Vector(this._ol_layer_name, { - strategies: [new OpenLayers.Strategy.BBOX(), this.save_strategy], - projection: new OpenLayers.Projection(CONFIGURATION.projection), + strategies: strategies, + projection: new OpenLayers.Projection(this.srsName), styleMap : this.style_map, visibility: false, protocol: new OpenLayers.Protocol.WFS({ @@ -52,6 +60,20 @@ }); }, + getUrl: function() { + return this.url + }, + + setUrl: function(url) { + this.url = url; + this._ol_layer.protocol.url = this.url; + this._ol_layer.protocol.options.url = this.url; + }, + + redraw: function(url) { + this._ol_layer.refresh(); + }, + preParseNode: function(mapbook_xml) { var conversion_hash = { 'featureNS' : 'feature-namespace', @@ -75,6 +97,8 @@ this.srsName = CONFIGURATION.projection; } + this.fixed = mapbook_xml.getAttribute('fixed'); + return mapbook_xml; }, Index: htdocs/php/select.php =================================================================== --- htdocs/php/select.php (revision 867) +++ htdocs/php/select.php (working copy) @@ -301,7 +301,8 @@ $dict['SHOW_FOLLOWUP'] = 'none'; } -$dict['PROJECTION'] = 'epsg:4326'; #$CONFIGURATION['projection']; +$dict['PROJECTION'] = 'EPSG:4326'; +$dict['MAP_PROJECTION'] = urldecode($_REQUEST['projection']); # Create the shapefile if(sizeof($foundShapes) > 0 and $foundShapes[0]->type == MS_SHAPE_POINT) { @@ -353,15 +354,20 @@ print ""; print ""; print "Found Shapes: '.sizeof($foundShapes).'
'; Index: htdocs/php/select/highlight.map =================================================================== --- htdocs/php/select/highlight.map (revision 867) +++ htdocs/php/select/highlight.map (working copy) @@ -17,6 +17,8 @@ WEB METADATA 'ows_enable_request' '*' + 'ows_title' 'Selection Service' + 'ows_srs' '[PROJECTION] [MAP_PROJECTION]' END END @@ -40,6 +42,16 @@ GROUP 'highlight' CONNECTIONTYPE OGR CONNECTION '[SHAPEPATH]/[UNIQUEID].db' + METADATA + 'ows_title' 'Selected Features' + 'gml_featureid' 'PIN' + 'gml_include_items' 'all' + END + + PROJECTION + '+init=[PROJECTION]' + END + DATA 'features' CLASS @@ -58,6 +70,17 @@ GROUP 'highlight' CONNECTIONTYPE OGR CONNECTION '[SHAPEPATH]/[UNIQUEID].db' + + METADATA + 'ows_title' 'Selection' + 'gml_featureid' 'AREA' + 'gml_include_items' 'all' + END + + PROJECTION + '+init=[PROJECTION]' + END + DATA 'selection' CLASSITEM AREA Index: conf/mapbook.xml =================================================================== --- conf/mapbook.xml (revision 867) +++ conf/mapbook.xml (working copy) @@ -108,12 +108,20 @@ + + + ./demo/parcels/parcels.map