|
||||
[maplab-users] Error of Projection Object in MapBrowserPaul Spencer spencer@dmsolutions.caMon, 17 Feb 2003 12:56:07 -0500
|
Hi, it could also be a problem with the specific epsg file that you downloaded. The standard epsg file only contains codes up to a certain value (32766 I think). The tutorial map file has an Lambert Conic Conformal (LCC) projection for Canada that is not in the standard epsg file. It's code is 42101 or 42304 (there are a couple that you may actually have). To get the tutorial file to work directly, you need to add the following lines to the epsg file: ## ## Custom projection codes ## ## WGS84 / LCC Canada <42101> +proj=lcc +ellps=WGS84 +lat_0=0 +lon_0=-95 +lat_1=49 +lat_2=77 +x_0=0 +y_0=-8000000.0 +datum=WGS84 +units=m no_defs <> ## NAD83 / BC Albers <42102> +proj=aea +ellps=GRS80 +lat_0=45 +lon_0=-126.0 +lat_1=50.0 +lat_2=58.5 +x_0=1000000.0 +y_0=0 +datum=NAD83 +units=m no_defs <> # ## NAD83 LCC for Canada <42304> +proj=lcc +ellps=GRS80 +lat_0=49 +lon_0=-95 +lat_1=49 +lat_2=77 +datum=NAD83 +units=m no_defs <> or you can download a modified epsg file that contains these codes from: http://www2.dmsolutions.ca/mapserver/dl/proj4-epsg-with-42xxx.zip Cheers, Paul Yewondwossen Assefa wrote: > Hi There, > > From your message, It seems that you are on a wondows platform. Some > files in the Proj libaraires need to be compiled for a win32 platform. > If tou need precompiled binaries, there is on our download site a proj4 > libarary built for windows that you can use > (http://www2.dmsolutions.ca/mapserver/dl/proj4_win32.zip). > > Later, > > ¦¿©v®i wrote: > >> Kent Chiang wrote: Hello! Dear List! Me too encount some problem in >> the Mapbrowser's section of Maplab tutorialI followed the instruction >> of the tutorial, created a projection object in Mapeditand then >> save.When I return to Mapbrowser, i received the following >> error *Warning*: MapServer Error in msProcessProjection(): no options >> found in 'init' file in >> *D:\Apache2\htdocs\maplab-2.0rc2\common\wrapper\map_session.php* on >> line *271* >> >> *Fatal error*: Failed to open map file c:/msapps/tutorial/mymap.map in >> *D:\Apache2\htdocs\maplab-2.0rc2\common\wrapper\map_session.php* on >> line *271*I've downloaded the epsg' and retrieved it into the folder >> C:\projand still can't resolved the problem. Could you teach this >> reason? Best Regards!!! >> > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa@dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- Paul Spencer Applications and Software Development DM Solutions Group Inc. http://www.dmsolutions.ca
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |