<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.6000.16674" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff size=2>Derek,
</FONT></SPAN></DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff size=2>It
sounds like MapServer can't find your proj4 library. You can add a line to
the map file to tell MapServer where to look for proj. Take a look
at: <A
href="http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj">http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj</A></FONT></SPAN></DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff size=2>If
your first test is to just see if you can read the data, strip all of the
projection blocks out of your map file. If you aren't trying to re-project
or serve the data us as a WMS, you don't need to specify the projection.
Just make sure that your extent is expressed in the units of the underlying
projection. (decimal degrees)</FONT></SPAN></DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Derek
Bain<BR><B>Sent:</B> Tuesday, July 22, 2008 10:35 AM<BR><B>To:</B>
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> [mapserver-users] More info
on DNC problem<BR><BR></FONT></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial,helvetica,sans-serif">
<DIV>Hi <BR><BR>I used the command <BR><BR>ogrinfo -ro -summary
gltp:/vrf/c:/ms4w/apps/some_folder/data/DNC13/H1316030<BR><BR>on a folder
containing digital nautical charts to get the listing below. I then created
the map file using the info for layer 14 ( hydarea@hyd(*)_area (Polygon) ) and
using the extents from orginfo with hydarea@hyd(*)_area as its parameter. I
tried testing the map file using shp2img but keep getting the error
"Projection library error. No such file or directory" From what I can find
from web searching etc, this error description covers a lot of different
errors.<BR><BR>From what i can see from hydarea@hyd, hyd is a subfolder of
H1316030 i.e C:\ms4w\apps\some_folder\data\DNC13\H1316030\HYD and hydarea is
file inside that folder with the extension .AFT<BR><BR>Can anyone offer any
help<BR><BR>Thanks<BR>Derek<BR><BR>Map File----><BR><BR>#<BR># Digital
Nautical Maps for H1316030<BR># (14: hydarea@hyd(*)_area
(Polygon))<BR>#<BR><BR> LAYER<BR>
NAME "hydarea_hyd_area"<BR>
TYPE POLYGON<BR>
CONNECTIONTYPE OGR<BR> # MapServer Layer
= ogrinfo layer - 1 i.e. 14-1 = 13<BR>
CONNECTION "C:/ms4w/Apps/some_folder/data/DNC13/H1316030,13"
# 14: hydarea@hyd(*)_area (Polygon)<BR><BR>
STATUS ON<BR>
PROJECTION<BR>
"init=epsg:4326"<BR>
END # End Projection<BR><BR>
METADATA<BR>
"wms_title"
"hydarea@hyd(*)_area"<BR>
"wms_abstract"
"hydarea@hyd(*)_area abstract goes here
....."<BR> "wms_srs"
"epsg:4326"<BR>
"wms_name"
"hydarea"<BR>
# [minx_left]
[miny_bottom] [maxx_right] [maxy_top]<BR>
"wms_extent"
"-118.646797 32.933327 -118.475853 33.066673"
<BR>
"wms_onlineresource"
"http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/some_folder/dnc2.map"<BR>
END # End
Metadata<BR><BR>
CLASS<BR> NAME
"hydarea"<BR> COLOR
255 0 0<BR> END # End
Class<BR> <BR> END # End
Layer<BR><BR><BR>ORGINFO output-----------><BR><BR>Layer name:
hydarea@hyd(*)_area<BR>Geometry: Polygon<BR>Feature Count: 63<BR>Extent:
(-118.646797, 32.933327) - (-118.475853, 33.066673)<BR>Layer SRS
WKT:<BR>GEOGCS["NAD83",<BR>
DATUM["North_American_Datum_1983",<BR>
SPHEROID["GRS
1980",6378137,298.257222101,<BR>
AUTHORITY["EPSG","7019"]],<BR>
TOWGS84[0,0,0,0,0,0,0],<BR>
AUTHORITY["EPSG","6269"]],<BR>
PRIMEM["Greenwich",0,<BR>
AUTHORITY["EPSG","8901"]],<BR>
UNIT["degree",0.0174532925199433,<BR>
AUTHORITY["EPSG","9108"]],<BR>
AXIS["Lat",NORTH],<BR>
AXIS["Long",EAST],<BR> AUTHORITY["EPSG","4269"]]<BR>id:
Integer (10.0)<BR>f_code: String (5.0)<BR>acc: Integer (5.0)<BR>cvh: Real
(15..6)<BR>cvl: Real (15.6)<BR>tile_id: Integer (5.0)<BR>fac_id: Integer
(10.0)<BR><BR><BR>1: buildnga@cul(*)_area (Polygon)<BR>2: transl@cul(*)_line
(Line String)<BR>3: buildngp@cul(*)_point (Point)<BR>4: commp@cul(*)_point
(Point)<BR>5: industp@cul(*)_point (Point)<BR>6: ecrarea@ecr(*)_area
(Polygon)<BR>7: foreshoa@ecr(*)_area (Polygon)<BR>8: coastl@ecr(*)_line (Line
String)<BR>9: foreshol@ecr(*)_line (Line String)<BR>10: islandp@ecr(*)_point
(Point)<BR>11: ecrtext@ecr(*)_text (Point)<BR>12: envarea@env(*)_area
(Polygon)<BR>13: tidep@env(*)_point (Point)<BR>14: hydarea@hyd(*)_area
(Polygon)<BR>15: hydline@hyd(*)_line (Line String)<BR>16:
botcharp@hyd(*)_point (Point)<BR>17: soundp@hyd(*)_point (Point)<BR>18:
embanka@lcr(*)_area (Polygon)<BR>19: lcrline@lcr(*)_line (Line String)<BR>20:
limbndya@lim(*)_area (Polygon)<BR>21: limbndya@lim(*)_area (Polygon)<BR>22:
distl@lim(*)_line (Line String)<BR>23: distl@lim(*)_line (Line String)<BR>24:
limbndyl@lim(*)_line (Line String)<BR>25: limbndyl@lim(*)_line (Line
String)<BR>26: routel@lim(*)_line (Line String)<BR>27: routel@lim(*)_line
(Line String)<BR>28: limbndyp@lim(*)_point (Point)<BR>29: leadingl@nav(*)_line
(Line String)<BR>30: buoybcnp@nav(*)_point (Point)<BR>31: lightsp@nav(*)_point
(Point)<BR>32: dangera@obs(*)_area (Polygon)<BR>33: hazarda@obs(*)_area
(Polygon)<BR>34: obstruca@obs(*)_area (Polygon)<BR>35: reefa@obs(*)_area
(Polygon)<BR>36: hazardl@obs(*)_line (Line String)<BR>37: dangerp@obs(*)_point
(Point)<BR>38: hazardp@obs(*)_point (Point)<BR>39: obstrucp@obs(*)_point
(Point)<BR>40: ruinsp@obs(*)_point (Point)<BR>41: piera@por(*)_area
(Polygon)<BR>42: structra@por(*)_area (Polygon)<BR>43: pierl@por(*)_line (Line
String)<BR>44: structrl@por(*)_line (Line String)<BR>45: relline@rel(*)_line
(Line String)<BR>46: relpoint@rel(*)_point (Point)<BR>47: dqyarea@dqy(*)_area
(Polygon)<BR>48: tileref@tileref(*)_area (Polygon)<BR>49:
libref@libref(*)_line (Line String)<BR><BR></DIV></DIV><BR>
<HR SIZE=1>
Not happy with your email address? <BR><A
href="http://uk.docs.yahoo.com/ymail/new.html">Get the one you really want</A>
- millions of new email addresses available now at <A
href="http://uk.docs..yahoo.com/ymail/new.html">Yahoo!</A></BLOCKQUOTE></BODY></HTML>