Advertisement
Guest User

Untitled

a guest
Apr 12th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. wfs = new OpenLayers.Layer.Vector("Editable Features", {
  2. strategies : [new OpenLayers.Strategy.Fixed(), saveStrategy],
  3. projection: new OpenLayers.Projection("EPSG:4326"),
  4. protocol: new OpenLayers.Protocol.WFS({
  5. version: "1.1.0",
  6. srsName: "EPSG:4326",
  7. url: "http://localhost/cgi-bin/tinyows",
  8. featurePrefix: "tows",
  9. featureNS : "http://www.tinyows.org/",
  10. featureType: "trad",
  11. geometryName: "wkb_geometry",
  12. schema: "http://127.0.0.1/cgi-bin/tinyows?service=WFS&version=1.1.0&request=DescribeFeatureType&Typename=tows:trad"
  13. })
  14. });
  15.  
  16. map.addLayers([gphy, wfs]);
  17.  
  18. <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  19.  
  20. <?xml version='1.0' encoding='UTF-8'?>
  21. <ows:ExceptionReport
  22. xmlns='http://www.opengis.net/ows'
  23. xmlns:ows='http://www.opengis.net/ows'
  24. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  25. xsi:schemaLocation='http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
  26. version='1.1.0' language='en'>
  27. <ows:Exception exceptionCode='InvalidParameterValue' locator='request'>
  28. <ows:ExceptionText>XML request isn't valid</ows:ExceptionText>
  29. </ows:Exception>
  30. </ows:ExceptionReport>
  31.  
  32. <tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows"
  33. schema_dir="/usr/local/tinyows/schema/">
  34. <pg host="127.0.0.1" user="postgres" password="****" dbname="****" port="5432"/>
  35. <metadata name="TinyOWS Server"
  36. title="TinyOWS Server - Demo Service" />
  37. <layer retrievable="1"
  38. writable="1"
  39. ns_prefix="tows"
  40. ns_uri="http://www.tinyows.org/"
  41. name="trad"
  42. title="Träd" />
  43. </tinyows>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement