<!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>    <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´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´t need the Proj4 library
at all.
<p>2) Is the position of statement PROJECTION correct ?
<p>Thanks in advance for any help.
<br> 
<p>Ricardo Wagner Martins
<br>PROCERGS
<br>Brazil
<p>--------------------------
<br>Here is my mapfile:
<p> #
<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>  "proj=utm"
<br>  "ellps=GRS80"
<br>  "zone=15"
<br>  "north"
<br>  "no_defs"
<br>END
<p>#
<br># Start of web interface definition
<br>#
<br>WEB
<br>  IMAGEPATH "/home/httpd/html/tmp/"
<br>  IMAGEURL "/tmp/"
<p>  HEADER corsan_header.html
<br>  TEMPLATE corsan.html
<br>  FOOTER corsan_footer.html
<br>  MINSCALE 1000
<br>  MAXSCALE 1550000
<br>END  #WEB
<br>#
<br># Start of reference map
<br>#
<br>REFERENCE
<br>  SIZE 150 160
<br>  IMAGE graphics/reference.gif
<br>  EXTENT -57.644 -33.751 -49.691 -27.080
<br>  STATUS ON
<br>  COLOR -1 -1 -1
<br>  OUTLINECOLOR 255 0 0
<br>END  #REFERENCE
<br>#
<br># Start of legend
<br>#
<br>LEGEND
<br>  KEYSIZE 18 12
<br>  LABEL
<br>    TYPE BITMAP
<br>    SIZE MEDIUM
<br>    COLOR 0 0 89
<br>    POSITION UR
<br>  END
<br>  STATUS ON
<br>END   #LEGEND
<br>#
<br># Start of scalebar
<br>#
<br>SCALEBAR
<br>  IMAGECOLOR 255 255 255
<br>  LABEL
<br>    COLOR 0 0 0
<br>    SIZE SMALL
<br>  END  #LABEL
<br>  SIZE 350 5
<br>  COLOR 255 255 255
<br>  BACKGROUNDCOLOR 0 0 0
<br>  OUTLINECOLOR 0 0 0
<br>  INTERVALS 10
<br>  STATUS ON
<br>END   #SCALEBAR
<br>#
<br># Start of layer definitions
<br>#
<br>LAYER
<br>  NAME rscorsan.shp
<br>  PROJECTION
<br>     "geographic"
<br>  END
<br>  TYPE Polygon
<br>  STATUS on
<br>  HEADER 'rscorsan.shp_header.html'
<p>    QUERY
<br>        TEMPLATE rscorsan.shp_query.html
<br>    END #  QUERY
<p>      CLASS
<br>        Name "rscorsan.shp"
<br>        COLOR 41 214 169
<br>        OUTLINECOLOR 0 0 0
<br>     END  # CLASS
<p>END  # LAYER
<p>END  # MAPFILE</html>