Using geographic data in the southern hemisphere
Tim and Marcelle Sutton
tim at activeweb.co.za
Tue Aug 1 00:17:01 PDT 2000
Hi
I am trying to get a simple test site going using two layers of geographic
data. I generated the Map file using the arcview tool I found on the utilities
page (this is a great tool).
I know the php_mapserver.so works fine (thanks to Daniel).
The data is in the southern hemisphere (ie. north/south coordinates are negative
numbers in decimal degrees).
The initial .map file had know projection section set, and the maps would
generate, but the map image would always come up blank. I have set the display
and scale bar units to decimal degrees (dd) and kilometers respectively. The
scale bar indicates that the display is zoomed in to a really large scale.
I have the proj4.4.4.1 rpm installed on the server (running redhat 6.1) and
when I added the
Projection
"Geographic"
End
to my .map file, my web page prints out the following:
Warning: MapServer Error in loadProjection(): Projection support is not
available. in /home/httpd/html/Mapserver/cnc/cncmap.php3 on line 34
Fatal error: Failed to open map file cnc.map in /home/httpd/html/Mapserver/cnc/cncmap.php3 on line 34
So my questions are:
1) Does mapserver support southern hemispher geographic data?
2) Do I have the correct settings in my .map file (listed below this message)?
3) How can I get mapserver to recognise the proj library?
4) Could anyone send me /point me to some sample .php files which demonstrate a
functional mapserver user inteface (implimenting query, zoom, pan etc)?
Many thanks for any help you
may be able to offer.
--
-------------------------------------
Tim Sutton
tim at activeweb.co.za
ICQ: 6712273
Did you hear that there's a group of South American Indians that worship
the number zero?
Is nothing sacred?
-------------------------------------
#
# Start of map file - created Sat Jul 29 00:52:34 2000
#
NAME cnc.map
SIZE 550 370
EXTENT 17.434 -35.054 24.546 -30.210
UNITS dd
PROJECTION
"geographic"
END
#
# Start of web interface definition
#
WEB
TEMPLATE 'mapdisplay.html'
IMAGEPATH '../tmp/'
IMAGEURL '../tmp/'
END #WEB
#
# Start of reference map
#
REFERENCE
SIZE 150 160
IMAGE ref_map.gif
EXTENT 17.757 -34.834 24.223 -30.430
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END #REFERENCE
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
POSITION UR
END
STATUS ON
END #LEGEND
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END #LABEL
SIZE 350 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 50
STATUS ON
END #SCALEBAR
#
# Start of layer definitions
#
LAYER
NAME ca_cnc.shp
TYPE Polygon
STATUS on
DATA data/
HEADER 'ca_cnc.shp_header.html'
QUERY
TEMPLATE ca_cnc.shp_query.html
END # QUERY
CLASS
Name 'WCNCB Reserves'
COLOR 220 69 192
OUTLINECOLOR 0 0 0
END # CLASS
END # LAYER
LAYER
NAME b_wcape_new.shp
TYPE Polygon
STATUS on
DATA data/
CLASS
Name 'Western Province'
COLOR 210 210 210
OUTLINECOLOR 0 0 0
END # CLASS
END # LAYER
END # MAPFILE
More information about the MapServer-users
mailing list