[mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Hello guys... I know It is a Openlayer question, but maybe someone here can help-me... I did a simple sample to show my problem... My layer sometimes is 100% showed, but when I zoom, several pink layers appears... Its absolute RANDOM... -- If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I´m getting crazy ... ps.: Using Windows XP + IIS Code: Javascript : var map, layer; function init() { map = new OpenLayers.Map('map', { numZoomLevels: 14, units: meters, controls: [ new OpenLayers.Control.ZoomToMaxExtent(), new OpenLayers.Control.PanZoomBar({ zoomWorldIcon: true }), new OpenLayers.Control.LayerSwitcher({ 'ascending': false }), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.KeyboardDefaults() ] }); OpenLayers.IMAGE_RELOAD_ATTEMPTS = 10; layer = new OpenLayers.Layer.MapServer(Sample, http://localhost/cgi-bin/mapserv.exe;, { map: C:/Sample/Openlayer/Map.map, layers: Test }); map.addLayer(layer); map.zoomToMaxExtent(); Mapfile MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET Fonts\Fonts.txt IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 800 600 STATUS ON UNITS dd NAME Test OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 TRANSPARENT FALSE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END REFERENCE EXTENT -79.7892 -34.2426 -24.9958 6.11775 STATUS on SIZE 221 150 MINBOXSIZE 5 MAXBOXSIZE 150 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MARKERSIZE 8 END LAYER NAME Test GROUP Tests TYPE POLYGON STATUS default CONNECTIONTYPE POSTGIS CONNECTION user=xpassword=xdbname=x host=x port=5432 DATA the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1 CLASS COLOR 255 0 255 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Paul james wrote: -- If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I´m getting crazy ... ps.: Using Windows XP + IIS Did you check your IIS logs? It could be that you have too many connections at the same time when OpenLayers loads the map and IIS rejects some of them. -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Hi Daniel! I ckecked the IIS Log... And I´m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: *403.1* - Execute access forbidden. *403.2* - Read access forbidden. *403.3* - Write access forbidden. *403.4* - SSL required. *403.5* - SSL 128 required. *403.6* - IP address rejected. *403.7* - Client certificate required. *403.8* - Site access denied. *403.9* - Too many users. *403.10* - Invalid configuration. *403.11* - Password change. *403.12* - Mapper denied access. *403.13* - Client certificate revoked. *403.14* - Directory listing denied. *403.15* - Client Access Licenses exceeded. *403.16* - Client certificate is untrusted or invalid. *403.17* - Client certificate has expired or is not yet valid. *403.18* - Cannot execute requested URL in the current application pool. This error code is specific to IIS 6.0. *403.19* - Cannot execute CGIs for the client in this application pool. This error code is specific to IIS 6.0. *403.20* - Passport logon failed. This error code is specific to IIS 6.0. Do you know how to fix that? Thanks On Thu, May 28, 2009 at 12:12 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Paul james wrote: -- If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I´m getting crazy ... ps.: Using Windows XP + IIS Did you check your IIS logs? It could be that you have too many connections at the same time when OpenLayers loads the map and IIS rejects some of them. -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Paul james wrote: Hi Daniel! I ckecked the IIS Log... And I´m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: [...] Do you know how to fix that? You mean, other than using Apache? ;) ;) Seriously, you probably need to increase the number of concurrent connections that your IIS will accept, but I have no clue how to do it. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
You are right :P To increase number connections on XP : http://www.dslreports.com/faq/10253 Thanks Daniel! On Thu, May 28, 2009 at 2:29 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Paul james wrote: Hi Daniel! I ckecked the IIS Log... And I´m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: [...] Do you know how to fix that? You mean, other than using Apache? ;) ;) Seriously, you probably need to increase the number of concurrent connections that your IIS will accept, but I have no clue how to do it. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users