[OpenLayers-Users] WFS connection
Richie Pierce
Richie.Pierce at arkansas.gov
Thu Jul 6 20:19:50 CDT 2006
David,
I'm using the WMS and WFS connectors for ArcIMS as layers through
OpenLayers. I'm not using a .map file. We've got every layer in our
database (500+) running through the connectors. I am just adding the
layers into OpenLayers straight from the ArcIMS connectors. I have
built MapServer with Proj4 and SDE so I can create a map file with the
layers I need. I was just hoping to find a way to take advantage of our
existing WMS and WFS since they are already available, save myself the
time of having to build the map files.
Richie Pierce
GIS Specialist
Arkansas Geographic Information Office
(w)501-682-2937
(c)501-416-2267
www.gis.state.ar.us
________________________________
From: david.bitner at gmail.com [mailto:david.bitner at gmail.com] On Behalf
Of David William Bitner
Sent: Thursday, July 06, 2006 7:51 PM
To: Richie Pierce
Cc: users at openlayers.org
Subject: Re: [OpenLayers-Users] WFS connection
Richie,
Are you using Mapserver and ArcIMS for different layers in OpenLayers?
You need to make sure that everything that you use is spitting out the
data in 26915. If you are using MapServer for some WMS/WFS layers, you
can make sure to include your projection information in your mapfile and
make sure that you built MapServer against proj4 (further help specific
to MapServer can be found at #mapserver on irc, the mapserver-users
mailing list, or in the documentation at http://mapserver.gis.umn.edu).
David
On 7/6/06, Richie Pierce < Richie.Pierce at arkansas.gov
<mailto:Richie.Pierce at arkansas.gov> > wrote:
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
_______________________________________________
Users mailing list
Users at openlayers.org
http://mailman-viper.python-hosting.com/listinfo/users
--
************************************
David William Bitner
bitner at gyttja.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-viper.python-hosting.com/pipermail/users/attachments/20060706/97c2db5c/attachment-0001.html
More information about the Users
mailing list