Hi Cameron, Thanks very much for the reply - I see now how this is supposed to work. Of course it's never that easy though - I have another roadblock:
When I add the WFS layers as shown in your context.xml I never seem to get a response. I tried some of my Geoserver WFS layers, including topp:states and some of the ones in your context.xml. In Firebug I see these params for example: http://www.pvretano.com/cgdi/geoserver/cwwfs.cgi?typename=cubewerx_wfs_administrative_area&maxfeatures=1000&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187,-5,-7,130 And under "Response" it only says "loading". This is the same no matter the WFS server or layer I try. I also get an "no element found undefined" error in proxy.php on line 1 Lela Cameron Shorter wrote: > > The recent releases of Mapbuilder (1.5+) allow you to specify a WFS > layer in the OWS Context document. (The OWS Context document describes > the layers to be displayed in a map). > > Replace an examples/simple/context.xml with the attached context.xml > which includes WFS layers for an example. > > > LCPNJL wrote: >> Cameron or Reid, >> >> I've been struggling with this same issue but haven't figured it out. >> Could >> either of you please give me some pointers about creating a basic (even >> very >> basic) map that can render WFS? My WFS is coming from Geoserver and I'd >> like >> to render in Mapbuilder. >> >> If there's any simple examples out there please let me know. I took a >> look >> at the context editor example but had trouble applying it to a simpler >> map. >> >> Lela >> >> >> Cameron Shorter wrote: >> >>> Have a look at the Context Editor demo. (Note that it needs to be run >>> as a tomcat servlet). >>> >>> The following URL was working recently: >>> http://bikemap.openearth.com.au:8080/mapbuilder/demo/contextEditor/index.html >>> >>> >> >> Cameron, >> >> Thanks for your help. That was the proper kick in the right direction. >> Based on this demo, I've now got a (very basic) map that can render WFS >> data. >> >> >> > > > -- > Cameron Shorter > Geospatial Systems Architect > Tel: +61 (0)2 8570 5050 > Mob: +61 (0)419 142 254 > > Think Globally, Fix Locally > Commercial Support for Geospatial Open Source Solutions > http://www.lisasoft.com/LISAsoft/SupportedProducts.html > > > <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> > <OWSContext > xmlns="http://www.opengis.net/context" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:sld="http://www.opengis.net/sld" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:ows="http://www.opengis.net/ows" > xmlns:param="http;//www.opengis.net/param" > version="0.0.13" > id="ows-context-tie" > xsi:schemaLocation="http://www.opengis.net/oc oc_0_0_13.xsd"> > > <General> > <Window width="400" height="300"/> > <ows:BoundingBox crs="EPSG:4326"> > <ows:LowerCorner>-142 40</ows:LowerCorner> > <ows:UpperCorner>-52 85</ows:UpperCorner> > </ows:BoundingBox> > <Title xml:lang="en">Simple World Context</Title> > <KeywordList> > <Keyword>world</Keyword> > </KeywordList> > </General> > <ResourceList> > <!-- > <Layer queryable="1" hidden="0"> > <Server service="WMS" version="1.0.0" title="OGC:WMS"> > <OnlineResource xlink:type="simple" > xlink:href="http://labs.metacarta.com/wms/vmap0"/> > </Server> > <Name>basic</Name> > <Title>World Basemap</Title> > <SRS>EPSG:4326</SRS> > <FormatList> > <Format>image/jpeg</Format> > <Format>image/png</Format> > <Format>image/gif</Format> > <Format current="1">image/png; mode=24bit</Format> > <Format>image/wbmp</Format> > <Format>image/tiff</Format> > </FormatList> > <StyleList> > <Style current="1"> > <Name>default</Name> > <Title>default</Title> > </Style> > </StyleList> > </Layer> > --> > > <Layer hidden="0"> > <Server service="WMS" version="1.1.1" title="WMS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://atlas.nrcan.gc.ca/cgi-bin/toporamawms_en"/> > </Server> > <Name>wms_atlasofcanada_eng</Name> > <Title>CGDI NRCan WMS</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </Layer> > > <!-- > <FeatureType hidden="0" maxFeatures="5"> > <Server service="WFS" version="1.0" title="R WFS - gb:PlaceName"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://demo.cubewerx.com/cgdi/cubeserv.cgi?config=mb&datastore=Manitoba"/> > </Server> > <Name>gb:PlaceName</Name> > <Title>WFS gb:PlaceName</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > <FeatureType hidden="1" maxFeatures="1"> > <Server service="WFS" version="1.0" title="R WFS - gb:RoadSegment"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="https://securexnet.env.gov.ab.ca/cgdi2/mapserv?MAP=/maps/cgdif.map"/> > </Server> > <Name>gb:RoadSegment</Name> > <Title>WFS gb:RoadSegment</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > <FeatureType hidden="0" maxFeatures="1"> > <Server service="WFS" version="1.0" title="R WFS - "> > <OnlineResource method="POST" xlink:type="simple" xlink:href=""/> > </Server> > <Name></Name> > <Title>WFS</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > --> > <!-- LISASOFT LAYERS --> > <FeatureType hidden="1" maxFeatures="2" id="lisasoft_wfs_place_names"> > <Server service="WFS" version="1.0" title="Lisasoft's Aggregating > WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://wolf.cits.rncan.gc.ca:8080/geoserver/wfs"/> > </Server> > <Name>gb:PlaceName</Name> > <Title>LS - Place Name</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > <FeatureType hidden="1" maxFeatures="2" > id="lisasoft_wfs_road_segment"> > <Server service="WFS" version="1.0" title="Lisasoft's Aggregating > WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://wolf.cits.rncan.gc.ca:8080/geoserver/wfs"/> > </Server> > <Name>gb:RoadSegment</Name> > <Title>LS - Road Segment</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > <FeatureType hidden="1" maxFeatures="2" > id="lisasoft_wfs_administrative_area"> > <Server service="WFS" version="1.0" title="Lisasoft's Aggregating > WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://wolf.cits.rncan.gc.ca:8080/geoserver/wfs"/> > </Server> > <Name>gb:AdministrativeArea</Name> > <Title>LS - Administrative Area</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > > > <!-- CUBEWERX LAYERS --> > <FeatureType hidden="1" maxFeatures="2" id="cubewerx_wfs_place_names"> > <Server service="WFS" version="1.0" title="CubeWerx's Aggregating > WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://www.pvretano.com/cgdi/geoserver/cwwfs.cgi"/> > </Server> > <Name>gb:PlaceName</Name> > <Title>CW - Place Name</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > <FeatureType hidden="1" maxFeatures="2" > id="cubewerx_wfs_road_segment"> > <Server service="WFS" version="1.0" title="CubeWerx's Aggregating > WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://www.pvretano.com/cgdi/geoserver/cwwfs.cgi"/> > </Server> > <Name>gb:RoadSegment</Name> > <Title>CW - Road Segment</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > <FeatureType hidden="1" maxFeatures="2" > id="cubewerx_wfs_administrative_area"> > <Server service="WFS" version="1.0" title="CubeWerx's Aggregating > WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://www.pvretano.com/cgdi/geoserver/cwwfs.cgi"/> > </Server> > <Name>gb:AdministrativeArea</Name> > <Title>CW - Administrative Area</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > <!-- > <FeatureType hidden="1" maxFeatures="15"> > <Server service="WFS" version="1.0" title="My bird WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp"/> > </Server> > <Name>IBA</Name> > <Title>Important Bird Areas WFS</Title> > <Abstract>This is some bird data</Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > <Layer hidden="0"> > <Server service="OGC:WMS" version="1.1.1" title="My birds WMS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp"/> > </Server> > <Name>IBA</Name> > <Title>Important Bird Areas WMS</Title> > <Abstract>This is some bird data</Abstract> > <SRS>EPSG:4326</SRS> > </Layer> > > <FeatureType hidden="1"> > <Server service="OGC:GML" version="2.1.2" title="Local"> > <OnlineResource method="GET" xlink:type="simple" > xlink:href="iba-gml.xml"/> > </Server> > <Name>IBA</Name> > <Title>IBA Birds GML local</Title> > <Abstract></Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > <FeatureType hidden="1"> > <Server service="OGC:GML" version="2.1.2" title="Tazzy"> > <OnlineResource method="GET" xlink:type="simple" > xlink:href="TasmaniaWaterBodies.xml"/> > </Server> > <Name>Tasmania Water Bodies GML local</Name> > <Title>Tazzy</Title> > <Abstract>This is some bird data</Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > <FeatureType hidden="1"> > <Server service="OGC:WFS" version="1.0" title="TollPoint"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://office.refractions.net:21880/geoserver/wfs"/> > </Server> > <Name>gb:TollPoint</Name> > <Title>TollPoint</Title> > <Abstract>This is some bird data</Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > > --> > <!-- > <Layer hidden="1"> > <Server service="OGC:WMS" version="1.1.1" title="My birds WMS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp"/> > </Server> > <Name>IBA</Name> > <Title>Important Bird Areas WMS</Title> > <Abstract>This is some bird data</Abstract> > <SRS>EPSG:4326</SRS> > </Layer> > --> > <!-- > <FeatureType hidden="0"> > <Server service="OGC:WFS" version="1.0" title="My Geoserver WFS"> > <OnlineResource method="POST" xlink:type="simple" > xlink:href="http://localhost:8080/geoserver/wfs"/> > </Server> > <Name>topp:states</Name> > <Title>USA Population</Title> > <Abstract>This is some census data on the states.</Abstract> > <SRS>EPSG:4326</SRS> > </FeatureType> > --> > </ResourceList> > </OWSContext> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Mapbuilder-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mapbuilder-users > > -- View this message in context: http://www.nabble.com/Rendering-actual-WFS-data--tp3682023p16687663.html Sent from the MapBuilder Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Mapbuilder-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
