[OpenLayers-Commits] r4753 - sandbox/timandseb/wfsv/examples
commits at openlayers.org
commits at openlayers.org
Tue Oct 2 10:40:37 EDT 2007
Author: sbenthall
Date: 2007-10-02 10:40:36 -0400 (Tue, 02 Oct 2007)
New Revision: 4753
Modified:
sandbox/timandseb/wfsv/examples/wfs-v.html
Log:
"History" button is asterisked because it doesn't work
Modified: sandbox/timandseb/wfsv/examples/wfs-v.html
===================================================================
--- sandbox/timandseb/wfsv/examples/wfs-v.html 2007-10-02 10:16:47 UTC (rev 4752)
+++ sandbox/timandseb/wfsv/examples/wfs-v.html 2007-10-02 14:40:36 UTC (rev 4753)
@@ -294,7 +294,7 @@
view.appendChild(edit);
var hist = document.createElement("button")
hist.onclick = function () {onModificationEnd(feature); onHistoryStart(feature);}
- hist.innerHTML = "History"
+ hist.innerHTML = "*History"
view.appendChild(hist);
//OpenLayers.Console.log(view);
@@ -586,6 +586,8 @@
var ogcns = "http://www.opengis.net/ogc";
var toppns = "http://www.openplans.org/topp";
+
+ /* modifying to try to get filtered changes */
function getLog() {
var getFeature = xml.createElementNS(wfsns, "wfs:GetFeature");
getFeature.setAttribute("version", "1.0.0");
@@ -593,6 +595,17 @@
getFeature.setAttribute("outputFormat", "GML2");
var query = xml.createElementNS(wfsns, "wfs:Query");
query.setAttribute("typeName", "topp:changesets");
+
+ //begin new code to alter request
+ var filterProp = xml.createElementNS(ogcns, "ogc:Filter");
+ var featureProp = xml.createElementNS(ogcns, "ogc:FeatureId");
+ featureProp.setAttribute("fid", "archsites.121");
+ filterProp.appendChild(featureProp);
+ query.appendChild(filterProp);
+ //end new code
+
+
+
var dateProp = xml.createElementNS(ogcns, "ogc:PropertyName");
dateProp.appendChild(xml.createTextNode("date"));
query.appendChild(dateProp);
More information about the Commits
mailing list