<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi all,
<p>I am running Mandrake Linux 7.0.2, Apache 1.3 and mapserv 3.3.010. I
have a .shp file in Lat/Lon coordinates and I've been trying to make it
work without success. Here follow the steps I performed:
<p>1) I compiled the Mapserv with the Proj4 option successfully.
<br>2) I tried to run my mapfile and an error ocurred.
<br>3) I tried to run the sample with this Mapserv as a test and the same
error ocurred again:
<p>&nbsp;&nbsp;&nbsp; <b>Internal Server Error</b>
<br>"The server encountered an internal error or misconfiguration and was
unable to complete your request.
<br>Please contact the server administrator, root@localhost and inform
them of the time the error occurred, and anything you might have done that
may have caused the error.
<br>More information about this error may be available in the server error
log."
<p>I didn&acute;t find the "server error log" to see "more information".
<br>I have to say that with the original Mapserv ( without Proj4 option)
I had no problems with the demo, but with my mapfile. The .gif image (
layer ) don't come up.
<p>My questions are:
<br>1) Can I work with Mapserv without Proj4 option or I must use the statement
PROJECTION and in consequence the Mapserv with Proj4 option ? I red that
if all data is in the same system then you don&acute;t need the Proj4 library
at all.
<p>2) Is the position of statement PROJECTION correct ?
<p>Thanks in advance for any help.
<br>&nbsp;
<p>Ricardo Wagner Martins
<br>PROCERGS
<br>Brazil
<p>--------------------------
<br>Here is my mapfile:
<p>&nbsp;#
<br># Start of map file - created Mon Sep 25 16:02:15 2000
<br>#
<br>NAME corsan
<br>STATUS ON
<br>SIZE 550 370
<br>SHADESET "/home/httpd/html/ms_corsan/symbols/shade.sym"
<br>MARKERSET "/home/httpd/html/ms_corsan/symbols/marker.sym"
<br>LINESET "/home/httpd/html/ms_corsan/symbols/line.sym"
<br>EXTENT -58.041 -34.084 -49.293 -26.746
<br>UNITS METERS
<br>SHAPEPATH "/home/httpd/html/ms_corsan/data"
<br>IMAGECOLOR 255 255 255
<p>#
<br># Projection definition, consult the PROJ.4 documentation for parameter
<br>#
<br>PROJECTION
<br>&nbsp; "proj=utm"
<br>&nbsp; "ellps=GRS80"
<br>&nbsp; "zone=15"
<br>&nbsp; "north"
<br>&nbsp; "no_defs"
<br>END
<p>#
<br># Start of web interface definition
<br>#
<br>WEB
<br>&nbsp; IMAGEPATH "/home/httpd/html/tmp/"
<br>&nbsp; IMAGEURL "/tmp/"
<p>&nbsp; HEADER corsan_header.html
<br>&nbsp; TEMPLATE corsan.html
<br>&nbsp; FOOTER corsan_footer.html
<br>&nbsp; MINSCALE 1000
<br>&nbsp; MAXSCALE 1550000
<br>END&nbsp; #WEB
<br>#
<br># Start of reference map
<br>#
<br>REFERENCE
<br>&nbsp; SIZE 150 160
<br>&nbsp; IMAGE graphics/reference.gif
<br>&nbsp; EXTENT -57.644 -33.751 -49.691 -27.080
<br>&nbsp; STATUS ON
<br>&nbsp; COLOR -1 -1 -1
<br>&nbsp; OUTLINECOLOR 255 0 0
<br>END&nbsp; #REFERENCE
<br>#
<br># Start of legend
<br>#
<br>LEGEND
<br>&nbsp; KEYSIZE 18 12
<br>&nbsp; LABEL
<br>&nbsp;&nbsp;&nbsp; TYPE BITMAP
<br>&nbsp;&nbsp;&nbsp; SIZE MEDIUM
<br>&nbsp;&nbsp;&nbsp; COLOR 0 0 89
<br>&nbsp;&nbsp;&nbsp; POSITION UR
<br>&nbsp; END
<br>&nbsp; STATUS ON
<br>END&nbsp;&nbsp; #LEGEND
<br>#
<br># Start of scalebar
<br>#
<br>SCALEBAR
<br>&nbsp; IMAGECOLOR 255 255 255
<br>&nbsp; LABEL
<br>&nbsp;&nbsp;&nbsp; COLOR 0 0 0
<br>&nbsp;&nbsp;&nbsp; SIZE SMALL
<br>&nbsp; END&nbsp; #LABEL
<br>&nbsp; SIZE 350 5
<br>&nbsp; COLOR 255 255 255
<br>&nbsp; BACKGROUNDCOLOR 0 0 0
<br>&nbsp; OUTLINECOLOR 0 0 0
<br>&nbsp; INTERVALS 10
<br>&nbsp; STATUS ON
<br>END&nbsp;&nbsp; #SCALEBAR
<br>#
<br># Start of layer definitions
<br>#
<br>LAYER
<br>&nbsp; NAME rscorsan.shp
<br>&nbsp; PROJECTION
<br>&nbsp;&nbsp;&nbsp;&nbsp; "geographic"
<br>&nbsp; END
<br>&nbsp; TYPE Polygon
<br>&nbsp; STATUS on
<br>&nbsp; HEADER 'rscorsan.shp_header.html'
<p>&nbsp;&nbsp;&nbsp; QUERY
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE rscorsan.shp_query.html
<br>&nbsp;&nbsp;&nbsp; END #&nbsp; QUERY
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name "rscorsan.shp"
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; COLOR 41 214 169
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OUTLINECOLOR 0 0 0
<br>&nbsp;&nbsp;&nbsp;&nbsp; END&nbsp; # CLASS
<p>END&nbsp; # LAYER
<p>END&nbsp; # MAPFILE</html>