Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map / Add ESRI ArcGIS Rest support #3914

Conversation

fxprunayre
Copy link
Member

  • Editor / Add new protocol ESRI:REST
  • View mode / Add action "add to map" to ESRI:REST links

image

  • Search results / Add ESRI:REST links to be in the "add to map" dropdown
  • Map / Add basic layer support

image

Therefore some issues appear while adding this feature:

  • ArcGIS REST layers are created using:
              olL = new ol.layer.Image({
                source: new ol.source.ImageArcGISRest({
                  params: {},
                  url: url
                })
              });

But ended with the issue openlayers/openlayers#6467 due to an old OL version we are using. So we should consider updating OL, but as Ngeo is involved, it is not a trivial task.

To test for better performance use https://geoadmin.github.io/ol3/apidoc/ol.source.TileArcGISRest.html instead.

Tested with

<?xml version="1.0" encoding="UTF-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml"
                 xmlns:gco="http://www.isotc211.org/2005/gco"
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://www.isotc211.org/2005/gmd https://www.isotc211.org/2005/gmd/gmd.xsd http://www.isotc211.org/2005/gmx https://www.isotc211.org/2005/gmx/gmx.xsd http://www.isotc211.org/2005/srv http://schemas.opengis.net/iso/19139/20060504/srv/srv.xsd">
  <gmd:fileIdentifier>
      <gco:CharacterString>fd0832b5-37ec-437a-b186-bf9a00a0615d</gco:CharacterString>
  </gmd:fileIdentifier>
  <gmd:language>
      <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2/" codeListValue="eng"/>
  </gmd:language>
  <gmd:dateStamp>
      <gco:DateTime>2019-07-10T09:59:15</gco:DateTime>
  </gmd:dateStamp>
  <gmd:metadataStandardName>
      <gco:CharacterString>ISO 19115:2003/19139</gco:CharacterString>
  </gmd:metadataStandardName>
  <gmd:identificationInfo>
      <gmd:MD_DataIdentification>
         <gmd:citation>
            <gmd:CI_Citation>
               <gmd:title>
                  <gco:CharacterString>ECRINS_EuropeanDrainageNetwork</gco:CharacterString>
               </gmd:title>
            </gmd:CI_Citation>
         </gmd:citation>
         <gmd:abstract>
            <gco:CharacterString>The ISO19115 metadata standard is the preferred
          metadata
          standard to use. If unsure what templates to start with, use this
          one.</gco:CharacterString>
         </gmd:abstract>
         <gmd:extent>
            <gmd:EX_Extent>
               <gmd:geographicElement>
                  <gmd:EX_GeographicBoundingBox>
                     <gmd:westBoundLongitude>
                        <gco:Decimal>-180.00</gco:Decimal>
                     </gmd:westBoundLongitude>
                     <gmd:eastBoundLongitude>
                        <gco:Decimal>180.00</gco:Decimal>
                     </gmd:eastBoundLongitude>
                     <gmd:southBoundLatitude>
                        <gco:Decimal>-90.00</gco:Decimal>
                     </gmd:southBoundLatitude>
                     <gmd:northBoundLatitude>
                        <gco:Decimal>90.00</gco:Decimal>
                     </gmd:northBoundLatitude>
                  </gmd:EX_GeographicBoundingBox>
               </gmd:geographicElement>
            </gmd:EX_Extent>
         </gmd:extent>
      </gmd:MD_DataIdentification>
  </gmd:identificationInfo>
  <gmd:distributionInfo>
      <gmd:MD_Distribution>
         <gmd:transferOptions>
            <gmd:MD_DigitalTransferOptions>
               <gmd:onLine>
                  <gmd:CI_OnlineResource>
                     <gmd:linkage>
                        <gmd:URL>https://water.discomap.eea.europa.eu/arcgis/rest/services/Ecrins/ECRINS_EuropeanDrainageNetwork/MapServer/0</gmd:URL>
                     </gmd:linkage>
                     <gmd:protocol>
                        <gco:CharacterString>ESRI:REST</gco:CharacterString>
                     </gmd:protocol>
                     <gmd:name>
                        <gco:CharacterString>ArcGIS REST LAYER</gco:CharacterString>
                     </gmd:name>
                  </gmd:CI_OnlineResource>
               </gmd:onLine>
               <gmd:onLine>
                  <gmd:CI_OnlineResource>
                     <gmd:linkage>
                        <gmd:URL>https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer</gmd:URL>
                     </gmd:linkage>
                     <gmd:protocol>
                        <gco:CharacterString>ESRI:REST</gco:CharacterString>
                     </gmd:protocol>
                  </gmd:CI_OnlineResource>
               </gmd:onLine>
            </gmd:MD_DigitalTransferOptions>
         </gmd:transferOptions>
      </gmd:MD_Distribution>
  </gmd:distributionInfo>
</gmd:MD_Metadata>

* Editor / Add new protocol ESRI:REST
* View mode / Add action "add to map" to ESRI:REST links
* Search results / Add ESRI:REST links to be in the "add to map" dropdown
* Map / Add basic layer support
@fxprunayre fxprunayre added this to the 3.8.1 milestone Jul 10, 2019
@fxprunayre fxprunayre modified the milestones: 3.8.1, 3.8.2 Sep 18, 2019
@fxprunayre fxprunayre modified the milestones: 3.8.2, 3.8.3 Oct 29, 2019
@fxprunayre
Copy link
Member Author

@fxprunayre fxprunayre closed this Nov 21, 2019
@fxprunayre fxprunayre mentioned this pull request Dec 2, 2019
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant