[Mapserver-users] How to use mapserver to cascade arcims wms services

Larry Nolan larrynolan at gov.nl.ca
Tue Feb 10 10:23:53 PST 2004


Thanks Bart,
    It turns out that my problem is in my projection specification. If I put an espg:26721  it works fine but is projected incorrect.
I'm trying to use a Transverse Mercator projection centered on 59.5 degrees west with a false easting of 1000000 and a false northing of 0 in NAD 27
But for some reason mapserver or arcims reports an error.
The projection string in the arcims axl file is:

        <FEATURECOORDSYS string='PROJCS["NF_GNL1",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",1000000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-59.5],PARAMETER["Scale_Factor",0.998],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]' />

In Mapserver I am using:

Projection
    "proj=tmerc"
    "lat_0=0.0"
    "lon_0=-59.5"
    "k=0.998"
    "x_0=1000000.0"
    "y_0=0.0"
    "ellps=clrk66"
    "units=m"
    "no_defs"
End


Thanks.

Larry Nolan
GIS and Geoscience Data Management
Geological Survey of Newfoundland and Labrador
Department of Mines and Energy
larrynolan at gov.nl.ca
http://gis.geosurv.gov.nf.ca
telephone 709-729-2168
fax           709-729-4270

>>> Bart van den Eijnden <bartvde at xs4all.nl> 02/07/04 01:24PM >>>
Hi Larry,

first of all I think your wms_name is invalid, because it contains a 
space. The wms_name is used to perform the WMS request. Secondly, you 
should use 1 wms_format instead of 2 formats separated by commas (does 
your ArcIMS server have a GIF license, if not use image/png).

Here I have a working example (BTW I am using the ESRI WMS connector 0.0.6 
instead of the standard version delivered with ArcIMS 4):

LAYER
   CONNECTION 
"http://myserver/ogcwms/servlet/com.esri.ogc.wms.WMSServlet?servicename=top50vector&SERVICE=WMS&VERSION=1.1.0&LAYERS=t50_vlakken_region&QUERY_LAYERS=t50_vlakken_region&FORMAT=image/png&transparent=true"
   CONNECTIONTYPE WMS
     METADATA
       "wms_srs"	"EPSG:28992 EPSG:4326"
       "wms_onlineresource"	"http://myserver/ogcwms/servlet/com.esri.ogc.wms.WMSServlet?servicename=top50vector&"
       "wms_stylelist"	""
       "wms_name"	"top50vector_t50_vlakken_region"
       "wms_title"	"top 50 vector"
       "wms_style_default_title"	""
       "wms_style_default_legendurl"	"0 0  "
       "wms_server_version"	"1.1.0"
       "wms_formatlist"	"image/jpeg,image/png"
       "wms_format"	"image/png"
       "wms_boundingbox"	"EPSG:28992 0 288007.5 288009 624000"
       "wms_style"	"default"
       "wms_latlonboundingbox"	"2.68506 49.54247 7.75847 54.61588"
     END
   NAME "top50vector_t50_vlakken_region"
   PROJECTION
     "init=epsg:28992"
   END
   SIZEUNITS PIXELS
   STATUS ON
   DUMP TRUE
   MINSCALE 0
   MAXSCALE 50000
   TEMPLATE "blank.html"
   TOLERANCE 0
   TOLERANCEUNITS PIXELS
   TYPE RASTER
   UNITS METERS
END

Best regards,
Bart

On Fri, 06 Feb 2004 16:47:18 -0330, Larry Nolan <larrynolan at gov.nl.ca> 
wrote:

> I have a group of geological surveys which have arcims web mapping 
> servers with tons of geological information. I would like to use 
> mapserver to act as a one stop connection to each of those servers in a 
> client. I have mapserver 4.0 working fine serving ogc wms map services. 
> Does anyone have the syntax to connect to an esri arcims service which 
> has the wms connector turned on.
>
> I get a a general service exception when I try to connect to this layer.
>
>  LAYER
>   NAME "NAD27LandBase"
>   TYPE RASTER
>   STATUS ON
>   CONNECTION 
> "http://gis.geosurv.gov.nf.ca/servlet/com.esri.wms.Esrimap?servicename=NAD27_Basemap"
>   CONNECTIONTYPE WMS
>   METADATA
>      "wms_name"            "Base Map"
>      "wms_server_version"  "1.1.0"
>      "wms_formatlist"      "image/gif,image/png,image/jpeg,image/wbmp"
>      "wms_format"          "image/gif,image/png"
>   END
>   PROJECTION
>     "proj=tmerc"
>     "lat_0=0.0"
>     "lon_0=-59.5"
>     "k=0.998"
>     "x_0=0.0"
>     "y_0=1000000.0"
>     "ellps=clrk66"
>     "units=m"
>     "no_defs"
>   END
>  END
>
>
>
> thanks
> Larry Nolan
>
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu 
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users 
>



-- 
  




More information about the MapServer-users mailing list