[OpenLayers-Users] Mapserver and Openlayers - Pink Tiles
sendeman
martijnsendenspam at gmail.com
Wed Apr 15 12:00:46 EDT 2009
At a first glance your mapserv path appears to be incorrect. Where is
mapserv installed relative to your www root directory? My first guess
is to try "/bin/mapserv".
Alex
Thanks for your reply! I tried your suggestion. I think I had already tried it like this before myself, but it doesn't work either. I still get pink tiles. I also changed the path to the mapfile, so it is relative to the root. The layer definition is now as follows:
========<CODE>========
layer = new OpenLayers.Layer.MapServer( "Spoortunnel Delft",
"/bin/mapserv", {map: "/apps/geoviewer/maps/spoortunnel.map"} );
========</CODE>========
And the location of one of the pink tiles I get is:
http://localhost/bin/mapserv?map=%2Fapps%2Fgeoviewer%2Fmaps%2Fspoortunnel.map&mode=map&map_imagetype=png&mapext=84078.125+447046.875+85406.25+448375&imgext=84078.125+447046.875+85406.25+448375&map_size=256+256&imgx=128&imgy=128&imgxy=256+256
On Wed, Apr 15, 2009 at 08:32:06AM -0600, Alexander Petkov wrote:
> At a first glance your mapserv path appears to be incorrect. Where is
> mapserv installed relative to your www root directory? My first guess
> is to try "/bin/mapserv".
Usually /cgi-bin/mapserv, at least on Apache.
http://trac.openlayers.org/wiki/TroubleshootingTips#Pinktiles
Regards,
--
Christopher Schmidt
Thanks for your reply too! I tried to use the /cgi-bin/mapserv url, but without success. Still a pink tile. I also looked up the troubleshooting url you gave. I tried to paste the image url in my browser. I got this message:
Not Found
The requested URL /bin/mapserv.exe was not found on this server. (similar results for /cgi-bin/mapserv and /apache/cgi-bin/mapserv). After doing all this, I guessed the problem is my server configuration. So I checked the httpd.conf in C:/OSGeo4W/apache/conf. I noticed that the serverroot and document root were different from what I thought. They are:
========<CODE>========
ServerRoot "C:/OSGeo4W/Apache"
DocumentRoot "C:/OSGeo4W/Apache/htdocs"
========</CODE>========
I have made some aliases (not sure if this is the way to go at all!) in a separate doc:
========<CODE>========
# Path to geoviewer folder
Alias /geoviewer "C:\OSGeo4W/apps/geoviewer/htdocs"
# Directory settings geoviewer folder
Directory "C:\OSGeo4W/apps/geoviewer/htdocs">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
# Path to geoviewer/maps folder
Alias /geoviewermaps "C:\OSGeo4W/apps/geoviewer/maps"
# Directory settings geoviewer/maps folder
<Directory "C:\OSGeo4W/apps/geoviewer/maps">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
# Path to cgi-bin folder
Alias /geoviewerbin "C:\OSGeo4W/bin"
# Directory settings cgi-bin folder
<Directory "C:\OSGeo4W/bin">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
========</CODE>========
I then changed the layer definition to:
========</CODE>========
layer = new OpenLayers.Layer.MapServer( "Spoortunnel Delft",
"/geoviewerbin/mapserv", {map: "/geoviewermaps/spoortunnel.map"} );
========<CODE>========
But still no map. The url of one of the pink tiles now is:
http://localhost/geoviewerbin/mapserv?map=%2Fgeoviewermaps%2Fspoortunnel.map&mode=map&map_imagetype=png&mapext=84078.125+445718.75+85406.25+447046.875&imgext=84078.125+445718.75+85406.25+447046.875&map_size=256+256&imgx=128&imgy=128&imgxy=256+256
When I paste the url in Firefox, Firefox asks if I want to save mapserv to disk. It seems to have found mapserver, but doesn't handle the url properly. I'm at a loss here.
I hope someone of you can help me with this! Thanks again!
Best regards,
Martijn Senden.
--
View this message in context: http://n2.nabble.com/Mapserver-and-Openlayers---Pink-Tiles-tp2638175p2639680.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list