<br><font size=2 face="sans-serif">You're correct, Christopher. I
was mistaken. I copied and pasted out of Firefox's xml viewer, which
for some reason strips out the namespace information. </font>
<br>
<br><tt><font size=3><?xml version="1.0" encoding="UTF-8"?><wfs:FeatureCollection
xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs"
xmlns:SJW="http://devinside.sjwater.com/" xmlns:gml="http://www.opengis.net/gml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://devinside.sjwater.com/
http://localhost:8080/geoserver/wfs?service=WFS&amp;version=1.0.0&amp;request=DescribeFeatureType&amp;typeName=SJW:pg_fire_hydrant
http://www.opengis.net/wfs http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd"></font></tt>
<br>
<br><font size=2 face="sans-serif">That is what's actually coming out,
which I can see when I view the source or the responsexml. So I'm
back to square one again. Trying to figure out why that which is
showing up correctly when I do an abbreviated example (using the gml example
page) isn't working when I try to set the url dynamically.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christopher Schmidt <crschmidt@metacarta.com></b>
</font>
<p><font size=1 face="sans-serif">08/13/2009 10:19 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Aaron_Gundel@sjwater.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] Question about
GML/WFS compatibility and Styling</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>On Thu, Aug 13, 2009 at 10:12:30AM -0700, Aaron_Gundel@sjwater.com
wrote:<br>
> Not a problem, Christopher...<br>
> <br>
> Here's the raw response I get back from geoserver (minus a couple
of <br>
> unrelated and superflouous elements)... <br>
> <br>
> <wfs:FeatureCollection xsi:schemaLocation="http://devinside.sjwater.com/
<br>
> http://localhost:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=SJW:pg_station
<br>
> http://www.opengis.net/wfs <br>
> http://localhost:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd"><br>
<br>
^^ Is this really the start of the file? Nothing else? This is clearly
a <br>
problem, because there are no namespaces defined here, so this is invalid<br>
XML. It seems like something here is misconfigured on the server, so I'd<br>
take this to the GeoServer list and see if they have any ideas. I know
that<br>
the GML support in OPenLayers was built entirely around GeoServer, so there's<br>
no reason to believe that it shouldn't/couldn't work.<br>
<br>
-- Chris<br>
<br>
<br>
> <gml:boundedBy><br>
> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><br>
> <gml:coordinates decimal="." cs="," ts="
"><br>
> -121.93380447,37.30239967 -121.93192514,37.30404022<br>
> </gml:coordinates><br>
> </gml:Box><br>
> </gml:boundedBy><br>
> <gml:featureMember><br>
> <SJW:pg_station fid="pg_station.91"><br>
> <gml:boundedBy><br>
> <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><br>
> <gml:coordinates decimal="." cs="," ts="
"><br>
> -121.93380447,37.30239967 -121.93192514,37.30404022<br>
> </gml:coordinates><br>
> </gml:Box><br>
> </gml:boundedBy><br>
> <SJW:gdo_geometry><br>
> <gml:MultiPolygon srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><br>
> <gml:polygonMember><br>
> <gml:Polygon><br>
> <gml:outerBoundaryIs><br>
> <gml:LinearRing><br>
> <gml:coordinates decimal="." cs="," ts="
"><br>
> -121.93192514,37.30239967 -121.93193417,37.30397591 <br>
> -121.93193649,37.30398413 -121.93193987,37.30399212 <br>
> -121.93194428,37.30399977 -121.93194967,37.30400702 <br>
> -121.93195598,37.30401378 -121.93196313,37.30401997 <br>
> -121.93197106,37.30402553 -121.93197967,37.3040304 <br>
> -121.93198887,37.30403452 -121.93200793,37.30404022 <br>
> -121.93227819,37.30402362 -121.93244372,37.30401651 <br>
> -121.93260937,37.30401171 -121.9327751,37.30400922 <br>
> -121.93380447,37.30399679 -121.93380408,37.30382777 <br>
> -121.93380369,37.30366524 -121.93380331,37.30350359 <br>
> -121.93380296,37.30335164 -121.93380258,37.30319194 <br>
> -121.93380227,37.30305845 -121.93380187,37.30289095 <br>
> -121.93380152,37.3027424 -121.93380111,37.30256592 <br>
> -121.93380073,37.30240301 -121.93368572,37.30240281 <br>
> -121.93346706,37.30240242 -121.93313702,37.30240183 <br>
> -121.93279384,37.30240122 -121.93192514,37.30239967<br>
> </gml:coordinates><br>
> </gml:LinearRing><br>
> </gml:outerBoundaryIs><br>
> </gml:Polygon><br>
> </gml:polygonMember><br>
> </gml:MultiPolygon><br>
> </SJW:gdo_geometry><br>
> </SJW:pg_station><br>
> </gml:featureMember><br>
> </wfs:FeatureCollection><br>
> <br>
> If I modify this to fit into the mapserver namespace like so, It shows
up <br>
> correctly on the map. <br>
> <br>
> <?xml version="1.0" encoding="ISO-8859-1"?><br>
> <wfs:FeatureCollection xmlns:ms="http://google.com/mapserver"
<br>
> xmlns:wfs="http://www.opengis.net/wfs" <br>
> xmlns:gml="http://www.opengis.net/gml" <br>
> xmlns:ogc="http://www.opengis.net/ogc" <br>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br>
> <gml:boundedBy><br>
> <gml:Box srsName="EPSG:4326"><br>
> <gml:coordinates><br>
> -121.93380447,37.30239967 -121.93192514,37.30404022<br>
> </gml:coordinates><br>
> </gml:Box><br>
> </gml:boundedBy><br>
> <gml:featureMember><br>
> <ms:polygon fid="pg_station.91"><br>
> <gml:boundedBy><br>
> <gml:Box srsName="EPSG:4326"><br>
> <gml:coordinates><br>
> -121.93380447,37.30239967 -121.93192514,37.30404022<br>
> </gml:coordinates><br>
> </gml:Box><br>
> </gml:boundedBy><br>
> <ms:msGeometry><br>
> <gml:MultiPolygon srsName="EPSG:4326"><br>
> <gml:polygonMember><br>
> <gml:Polygon><br>
> <gml:outerBoundaryIs><br>
> <gml:LinearRing><br>
> <gml:coordinates><br>
> -121.93192514,37.30239967 -121.93193417,37.30397591 <br>
> -121.93193649,37.30398413 -121.93193987,37.30399212 <br>
> -121.93194428,37.30399977 -121.93194967,37.30400702 <br>
> -121.93195598,37.30401378 -121.93196313,37.30401997 <br>
> -121.93197106,37.30402553 -121.93197967,37.3040304 <br>
> -121.93198887,37.30403452 -121.93200793,37.30404022 <br>
> -121.93227819,37.30402362 -121.93244372,37.30401651 <br>
> -121.93260937,37.30401171 -121.9327751,37.30400922 <br>
> -121.93380447,37.30399679 -121.93380408,37.30382777 <br>
> -121.93380369,37.30366524 -121.93380331,37.30350359 <br>
> -121.93380296,37.30335164 -121.93380258,37.30319194 <br>
> -121.93380227,37.30305845 -121.93380187,37.30289095 <br>
> -121.93380152,37.3027424 -121.93380111,37.30256592 <br>
> -121.93380073,37.30240301 -121.93368572,37.30240281 <br>
> -121.93346706,37.30240242 -121.93313702,37.30240183 <br>
> -121.93279384,37.30240122 -121.93192514,37.30239967<br>
> </gml:coordinates><br>
> </gml:LinearRing><br>
> </gml:outerBoundaryIs><br>
> </gml:Polygon><br>
> </gml:polygonMember><br>
> </gml:MultiPolygon><br>
> </ms:msGeometry><br>
> </ms:polygon><br>
> </gml:featureMember><br>
> </wfs:FeatureCollection><br>
> <br>
> So I'm not sure what I can/should do about this. Obviously I
can't modify <br>
> the geoserver response, but I don't know if there's some vendor parameter
<br>
> that will correct the issue, or if I just can't use the gml layer
at all. <br>
> Thanks again...<br>
> <br>
> <br>
> <br>
> <br>
> Christopher Schmidt <crschmidt@metacarta.com> <br>
> 08/13/2009 10:05 AM<br>
> <br>
> To<br>
> Aaron_Gundel@sjwater.com<br>
> cc<br>
> users@openlayers.org<br>
> Subject<br>
> Re: [OpenLayers-Users] Question about GML/WFS compatibility and Styling<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On Thu, Aug 13, 2009 at 09:44:32AM -0700, Aaron_Gundel@sjwater.com
wrote:<br>
> > Sorry Christopher, I replied to you but I don't think I cc'd
the list. <br>
> > Anyway...<br>
> > <br>
> > Yes, my html is hosted at a different origin. Yes, I am
using a proxy. <br>
> > Yes, firebug is showing the file loading up. The URL does
contain the <br>
> > requested data and the features are contained within the GML.
<br>
> > Unfortunately no, there's no url to this right now as it's an
intranet <br>
> > site. <br>
> > <br>
> > Poking around at this further, it looks to be some kind of namespace
<br>
> issue <br>
> > with what's coming out of geoserver not being read by openlayers.
I <br>
> know <br>
> > that the basic geometry is valid now, I swapped out some of the
elements <br>
> <br>
> > [for some I knew that worked, as per the gml example] and changed
some <br>
> > namespace attributes and got it to work. But I can't serve
this up from <br>
> <br>
> > geoserver, hence the problem. Any idea how to work around
this?<br>
> <br>
> It might be best to provide a minimal GML file that works and a minimal
<br>
> GML file that doesn't work, to show the differences, and perhaps help
<br>
> other people understand how to help you. <br>
> <br>
> Best Regards,<br>
> -- <br>
> Christopher Schmidt<br>
> MetaCarta<br>
> <br>
<br>
-- <br>
Christopher Schmidt<br>
MetaCarta<br>
</font></tt>
<br>