Skip to content

Catalog force name#787

Merged
mbarbeau merged 9 commits into
nextfrom
catalogForceName
Dec 21, 2020
Merged

Catalog force name#787
mbarbeau merged 9 commits into
nextfrom
catalogForceName

Conversation

@PhilippeLafreniere18
Copy link
Copy Markdown
Contributor

@PhilippeLafreniere18 PhilippeLafreniere18 commented Dec 7, 2020

  • Allow to add alias to WMS, WMTS or ArcGIS REST catalog's layer (for composite catalog for example)

  • regFilters must be used to match the indexes.

For example, if catalog's config is :
{
"id": "2",
"url": "https://geoappext.nrcan.gc.ca/arcgis/services/GSCA/basin_f/MapServer/WMSServer?",
"groupImpose": {"id": "geo", "title": "Géologie"},
"regFilters": ["^3$", "^6$"],
"alias": ["Analyse - 1", "Analyse - 2"]
}
Then it would mean that the layer whose name is 3 going to be rename as "Analyse - 1" and the layer whose name is 6 is going to be rename as "Analyse - 2".

Note that if alias is not mandatory, if none are provided, the service's title is going to be used (like it was before).

Issue infra-geo-ouverte/igo2#515 in igo2 (assemblage)
JIRA : http://jira.msp.gouv.qc.ca:8080/browse/MIGO2-232

@pelord
Copy link
Copy Markdown
Member

pelord commented Dec 16, 2020

@PhilippeLafreniere18 . Please add the same feature for metadata_url.

@pelord
Copy link
Copy Markdown
Member

pelord commented Dec 16, 2020

@PhilippeLafreniere18 Also. Maybe set up an other alternative to match the aliases... In you example, you specify some specific layer.This use case will not work with filtering regex...

@PhilippeLafreniere18
Copy link
Copy Markdown
Contributor Author

metadata_url for abstract is the next step !

And not sure what to you refering to ? I think you have no choice here but to target one layer at the time with regex to rename one layer at the time with the aliases. What do you have in mind ?

@pelord
Copy link
Copy Markdown
Member

pelord commented Dec 16, 2020

In fact.. I was thinking to refer to a specific layer name and force some properties..

forcedProperties: [
{layerName: 'layerName', properties: { title: 'Title', metadata.url: 'www.perdu.com'}},
{layerName: 'layerName2', properties: { title: 'TitleorOtherContent', metadata.url: 'www.igouverte.com'}}
]

@pelord
Copy link
Copy Markdown
Member

pelord commented Dec 16, 2020

In this case, the forced properties are independent of the regex and you could keep the filtering regex

@mbarbeau mbarbeau merged commit c392912 into next Dec 21, 2020
@mbarbeau mbarbeau deleted the catalogForceName branch December 21, 2020 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants