[mapserver-users] ArcGIS Server layer

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Wed Jan 12 09:20:12 EST 2011


For Option #2, you need to have a MapServer instance that is built with SDE support.  SDE support isn't there 'by default', so if you want to make direct SDE connections, you will want to take this into account when you are installing MapServer.

David.

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert Sanson
Sent: Tuesday, January 11, 2011 7:56 PM
To: qazi iqbal; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] ArcGIS Server layer

Yes - two ways:

1. Connect to a WMS service on ArcGIS Server:

LAYER
  NAME nz50ktm
  GROUP "Toposcans"
  TYPE RASTER
  STATUS ON
  CONNECTION "http://myserver/arcgis/services/mapservice_topography_raster/MapServer/WMSServer?"
  CONNECTIONTYPE WMS
  MAXSCALE 60000
  MINSCALE 10000

  METADATA
   # OGC:WMS specific tags
   "ows_title"    "NZ 1:50k scale NZTM"
   "ows_abstract"    "This layer came from the LINZ Topo50 series maps in NZTM"
   "WMS_FORMAT" "image/png"
   "wms_server_version" "1.1.1"
   "wms_opaque"    "1"
   "wms_group_title" "Toposcans"
   "wms_resx" "4.233"
   "wms_resy" "4.233"
   "ows_extent" "1083997.88 4722000.45 2092003.23 6234002.12"
   "wms_srs"   "EPSG:2193"
   "WMS_NAME" "3"
   "wms_exceptions_format" "application/vnd.ogc.se_xml"
  END
 END
2. Direct connection to the underlying ArcSDE database:

LAYER
  NAME farm
  GROUP "CRS"
  TYPE POLYGON
  STATUS ON
  # actual data pointer
  CONNECTIONTYPE SDE
  CONNECTIONTYPE PLUGIN
  CONNECTION "server,port:nnnn,cadastre,user,passwd"
  DATA "CADASTRE.SDEADMIN.VW_FARM_PARCEL_SP,SHAPE"
  PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll"
  CLASS
    NAME "Farm"
    STYLE
      WIDTH 3
      OUTLINECOLOR 255 0 0
      COLOR 255 140 0
    END
  END #CLASS

  METADATA
   "ows_title"    "Farm"
   "ows_abstract"    "This shows land parcels linked to a given farm_id in NZTM"
   "ows_keywordlist"    "AgriBase,LINZ,farm_id,PARCELS"
   "wms_opaque"    "1"
   "wms_group_title" "CRS"
   "ows_extent" "773500 4615000 2602100 6324500"
   "wms_srs"   "EPSG:2193"
   "wms_exceptions_format" "application/vnd.ogc.se_xml"
  END
 END

Regards,

Robert S

>>> qazi iqbal <qazi.iqbal at gmail.com> 12/01/2011 2:13 p.m. >>>
I want to know if there is any way to add ArcGIS server layer to mapserver mapfile?


Click here<https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==> to report this email as spam.


This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted Security. www.websense.com<http://www.websense.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110112/242d3395/attachment-0001.html


More information about the mapserver-users mailing list