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

Ed McNierney ed at topozone.com
Tue Feb 10 12:28:34 PST 2004


Bart -

My MapServer reprojects hundreds of thousands of rasters every day <g>.
There's no problem requesting a raster layer and reprojecting it.

	- Ed

Ed McNierney
President and Chief Mapmaker
TopoZone.com / Maps a la carte, Inc.
73 Princeton Street, Suite 305
North Chelmsford, MA  01863
ed at topozone.com
(978) 251-4242  

-----Original Message-----
From: Bart van den Eijnden [mailto:bartvde at xs4all.nl] 
Sent: Tuesday, February 10, 2004 1:29 PM
To: Larry Nolan; mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] How to use mapserver to cascade arcims
wms services

Hi Larry,

this is because Mapserver cannot reproject raster layers.

A WMS layer is treated as a RASTER layer, so it cannot be reprojected.

Only thing Mapserver can do is send the EPSG code in the WMS request to
the WMS it cascades. Maybe if you use EPSG:4326 the ArcIMS WMS won't
reproject?

Best regards,
Bart

On Tue, 10 Feb 2004 14:53:53 -0330, Larry Nolan <larrynolan at gov.nl.ca>
wrote:

> 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["G
reenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse
_Mercator"],PARAMETER["False_Easting",1000000.0],PARAMETER["False_Northi
ng",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_LA
YERS=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=N
AD27_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
>>
>
>
>



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