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