[mapserver-users] Reference Map

Puneet Kishor pkishor@GeoAnalytics.com
Mon, 26 Aug 2002 15:27:08 -0500


> how could i create a reference map for shapefiles, for using 
> with mapfiles?
>  

Not sure what you are asking.

1. Do you want to know what the syntax in a map file is? It is like so...

#{{{ reference map
REFERENCE
  IMAGE path/to/ref/image.png
  EXTENT minx miny maxx maxy
  OUTLINECOLOR r g b
  COLOR r g b
  SIZE w h
  STATUS off | on
END #}}}

2. Do you want to know the mapscript syntax? In PHP it is like so...

$imgObj = $mapObj->drawReferenceMap();

In Perl it is like so... (well, how is it in Perl?)

$ref = new referenceMapObj('your.map') or 
		die('Unable to open mapfile.');
$img = $map->draw() or die('Unable to draw map');


3. Are you interested in wanting to know how to make the image? Well, just
use mapserver to make the basemap, save it, and then point to it in your map
file.

Hth.