[MS4W-Users] Getting blank tiles in google maps
Brent Fraser
bfraser at geoanalytic.com
Thu Sep 8 15:24:47 EST 2011
Your extents and units are wrong. They must be valid for the projection
specified. Change to
UNITS METERS
and remove the LAYER EXTENTS.
Best Regards,
Brent Fraser
On 9/8/2011 2:20 PM, vaibhavgarg wrote:
> *Ok now it is back to the empty tiles.. here is what the map file
> looks like:
> That other error shows up anytime I specify a unknown projection..a
> side product maybe. *
>
> MAP
> NAME WMS_Server
> SIZE 256 256
> UNITS dd
> EXTENT -2.290993 50.833757 -1.766036 51.105957
> FONTSET '../etc/fonts.txt'
> SYMBOLSET '../etc/symbols.txt'
> STATUS ON
> PROJECTION
> "proj=merc"
> "a=6378137"
> "b=6378137"
> "lat_ts=0.0"
> "lon_0=0.0"
> "x_0=0.0"
> "y_0=0"
> "k=1.0"
> "units=m"
> "nadgrids=@null"
> "no_defs"
> END
> IMAGECOLOR 255 255 255
> IMAGEQUALITY 95
> IMAGETYPE png
> OUTPUTFORMAT
> NAME png
> DRIVER 'GD/PNG'
> MIMETYPE 'image/png'
> IMAGEMODE RGB
> EXTENSION 'png'
> END
>
> WEB
> IMAGEPATH '/tmp/ms_tmp/'
> IMAGEURL '/tmp/'
> METADATA
> 'wms_title' 'Hampshire'
> 'wms_onlineresource' 'http://localhost:8088/cgi-bin/mapserv.exe?map=C:/ms4w/apps/gmap/htdocs/hampshire.map'
> 'wms_srs' 'EPSG:4326'
> 'wms_enable_request' '*'
> END
> TEMPLATE 'fooOnlyForWMSGetFeatureInfo'
> END
>
> LAYER
> NAME 'HampshireAreas'
> TYPE POLYGON
> DEBUG ON
> TEMPLATE fooOnlyForWMSGetFeatureInfo
> EXTENT -2.290993 50.833757 -1.766036 51.105957
> DATA 'C:/ms4w/apps/gmap/data/HampshireAreas.shp'
> METADATA
> 'wms_title' 'HampshireAreas'
> END
> PROJECTION
> "proj=tmerc"
> "lat_0=49"
> "lon_0=-2"
> "k=0.9996012717"
> "x_0=400000"
> "y_0=-100000"
> "ellps=airy"
> "datum=OSGB36"
> "units=m"
> "no_defs"
> END
> STATUS DEFAULT
> CLASS
> NAME 'HampshireAreas'
> STYLE
> WIDTH 0.91
> OUTLINECOLOR 0 0 0
> COLOR 73 135 43
> END
> END
> END
> END
>
> ------------------------------------------------------------------------
> View this message in context: Re: Getting blank tiles in google maps
> <http://osgeo-org.1803224.n2.nabble.com/Getting-blank-tiles-in-google-maps-tp6746323p6773599.html>
> Sent from the ms4w-users mailing list archive
> <http://osgeo-org.1803224.n2.nabble.com/ms4w-users-f4995553.html> at
> Nabble.com.
>
>
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20110908/1892df37/attachment.htm
More information about the MS4W-Users
mailing list