[Geomoose-users] Converting from ags to raster map file

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Geomoose-users] Converting from ags to raster map file

Colas, Scott

Hello All,

I am having trouble converting a ags map into a raster map file. I took the URL from the old map source and put it inside of a layer but it’s not loading.

Old source: Working

  <map-source name="agsimagery" type="ags" reference="false" opacity=".3">

    <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export</url>

    <layer name="Imagery" reference="false" />

    <param name="FORMAT" value="png"/>

  </map-source>

New source and layer: Not working

  <map-source name="uconnOrtho2012" type="mapserver" >

    <file>./ct/wms/uconnOrtho2012.map</file>

    <layer name="Imagery" />

  </map-source>

 

MAP

       INCLUDE "../../geomoose_globals.map"

       WEB

              INCLUDE "../../temp_directory.map"

              METADATA

                     'ows_title' 'UCONN 2012 Ortho imagery'

                     'ows_srs' 'EPSG:3857'

                     'ows_enable_request' '*'

              END

 

       END

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

       LAYER

              STATUS ON

              NAME "Imagery"

              CONNECTION "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export"

              CONNECTIONTYPE WMS

              TYPE RASTER

             

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_enable_request" "*"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/png"

              END

       END

      

END

 

Thank you

-Scott

 


_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geomoose-users] Converting from ags to raster map file

James Klassen
I'm going to guess here that CONNECTIONTYPE WMS in the mapfile isn't correct for an ArcGIS REST endpoint.

On Tue, Mar 12, 2019, 13:57 Colas, Scott <[hidden email]> wrote:

Hello All,

I am having trouble converting a ags map into a raster map file. I took the URL from the old map source and put it inside of a layer but it’s not loading.

Old source: Working

  <map-source name="agsimagery" type="ags" reference="false" opacity=".3">

    <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export</url>

    <layer name="Imagery" reference="false" />

    <param name="FORMAT" value="png"/>

  </map-source>

New source and layer: Not working

  <map-source name="uconnOrtho2012" type="mapserver" >

    <file>./ct/wms/uconnOrtho2012.map</file>

    <layer name="Imagery" />

  </map-source>

 

MAP

       INCLUDE "../../geomoose_globals.map"

       WEB

              INCLUDE "../../temp_directory.map"

              METADATA

                     'ows_title' 'UCONN 2012 Ortho imagery'

                     'ows_srs' 'EPSG:3857'

                     'ows_enable_request' '*'

              END

 

       END

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

       LAYER

              STATUS ON

              NAME "Imagery"

              CONNECTION "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export"

              CONNECTIONTYPE WMS

              TYPE RASTER

             

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_enable_request" "*"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/png"

              END

       END

      

END

 

Thank you

-Scott

 

_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users

_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geomoose-users] Converting from ags to raster map file

TC Haddad

I'm suggesting this for GM 3.x, directly in the Mapbook, no need for a Map file:

<map-source name="ESRI_World_Imagery" type="xyz" >
        <layer name="World_Imagery">
            <legend type="html"><![CDATA[
            Data &copy; <a href="https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9" target="_blank">Esri</a> Contributors. <br/><br/>
            ]]></legend>
        </layer>
        <url>http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/tile/1.0.0/World_Imagery/default/GoogleMapsCompatible/{z}/{x}/{y}.jpg</url>
</map-source>



On Tue, Mar 12, 2019 at 1:37 PM James Klassen <[hidden email]> wrote:
I'm going to guess here that CONNECTIONTYPE WMS in the mapfile isn't correct for an ArcGIS REST endpoint.

On Tue, Mar 12, 2019, 13:57 Colas, Scott <[hidden email]> wrote:

Hello All,

I am having trouble converting a ags map into a raster map file. I took the URL from the old map source and put it inside of a layer but it’s not loading.

Old source: Working

  <map-source name="agsimagery" type="ags" reference="false" opacity=".3">

    <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export</url>

    <layer name="Imagery" reference="false" />

    <param name="FORMAT" value="png"/>

  </map-source>

New source and layer: Not working

  <map-source name="uconnOrtho2012" type="mapserver" >

    <file>./ct/wms/uconnOrtho2012.map</file>

    <layer name="Imagery" />

  </map-source>

 

