[mapserver-users] More info on DNC problem

Fawcett, David David.Fawcett at state.mn.us
Tue Jul 22 08:45:03 PDT 2008


Derek, 
 
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:  http://mapserver.gis.umn.edu/docs/reference/mapfile/mapObj
 
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)
 
David.

	-----Original Message-----
	From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Derek Bain
	Sent: Tuesday, July 22, 2008 10:35 AM
	To: mapserver-users at lists.osgeo.org
	Subject: [mapserver-users] More info on DNC problem
	
	
	Hi 
	
	I used the command 
	
	ogrinfo -ro -summary
gltp:/vrf/c:/ms4w/apps/some_folder/data/DNC13/H1316030
	
	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 at hyd(*)_area (Polygon) ) and using the extents from orginfo with
hydarea at 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.
	
	From what i can see from hydarea at 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
	
	Can anyone offer any help
	
	Thanks
	Derek
	
	Map File---->
	
	#
	# Digital Nautical Maps for H1316030
	# (14: hydarea at hyd(*)_area (Polygon))
	#
	
	    LAYER
	        NAME "hydarea_hyd_area"
	        TYPE POLYGON
	        CONNECTIONTYPE OGR
	        # MapServer Layer = ogrinfo layer - 1 i.e. 14-1 = 13
	        CONNECTION
"C:/ms4w/Apps/some_folder/data/DNC13/H1316030,13"    # 14:
hydarea at hyd(*)_area (Polygon)
	
	        STATUS ON
	        PROJECTION
	            "init=epsg:4326"
	        END    # End Projection
	
	        METADATA
	            "wms_title"                "hydarea at hyd(*)_area"
	            "wms_abstract"            "hydarea at hyd(*)_area
abstract goes here ....."
	            "wms_srs"                 "epsg:4326"
	            "wms_name"                "hydarea"
	                                    # [minx_left] [miny_bottom]
[maxx_right] [maxy_top]
	            "wms_extent"            "-118.646797 32.933327
-118.475853 33.066673" 
	            "wms_onlineresource"
"http://localhost:8082/cgi-bin/mapserv.exe?map=C:/ms4w/apps/some_folder/
dnc2.map"
	        END    # End Metadata
	
	        CLASS
	            NAME "hydarea"
	            COLOR 255 0 0
	        END    # End Class
	    
	    END    # End Layer
	
	
	ORGINFO output----------->
	
	Layer name: hydarea at hyd(*)_area
	Geometry: Polygon
	Feature Count: 63
	Extent: (-118.646797, 32.933327) - (-118.475853, 33.066673)
	Layer SRS WKT:
	GEOGCS["NAD83",
	    DATUM["North_American_Datum_1983",
	        SPHEROID["GRS 1980",6378137,298.257222101,
	            AUTHORITY["EPSG","7019"]],
	        TOWGS84[0,0,0,0,0,0,0],
	        AUTHORITY["EPSG","6269"]],
	    PRIMEM["Greenwich",0,
	        AUTHORITY["EPSG","8901"]],
	    UNIT["degree",0.0174532925199433,
	        AUTHORITY["EPSG","9108"]],
	    AXIS["Lat",NORTH],
	    AXIS["Long",EAST],
	    AUTHORITY["EPSG","4269"]]
	id: Integer (10.0)
	f_code: String (5.0)
	acc: Integer (5.0)
	cvh: Real (15..6)
	cvl: Real (15.6)
	tile_id: Integer (5.0)
	fac_id: Integer (10.0)
	
	
	1: buildnga at cul(*)_area (Polygon)
	2: transl at cul(*)_line (Line String)
	3: buildngp at cul(*)_point (Point)
	4: commp at cul(*)_point (Point)
	5: industp at cul(*)_point (Point)
	6: ecrarea at ecr(*)_area (Polygon)
	7: foreshoa at ecr(*)_area (Polygon)
	8: coastl at ecr(*)_line (Line String)
	9: foreshol at ecr(*)_line (Line String)
	10: islandp at ecr(*)_point (Point)
	11: ecrtext at ecr(*)_text (Point)
	12: envarea at env(*)_area (Polygon)
	13: tidep at env(*)_point (Point)
	14: hydarea at hyd(*)_area (Polygon)
	15: hydline at hyd(*)_line (Line String)
	16: botcharp at hyd(*)_point (Point)
	17: soundp at hyd(*)_point (Point)
	18: embanka at lcr(*)_area (Polygon)
	19: lcrline at lcr(*)_line (Line String)
	20: limbndya at lim(*)_area (Polygon)
	21: limbndya at lim(*)_area (Polygon)
	22: distl at lim(*)_line (Line String)
	23: distl at lim(*)_line (Line String)
	24: limbndyl at lim(*)_line (Line String)
	25: limbndyl at lim(*)_line (Line String)
	26: routel at lim(*)_line (Line String)
	27: routel at lim(*)_line (Line String)
	28: limbndyp at lim(*)_point (Point)
	29: leadingl at nav(*)_line (Line String)
	30: buoybcnp at nav(*)_point (Point)
	31: lightsp at nav(*)_point (Point)
	32: dangera at obs(*)_area (Polygon)
	33: hazarda at obs(*)_area (Polygon)
	34: obstruca at obs(*)_area (Polygon)
	35: reefa at obs(*)_area (Polygon)
	36: hazardl at obs(*)_line (Line String)
	37: dangerp at obs(*)_point (Point)
	38: hazardp at obs(*)_point (Point)
	39: obstrucp at obs(*)_point (Point)
	40: ruinsp at obs(*)_point (Point)
	41: piera at por(*)_area (Polygon)
	42: structra at por(*)_area (Polygon)
	43: pierl at por(*)_line (Line String)
	44: structrl at por(*)_line (Line String)
	45: relline at rel(*)_line (Line String)
	46: relpoint at rel(*)_point (Point)
	47: dqyarea at dqy(*)_area (Polygon)
	48: tileref at tileref(*)_area (Polygon)
	49: libref at libref(*)_line (Line String)
	
	

________________________________

	Not happy with your email address? 
	Get the one you really want
<http://uk.docs.yahoo.com/ymail/new.html>  - millions of new email
addresses available now at Yahoo!
<http://uk.docs..yahoo.com/ymail/new.html> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080722/796619c0/attachment.htm>


More information about the MapServer-users mailing list