Thanks, we got our proxy set up - Gary Sherman, our host-er and SA over at
spatialserver.net installed the php5-curl module for apache and now our
proxy is fine.

But now we are still struggling with rendering wfs. We made a context.xml
file like you suggested with our topp:states layer as a test. How do we
modify the Mapbuilder simple example config.xml to render the wfs? We are
trying the GmlRendererOL with no luck.

Our Context.xml and config.xml are below.

Context.xml:
<?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>

    <FeatureType hidden="0" maxFeatures="100" id="topp:states">
      <Server service="OGC:WFS" version="1.0.0" title="WFS">
        <OnlineResource method="POST" xlink:type="simple"
xlink:href="http://spatialserver.net:8080/geoserver-nijel/wfs"/>
      </Server>
      <Name>topp:states</Name>
      <Title>Good Ol' Topp:States</Title>
      <SRS>EPSG:4326</SRS>
    </FeatureType>
  </ResourceList>
</OWSContext> 
-------------------------------------------------------------------------------------------
Config.xml:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<MapbuilderConfig version="0.2.1" id="simpleTemplate"
xmlns="http://mapbuilder.sourceforge.net/mapbuilder";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://mapbuilder.sourceforge.net/mapbuilder
../../lib/schemas/config.xsd">
  <models>
    <OwsContext id="mainMap">
      <defaultModelUrl>doarContext.xml</defaultModelUrl>
      <widgets>
        <MapPaneOL id="mainMapWidget">
          <htmlTagId>mainMapPane</htmlTagId>
          <fixedSize>true</fixedSize>
          <displayOutsideMaxExtent>true</displayOutsideMaxExtent>
        </MapPaneOL>
        <GmlRendererOL id="GmlRenderer">
            <htmlTagId>mainMapPane</htmlTagId>
            <targetModel>mainMap</targetModel>
            <featureOnClick>featurePopup</featureOnClick>
          </GmlRendererOL>
          <TipWidgetOL id="featurePopup">
            <width>275</width>
            <height>137</height>
            <opacity>0.8</opacity>
            <backgroundColor>#D0D0D0</backgroundColor>
            <border>1px solid black</border>
          </TipWidgetOL>
        <Legend id="contextLegend">
          <htmlTagId>legend</htmlTagId>
        </Legend>
      </widgets>
      <tools>
        <History id="extentHistory"/>
        <FeatureSelectHandler id="featureHighlighter">
          <targetModel>mainMap</targetModel>
        </FeatureSelectHandler>
      </tools>
      <namespace>xmlns:gml='http://www.opengis.net/gml'
xmlns:wfs='http://www.opengis.net/wfs'
xmlns:topp='http://www.openplans.org/topp'</namespace>
     
<nodeSelectXpath>/wmc:ViewContext/wmc:ResourceList/wmc:Layer</nodeSelectXpath>
    </OwsContext>
  </models>
...
</MapbuilderConfig>

Lela



Ah,
Sounds like you don't have a proxy set up properly.

I've just updated 
http://docs.codehaus.org/display/MAP/Installing+MapBuilder which 
hopefully should explain how to install a proxy.

As a debugging step, you might want to try installing the mapbuilder.war 
file inside tomcat.

LCPNJL wrote:

-- 
View this message in context: 
http://www.nabble.com/Rendering-actual-WFS-data--tp3682023p16801745.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

Reply via email to