[Mapserver-users] Question about wld/gfw file

Lowell Filak lfilak at medinaco.org
Thu Mar 18 09:34:35 EST 2004


Hopefully this will help.

++++++++++++++++++++++++++++
tp_genmap.wld
++++++++++++++++++++++++++++
1
0
-0
-1
0
300

+++++++++++++++++++++++++++++
your.map
+++++++++++++++++++++++++++++
MAP
  STATUS ON
  IMAGETYPE GIF
  EXTENT 0 0 400 300
  SIZE 400 300
  SHAPEPATH "C:\Program Files\Apache Group\Apache2\htdocs\tutorial\data"
  IMAGECOLOR 255 255 255 
  UNITS METERS

  # Start of LAYER DEFINITIONS
  ---------------------------------------------
  LAYER # States polygon layer begins here
    NAME tp_genmap
    DATA "tp_genmap.gif"
    STATUS DEFAULT
    TYPE RASTER
  END # States polygon layer ends here
  # End of LAYER DEFINITIONS
  -------------------------------
END # end of map file/object

Lowell

The following message was sent by "Lowell Filak" <lfilak at medinaco.org>
on Thu, 18 Mar 2004 08:41:23 -0500.

> If my understanding is correct - what you are trying to do is generate a
> map elsewhere and save it as an image (gif file) and then serve that
> "raster" layer up using mapserver.?
> If that understanding is correct then the answer to "Do I need to create
> a new wld/gfw file for each of my own maps?" is yes.
> 
> If all your doing is serving up a single raster layer (the map image)
> then you can use just about any coordinates you would like in the wld
> file because the image will not need to relate to any other data.
> Keep in mind that you can't serve a scalebar with this approach as it
> will be incorrect.
> Example (this is a quick example so I may need corrected here): If the
> image is 1000x1000 then the wld could be:
> 1
> 0
> -0
> -1
> 0
> 1000
> and the mapfile extent would be 0 0 1000 1000
> 
> HTH
> 
> Lowell
> 
> The following message was sent by =?iso-8859-1?q?TOH=20CZ?=
> <cz_toh at yahoo.com> on Thu, 18 Mar 2004 06:22:32 +0000 (GMT).
> 
> > Hi, I have a few questions about the wld/gfw files
> > used in mapserver
> > 1) Do I need to create a new wld/gfw file for each of
> > my own maps?
> > 2) How do you determine what to put into the wld/gfw
> > file?
> > I tried searching the archives, I could not find one
> > that contained information about using GIF files
> > Right now, my file shows a blank GIF image
> > 
> > MAP
> >   IMAGETYPE      GIF
> >   EXTENT         201621.496941 -294488.285333
> > 1425518.020722 498254.511514
> >   SIZE           400 300
> >   SHAPEPATH      "C:\Program Files\Apache
> > Group\Apache2\htdocs\tutorial\data"
> >   IMAGECOLOR     255 255 255
> > 
> >   PROJECTION
> >     "proj=laea"
> >     "ellps=clrk66"
> >     "lat_0=45"
> >     "lon_0=-100"
> >   #
> >   # Alternatively, you can specify an EPSG code.
> >   # "init=epsg:2163"
> >   #
> >   END
> > 
> >   # Start of LAYER DEFINITIONS
> > ---------------------------------------------
> >   LAYER # States polygon layer begins here
> >     NAME         tp_genmap
> >     DATA         "tp_genmap.gif"
> >     STATUS       DEFAULT
> >     TYPE         RASTER
> > 
> >     PROJECTION
> >       "init=epsg:4326"
> >     END
> > 
> >     CLASS
> >       COLOR        232 232 232
> >       OUTLINECOLOR 32 32 32
> >     END
> >   END # States polygon layer ends here
> >   # End of LAYER DEFINITIONS
> > -------------------------------
> > 
> > END # end of map file/object
> > Thanks
> > 
> > 
> > 	
> > 	
> > 		
> > ___________________________________________________________
> > Yahoo! Messenger - Communicate instantly..."Ping" 
> > your friends today! Download Messenger Now 
> > http://uk.messenger.yahoo.com/download/index.html
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users




More information about the mapserver-users mailing list