<!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>&nbsp;</DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff size=2>It 
sounds like MapServer can't find your proj4 library.&nbsp; You can add a line to 
the map file to tell MapServer where to look for proj.&nbsp; Take a look 
at:&nbsp; <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>&nbsp;</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.&nbsp; If you aren't trying to re-project 
or serve the data us as a WMS, you don't need to specify the projection.&nbsp; 
Just make sure that your extent is expressed in the units of the underlying 
projection.&nbsp; (decimal degrees)</FONT></SPAN></DIV>
<DIV><SPAN class=788533915-22072008><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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----&gt;<BR><BR>#<BR># Digital 
  Nautical Maps for H1316030<BR># (14: hydarea@hyd(*)_area 
  (Polygon))<BR>#<BR><BR>&nbsp;&nbsp;&nbsp; LAYER<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; NAME "hydarea_hyd_area"<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; TYPE POLYGON<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  CONNECTIONTYPE OGR<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # MapServer Layer 
  = ogrinfo layer - 1 i.e. 14-1 = 13<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  CONNECTION "C:/ms4w/Apps/some_folder/data/DNC13/H1316030,13"&nbsp;&nbsp;&nbsp; 
  # 14: hydarea@hyd(*)_area (Polygon)<BR><BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; STATUS ON<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  PROJECTION<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  "init=epsg:4326"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  END&nbsp;&nbsp;&nbsp; # End Projection<BR><BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; METADATA<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; "wms_title"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  "hydarea@hyd(*)_area"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; "wms_abstract"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; "hydarea@hyd(*)_area abstract goes here 
  ....."<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "wms_srs" 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  "epsg:4326"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  "wms_name"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; "hydarea"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # [minx_left] 
  [miny_bottom] [maxx_right] [maxy_top]<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; "wms_extent"&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; "-118.646797 32.933327&nbsp; -118.475853 33.066673" 
  <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  "wms_onlineresource"&nbsp;&nbsp;&nbsp; 
  "http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/some_folder/dnc2.map"<BR>&nbsp;&nbsp;&nbsp; 
  &nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp; # End 
  Metadata<BR><BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
  CLASS<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; NAME 
  "hydarea"<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 
  255 0 0<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp; # End 
  Class<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp; # End 
  Layer<BR><BR><BR>ORGINFO output-----------&gt;<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>&nbsp;&nbsp;&nbsp; 
  DATUM["North_American_Datum_1983",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  SPHEROID["GRS 
  1980",6378137,298.257222101,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  AUTHORITY["EPSG","7019"]],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  TOWGS84[0,0,0,0,0,0,0],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  AUTHORITY["EPSG","6269"]],<BR>&nbsp;&nbsp;&nbsp; 
  PRIMEM["Greenwich",0,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  AUTHORITY["EPSG","8901"]],<BR>&nbsp;&nbsp;&nbsp; 
  UNIT["degree",0.0174532925199433,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  AUTHORITY["EPSG","9108"]],<BR>&nbsp;&nbsp;&nbsp; 
  AXIS["Lat",NORTH],<BR>&nbsp;&nbsp;&nbsp; 
  AXIS["Long",EAST],<BR>&nbsp;&nbsp;&nbsp; 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>