MAP

       INCLUDE "../../geomoose_globals.map"

       WEB

              INCLUDE "../../temp_directory.map"

              METADATA

                     'ows_title' 'UCONN 2012 Ortho imagery'

                     'ows_srs' 'EPSG:3857'

                     'ows_enable_request' '*'

              END

 

       END

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

       LAYER

              STATUS ON

              NAME "Imagery"

              CONNECTION "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export"

              CONNECTIONTYPE WMS

              TYPE RASTER

             

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_enable_request" "*"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/png"

              END

       END

      

END

 

Thank you

-Scott

 

_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users
_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users

_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geomoose-users] Converting from ags to raster map file

Colas, Scott
In reply to this post by James Klassen

Hi James,

Thank you for your response. What do you think I should change my CONNECTIONTYPE to? .

Also my goal is to combine two layers in one map file and make each layer visible at different zoom levels using MAXSCALEDENOM AND MINSCALEDENOM. Is it possible to accomplish this only using the mapbook?

 

 

MAP

       INCLUDE "../../geomoose_globals.map"

 

       WEB

              INCLUDE "../../temp_directory.map"

              LOG "mapserver.log"

              METADATA

                     "ows_title" "UCONN 2016 Ortho Imagery"

                     "ows_srs" "EPSG:3857"

                     "ows_enable_request" "*"

              END

 

       END

      

      

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

 

 

       LAYER 

              NAME "layer1"

              CONNECTION "http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/1.0.0/WMTSCapabilities.xml"

              CONNECTIONTYPE WMS

              TYPE RASTER

              CLASS

                           MAXSCALEDENOM 13000              

              END

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/jpeg"

              END

      

       END   

 

 

      

       LAYER

              NAME "layer2"

              CONNECTION "http://wms.onterrasystems.com/WMSService.svc/a48a7531547e4367b28a96ab03507fd4/WMSLatLon"

              CONNECTIONTYPE WMS

              TYPE RASTER

              CLASS

                           MINSCALEDENOM 13001              

              END

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_name" "OnTerraWMS"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/jpeg"

                     "wms_style" "Road"

              END

       END

 

END’

 

Thank you,

Scott

 

 

From: James Klassen [mailto:[hidden email]]
Sent: Tuesday, March 12, 2019 4:37 PM
To: Colas, Scott
Cc: GeoMOOSE Users List
Subject: Re: [Geomoose-users] Converting from ags to raster map file

 

I'm going to guess here that CONNECTIONTYPE WMS in the mapfile isn't correct for an ArcGIS REST endpoint.

 

On Tue, Mar 12, 2019, 13:57 Colas, Scott <[hidden email]> wrote:

Hello All,

I am having trouble converting a ags map into a raster map file. I took the URL from the old map source and put it inside of a layer but it’s not loading.

Old source: Working

  <map-source name="agsimagery" type="ags" reference="false" opacity=".3">

    <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export</url>

    <layer name="Imagery" reference="false" />

    <param name="FORMAT" value="png"/>

  </map-source>

New source and layer: Not working

  <map-source name="uconnOrtho2012" type="mapserver" >

    <file>./ct/wms/uconnOrtho2012.map</file>

    <layer name="Imagery" />

  </map-source>

 

MAP

       INCLUDE "../../geomoose_globals.map"

       WEB

              INCLUDE "../../temp_directory.map"

              METADATA

                     'ows_title' 'UCONN 2012 Ortho imagery'

                     'ows_srs' 'EPSG:3857'

                     'ows_enable_request' '*'

              END

 

       END

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

       LAYER

              STATUS ON

              NAME "Imagery"

              CONNECTION "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export"

              CONNECTIONTYPE WMS

              TYPE RASTER

             

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_enable_request" "*"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/png"

              END

       END

      

END

 

Thank you

-Scott

 

_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users


_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geomoose-users] Converting from ags to raster map file

James Klassen
Off the top of my head, you will need to create a GDAL vrt file that points to the AGS service and then point the mapfile at the vrt file.

Sorry, I don't have time to look up the details today.


On Wed, Mar 13, 2019, 08:05 Colas, Scott <[hidden email]> wrote:

Hi James,

Thank you for your response. What do you think I should change my CONNECTIONTYPE to? .

Also my goal is to combine two layers in one map file and make each layer visible at different zoom levels using MAXSCALEDENOM AND MINSCALEDENOM. Is it possible to accomplish this only using the mapbook?

 

 

MAP

       INCLUDE "../../geomoose_globals.map"

 

       WEB

              INCLUDE "../../temp_directory.map"

              LOG "mapserver.log"

              METADATA

                     "ows_title" "UCONN 2016 Ortho Imagery"

                     "ows_srs" "EPSG:3857"

                     "ows_enable_request" "*"

              END

 

       END

      

      

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

 

 

       LAYER 

              NAME "layer1"

              CONNECTION "http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/1.0.0/WMTSCapabilities.xml"

              CONNECTIONTYPE WMS

              TYPE RASTER

              CLASS

                           MAXSCALEDENOM 13000              

              END

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/jpeg"

              END

      

       END   

 

 

      

       LAYER

              NAME "layer2"

              CONNECTION "http://wms.onterrasystems.com/WMSService.svc/a48a7531547e4367b28a96ab03507fd4/WMSLatLon"

              CONNECTIONTYPE WMS

              TYPE RASTER

              CLASS

                           MINSCALEDENOM 13001              

              END

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_name" "OnTerraWMS"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/jpeg"

                     "wms_style" "Road"

              END

       END

 

END’

 

Thank you,

Scott

 

 

From: James Klassen [mailto:[hidden email]]
Sent: Tuesday, March 12, 2019 4:37 PM
To: Colas, Scott
Cc: GeoMOOSE Users List
Subject: Re: [Geomoose-users] Converting from ags to raster map file

 

I'm going to guess here that CONNECTIONTYPE WMS in the mapfile isn't correct for an ArcGIS REST endpoint.

 

On Tue, Mar 12, 2019, 13:57 Colas, Scott <[hidden email]> wrote:

Hello All,

I am having trouble converting a ags map into a raster map file. I took the URL from the old map source and put it inside of a layer but it’s not loading.

Old source: Working

  <map-source name="agsimagery" type="ags" reference="false" opacity=".3">

    <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export</url>

    <layer name="Imagery" reference="false" />

    <param name="FORMAT" value="png"/>

  </map-source>

New source and layer: Not working

  <map-source name="uconnOrtho2012" type="mapserver" >

    <file>./ct/wms/uconnOrtho2012.map</file>

    <layer name="Imagery" />

  </map-source>

 

MAP

       INCLUDE "../../geomoose_globals.map"

       WEB

              INCLUDE "../../temp_directory.map"

              METADATA

                     'ows_title' 'UCONN 2012 Ortho imagery'

                     'ows_srs' 'EPSG:3857'

                     'ows_enable_request' '*'

              END

 

       END

 

       PROJECTION

              "init=epsg:3857"

       END

      

 

       LAYER

              STATUS ON

              NAME "Imagery"

              CONNECTION "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export"

              CONNECTIONTYPE WMS

              TYPE RASTER

             

              METADATA

                     "wms_srs" "EPSG:3857"

                     "wms_enable_request" "*"

                     "wms_name" "Imagery"

                     "wms_server_version" "1.1.1"

                     "wms_format" "image/png"

              END

       END

      

END

 

Thank you

-Scott

 

_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users


_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geomoose-users] Converting from ags to raster map file

Dan Little-2
You could also check that the end point outputs a real WMS server.
"/export" does not do that.

On Wed, Mar 13, 2019 at 1:33 PM James Klassen <[hidden email]> wrote:

