[Mapserver-users] some troubles on proj

Chen Fu novalet at yahoo.com.cn
Thu Jul 24 23:39:53 PDT 2003


Hi!
I play with wms these days, and find some troubles in
proj.
First, why proj data must be save on c:\proj\nad? I
have try use PROJ_LIB to point it to other directory,
but all get "msProcessProjection(): Projection library
error. no system list, errno: 2"

Second, My proj seems short of some epsg code, for
example

 LAYER
  NAME bathmetry
  METADATA
	"wms_title" "Elevation/Bathymetry"
	"wms_srs" "EPSG:42304 EPSG:4269 EPSG:4326"
  END
  TYPE RASTER
  STATUS OFF
  CONNECTIONTYPE WMS
  CONNECTION
"http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?VERSION=1.1.0&REQUEST=getMAP&LAYERS=bathymetry,prov_bound,drainage,drain_fn,popplaces&SRS=EPSG:42304&BBox=-2200000,-712631,3072800,3840000&Transparent=false&FORMAT=image/gif"
  PROJECTION
      "init=epsg:42304"
  END
 End #layer DmSolutions
will return a error "msProcessProjection(): Projection
library error. no options found in 'init' file". it
seems short of 42304 code. I don't know the reason
because i just download it in the mapserver4.0b2(the
lastest package).

Another question is about wms. I write a demo map file
for using wms.

MAP
   NAME "RRBDINViewer"
   EXTENT 345221 5009802 896629 5620242
   SIZE  1000 1000
   UNITS METERS
   Projection
     "init=epsg:26914"
   END

   LAYER
     NAME "usgslandsat7"
     METADATA
       "wms_title" "US_Landsat7"
       "wms_srs" "epsg:4326"
       "wms_connectiontimeout" "1000"
     END
     TYPE RASTER
     STATUS ON
     CONNECTIONTYPE WMS
     CONNECTION
"http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_WMS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPSG:4326&REASPECT=false&Format=gif"
     PROJECTION
       "init=epsg:4326"
     END
   END #layer usgslandsat7

END

it will work when i set the size as 500*500 or
1000*1000. But when i change it to 2000*2000, there
will raise an error:
ERROR 4: `D:\ms40-beta2/.\105911452320440.img.tmp' not
recognised as a supported
 file format.

msDrawMap(): Image handling error. Failed to draw
layer named 'usgslandsat7'. <b
r>
msDrawRaster(): Image handling error. Unrecognized or
unsupported image format <
br>
drawEPP(): Image handling error.
D:\ms40-beta2/.\105911452320440.img.tmp is not
an EPPL file. <br>

any idea?
BTW, my os is win2k, mapserver4.0b2(downloaded)


=====
Remote Scensing Satellite Ground Station
Chinese Academy of Science

_________________________________________________________
Do You Yahoo!? 
ÊîÆÚ´óƬÆë¾ÛÑÅ»¢Í¨ ÍøÂçÉãÏñÍ·+ÑÅ»¢Í¨µ÷ƵÊÕÒô»úµÈÄãÀ´ÄÃ
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.promo.yahoo.com/minisite/messenger1/



More information about the MapServer-users mailing list