greppo-io / greppo

Build & deploy geospatial applications quick and easy.
https://greppo.io
Apache License 2.0
388 stars 34 forks source link

Server didn't generate wms layer #21

Closed ngohailyodv closed 2 years ago

ngohailyodv commented 2 years ago

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

krish-adi commented 2 years ago

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

ngohailyodv commented 2 years ago

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

krish-adi commented 2 years ago

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.

ngohailyodv commented 2 years ago

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

gtitov commented 2 years ago

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.