[OpenLayers-Users] WFS connection

Richie Pierce Richie.Pierce at arkansas.gov
Thu Jul 6 19:43:57 CDT 2006


Thanks for the quick response you guys.  
Looks like the OpenLayers.ProxyHost = ''; worked just fine although I'm
not getting any data showing within my map area.  My guess is that the
projection is not set the same for the WFS features.

The SRS for the WFS features is 26915 which is UTM Zone 15N.  Is it
possible to let MapServer know the projection of the WFS layer so it can
be re-projected?

And I wish I could send out a URL for the site but its currently on our
Dev. Environment which is not accessible from the outside.  But as soon
as I get something running it'll be on GeoStor
(www.geostor.arkansas.gov).

On a side note.  Is there documentation anywhere?  I saw the Wiki is
pretty empty, and that its in the list for the Milstone's.  I just
didn't know if there might be some limited doc somewhere that I didn't
find.

Thanks,

Richie Pierce
GIS Specialist
Arkansas Geographic Information Office
(w)501-682-2937
(c)501-416-2267
www.gis.state.ar.us
 
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt at crschmidt.net] 
Sent: Thursday, July 06, 2006 7:16 PM
To: Richie Pierce
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] WFS connection

On Thu, Jul 06, 2006 at 07:02:46PM -0500, Richie Pierce wrote:
> I have just recently downloaded OpenLayers and am extremely exited
about
> working with it.  I have customized one of the examples and added my
own
> WMS layer.  Now I am trying to connect to our ArcIMS WFS connector.  I
> have followed the example WFS.html but am not having any luck.  Any
help
> would be great.
Richie:

There's a bit of an undocumented aspect of the WFS layer: specifically,
that URLs are by default passed through a proxy layer, because there is
no way to access sites on a remote server via Javascript.

If you are running this under the www.geostor.arkansas.gov domain name,
this is not neccesary: Simply add a line, before your 'var g2_counties',
which says:

  OpenLayers.ProxyHost = '';

If you're not running under that domain name, however, you'll need to
use a proxy script. There is an example proxy script in the examples
directory, called proxy.txt: Copy this file to 'proxy.cgi' in some
location on your webserver that can run CGI scripts. Then do something
similar to:

  OpenLayers.ProxyHost = '/cgi-bin/proxy.cgi?';

If this does not work, and your demo is accessible on the internet,
please respond and include a link to your demo so that I can further
investigate the issue.

-- 
Christopher Schmidt
Web Developer



More information about the Users mailing list