[Chameleon] WFS layer display problem
Bird, Derek
Derek.Bird at xwave.com
Wed Oct 26 19:21:01 EDT 2005
Hi, this is the same question I asked on the chameleon forum ...
What is occuring is the URL to your map server has a ? followed by the map and whatever parameters .. The Chameleon all then takes that URL and automatically appends a ? to the URL, you can not have two ? marks in a URL.
The only solution I know of would be to create an alias in Apache for your map... ie http://10.59.36.53:8080/cgi-bin/mapserv?map=/var/www/html/fgs/apps/chameleon-2.0/test/map/test.map&typename=sightings2004_point becomes http://10.59.36.53:8080/cgi-bin/maptest then it will work great.
If you notice DMS has their world map demo does not go through mapserv .... They must either have an scriptalias or some custom cgi script. I have not had an answer from them yet...
Regards,
Derek
-----Original Message-----
From: chameleon-bounces at lists.maptools.org on behalf of Matthew Edmondson
Sent: Wed 26/10/2005 6:47 PM
To: Chameleon Users; MAPSERVER-USERS at lists.umn.edu
Cc:
Subject: [Chameleon] WFS layer display problem
I have a layer (pulling from a shapefile) set up on my server set up to share as a wfs layer. The layer displays properly, when tapped via a getfeature request, the data comes back parsed properly with no errors, when using a chameleon experssionbuilder widget, I can see each of the headers for my columns of data. However, when I try to tap that wfs layer to display it in a mapserver, I instantly get a red x in the upper left corner and my map won't load. Even tyring to tap it in the same mapfile (as a wfs connection to the url) gives me errors.
here is the layer attempting to tap the working layer (note, this is on a intranet):
LAYER
NAME wfs_sightings_test
TYPE POINT
STATUS off
CONNECTIONTYPE WFS
CONNECTION " http://10.59.36.53:8080/cgi-bin/mapserv?map=/var/www/html/fgs/apps/chameleon-2.0/test/map/test.map&typename=sightings2004_point <http://10.59.36.53:8080/cgi-bin/mapserv?map=/var/www/html/fgs/apps/chameleon-2.0/test/map/test.map&typename=sightings2004_point> &"
METADATA
"wfs_typename" "sightings2004_point"
"wfs_version" "1.0.0"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "60"
"wms_srs" "epsg:4326"
END
END # Layer
I've read every piece of documentation I've found, and searched every mailing list archive, and I've yet to see any reason why this should be happening. Any help would be greatly appreciated.
Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20051026/82770f97/attachment.html
More information about the Chameleon
mailing list