greppo icon indicating copy to clipboard operation
greppo copied to clipboard

Server didn't generate wms layer

Open ngohailyodv opened this issue 2 years ago • 5 comments

Hi, I uploaded geojson file on ckan but server didn't generate wms layer. image

ngohailyodv avatar Mar 14 '22 10:03 ngohailyodv

Could you give more context to the issue? And how I can reproduce it?

krish-adi avatar Mar 14 '22 10:03 krish-adi

Hi, I would the system generate wms layer when I upload geojson on ckan so that I can use terramaps for visualization. Before it's done but now no

ngohailyodv avatar Mar 15 '22 18:03 ngohailyodv

So if I understand you, CKAN is not generating the wms layer API, which you would like to use in Greppo? Then this is a CKAN problem.

krish-adi avatar Mar 17 '22 07:03 krish-adi

Here is the dataset that I uploaded geojson file into ckan and the system generates db_table file and wms layer https://data.vietnam.opendevelopmentmekong.net/dataset/mekong-regional-hydropower-dams-2020 image

ngohailyodv avatar Mar 17 '22 09:03 ngohailyodv

I don't think this is a right place for such questions. Better try https://gis.stackexchange.com/ next time.

Yet here is the working example

from greppo import app

app.base_layer(
    name="CartoDB Light",
    visible=True,
    url="https://cartodb-basemaps-a.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png",
    subdomains=None,
    attribution='&copy; <a target="_blank" href="http://osm.org/copyright">OpenStreetMap</a> contributors',
)

app.wms_tile_layer(
    url='https://data.opendevelopmentmekong.net/geoserver/ODMekong/7c0f8345-c8a8-4b61-824a-42b391d6097f/wms?', 
    name='Mekong_Hydro_Power_Dam_2020', 
    format='image/png', 
    layers='7c0f8345-c8a8-4b61-824a-42b391d6097f', 
    description='Mekong_Hydro_Power_Dam_2020'
)

You probably use the wrong url in app.wms_tile_layer. It can be useful to test wms connection in qgis and study wms capabilities response.

gtitov avatar Mar 21 '22 21:03 gtitov