[mapserver-users] obtaining a wms mapserver map by Cubeview interface.

Daniel Morissette morissette at dmsolutions.ca
Sat Feb 9 16:21:37 EST 2002


Bonjour Annie,

This error means that an "EPSG:xxxx" code that you're trying to use is
not defined in your EPSG file... I looked at your server's capabilities
and it advertizes projection "EPSG:42304" for layer
"BAS1860:cubestor"... but if you try using it then you get the error
that you reported, so this projection is probably not defined in your
EPSG file.

EPSG codes in the range 42000-42999 are not standard: they are just
custom codes that CubeWerx decided to use to deal with common canadian
projections (LCC in this case) which were not available in the standard
EPSG list... if you want to use those codes then you'll have to define
them yourself.  Here are the definitions for EPSG:42101, 42102, and
42304 which we often use also:

## 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 <>


You could also download a copy of the epsg file with those 3 codes in it
at http://www2.dmsolutions.ca/mapserver/dl/proj4-epsg-with-42xxx.zip

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.


"Morin, Annie" wrote:
> 
> Hi,
> 
> I queried for a map from my cubeview interface.
> 
> The mapserver url is:
> http://www.cgq-qgc.ca/cgi-bin/mapserv_35s.exe?map=d:\webcgq\hydrolink\public
> \mapservice\geomm.map
> 
> this map works fine when calling it from the mapserver itself. but when i
> call it through the cubeview interface it gives me an error like the
> following one:
> 
> msProcessProjection(): no options found in 'init' file.
> 
> I tried the getCapabilities and the xml I received looks good.
> does anyone has an idea of what the problem may be?
> 
> Annie Morin




More information about the mapserver-users mailing list