>
> Off the top of my head, you will need to create a GDAL vrt file that points to the AGS service and then point the mapfile at the vrt file.
>
> Sorry, I don't have time to look up the details today.
>
>
> On Wed, Mar 13, 2019, 08:05 Colas, Scott <[hidden email]> wrote:
>>
>> Hi James,
>>
>> Thank you for your response. What do you think I should change my CONNECTIONTYPE to? .
>>
>> Also my goal is to combine two layers in one map file and make each layer visible at different zoom levels using MAXSCALEDENOM AND MINSCALEDENOM. Is it possible to accomplish this only using the mapbook?
>>
>>
>>
>>
>>
>> MAP
>>
>>        INCLUDE "../../geomoose_globals.map"
>>
>>
>>
>>        WEB
>>
>>               INCLUDE "../../temp_directory.map"
>>
>>               LOG "mapserver.log"
>>
>>               METADATA
>>
>>                      "ows_title" "UCONN 2016 Ortho Imagery"
>>
>>                      "ows_srs" "EPSG:3857"
>>
>>                      "ows_enable_request" "*"
>>
>>               END
>>
>>
>>
>>        END
>>
>>
>>
>>
>>
>>
>>
>>        PROJECTION
>>
>>               "init=epsg:3857"
>>
>>        END
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>        LAYER
>>
>>               NAME "layer1"
>>
>>               CONNECTION "http://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/1.0.0/WMTSCapabilities.xml"
>>
>>               CONNECTIONTYPE WMS
>>
>>               TYPE RASTER
>>
>>               CLASS
>>
>>                            MAXSCALEDENOM 13000
>>
>>               END
>>
>>               METADATA
>>
>>                      "wms_srs" "EPSG:3857"
>>
>>                      "wms_name" "Imagery"
>>
>>                      "wms_server_version" "1.1.1"
>>
>>                      "wms_format" "image/jpeg"
>>
>>               END
>>
>>
>>
>>        END
>>
>>
>>
>>
>>
>>
>>
>>        LAYER
>>
>>               NAME "layer2"
>>
>>               CONNECTION "http://wms.onterrasystems.com/WMSService.svc/a48a7531547e4367b28a96ab03507fd4/WMSLatLon"
>>
>>               CONNECTIONTYPE WMS
>>
>>               TYPE RASTER
>>
>>               CLASS
>>
>>                            MINSCALEDENOM 13001
>>
>>               END
>>
>>               METADATA
>>
>>                      "wms_srs" "EPSG:3857"
>>
>>                      "wms_name" "OnTerraWMS"
>>
>>                      "wms_server_version" "1.1.1"
>>
>>                      "wms_format" "image/jpeg"
>>
>>                      "wms_style" "Road"
>>
>>               END
>>
>>        END
>>
>>
>>
>> END’
>>
>>
>>
>> Thank you,
>>
>> Scott
>>
>>
>>
>>
>>
>> From: James Klassen [mailto:[hidden email]]
>> Sent: Tuesday, March 12, 2019 4:37 PM
>> To: Colas, Scott
>> Cc: GeoMOOSE Users List
>> Subject: Re: [Geomoose-users] Converting from ags to raster map file
>>
>>
>>
>> I'm going to guess here that CONNECTIONTYPE WMS in the mapfile isn't correct for an ArcGIS REST endpoint.
>>
>>
>>
>> On Tue, Mar 12, 2019, 13:57 Colas, Scott <[hidden email]> wrote:
>>
>> Hello All,
>>
>> I am having trouble converting a ags map into a raster map file. I took the URL from the old map source and put it inside of a layer but it’s not loading.
>>
>> Old source: Working
>>
>>   <map-source name="agsimagery" type="ags" reference="false" opacity=".3">
>>
>>     <url>http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export</url>
>>
>>     <layer name="Imagery" reference="false" />
>>
>>     <param name="FORMAT" value="png"/>
>>
>>   </map-source>
>>
>> New source and layer: Not working
>>
>>   <map-source name="uconnOrtho2012" type="mapserver" >
>>
>>     <file>./ct/wms/uconnOrtho2012.map</file>
>>
>>     <layer name="Imagery" />
>>
>>   </map-source>
>>
>>
>>
>> MAP
>>
>>        INCLUDE "../../geomoose_globals.map"
>>
>>        WEB
>>
>>               INCLUDE "../../temp_directory.map"
>>
>>               METADATA
>>
>>                      'ows_title' 'UCONN 2012 Ortho imagery'
>>
>>                      'ows_srs' 'EPSG:3857'
>>
>>                      'ows_enable_request' '*'
>>
>>               END
>>
>>
>>
>>        END
>>
>>
>>
>>        PROJECTION
>>
>>               "init=epsg:3857"
>>
>>        END
>>
>>
>>
>>
>>
>>        LAYER
>>
>>               STATUS ON
>>
>>               NAME "Imagery"
>>
>>               CONNECTION "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export"
>>
>>               CONNECTIONTYPE WMS
>>
>>               TYPE RASTER
>>
>>
>>
>>               METADATA
>>
>>                      "wms_srs" "EPSG:3857"
>>
>>                      "wms_enable_request" "*"
>>
>>                      "wms_name" "Imagery"
>>
>>                      "wms_server_version" "1.1.1"
>>
>>                      "wms_format" "image/png"
>>
>>               END
>>
>>        END
>>
>>
>>
>> END
>>
>>
>>
>> Thank you
>>
>> -Scott
>>
>>
>>
>> _______________________________________________
>> Geomoose-users mailing list
>> [hidden email]
>> https://lists.osgeo.org/mailman/listinfo/geomoose-users
>
> _______________________________________________
> Geomoose-users mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/geomoose-users
_______________________________________________
Geomoose-users mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geomoose-users