-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
En la documentación indica que el parámetro id va al final de la orden Doc:
usage: portal portal-layers add [-h] [-f FILE] [-l LABEL] -g GROUP
[--infoFile INFOFILE] [--infoLink INFOLINK]
[--legend INLINELEGENDURL] [--active]
[--no-active] [--feedback] [--no-feedback]
[--time-instances TIMEINSTANCES]
[--time-styles TIMESTYLES]
[--date-format DATE_FORMAT]
id
Pero si lo ejecutamos así:
portal portal-layers add -f $LAYERS -l 'Strato' -g test --legend http://snmb.ambiente.gob.ar/geo-server/bosques_umsef_db/wms?service=WMS&version=1.1.0&request=GetLegendgraphic&layer=bosques_umsef_db:mon98pinbn3857&width=30&height=30&format=image/png strato2
da el siguiente mensaje y no crea la capa:
[1] 11498
[2] 11499
[3] 11500
[4] 11501
[5] 11502
[6] 11503
usage: portal portal-layers add [-h] [-f FILE] [-l LABEL] -g GROUP
[--infoFile INFOFILE] [--infoLink INFOLINK]
[--legend INLINELEGENDURL] [--active]
[--no-active] [--feedback] [--no-feedback]
[--time-instances TIMEINSTANCES]
[--time-styles TIMESTYLES]
[--date-format DATE_FORMAT]
id
portal portal-layers add: error: the following arguments are required: id
strato2: no se encontró la orden
[1] Salida 2 portal portal-layers add -f $LAYERS -l 'Strato' -g test --legend http://snmb.ambiente.gob.ar/geo-server/bosques_umsef_db/wms?service=WMS
[2] Hecho version=1.1.0
[3] Hecho request=GetLegendgraphic
[4] Hecho layer=bosques_umsef_db:mon98pinbn3857
[5]- Hecho width=30
[6]+ Hecho height=30
Mientras que si cambiamos el orden:
portal portal-layers add -f $LAYERS -l 'Strato' -g test strato2 --legend http://snmb.ambiente.gob.ar/geo-server/bosques_umsef_db/wms?service=WMS&version=1.1.0&request=GetLegendgraphic&layer=bosques_umsef_db:mon98pinbn3857&width=30&height=30&format=image/png
Se ejecuta correctamente y añade la capa.