camptocamp / c2cgeoportal

c2cgeoportal application
http://geomapfish.org
Other
64 stars 46 forks source link

Backgroundlayer querying in ngeo ? #2383

Closed gnerred closed 7 years ago

gnerred commented 8 years ago

How to query a backgroundlayer in ngeo mobile 2.0 ?

https://github.com/camptocamp/cartoriviera_geomapfish/issues/11

gnerred commented 8 years ago

I found this, what does it mean exactly ? I don't undestand...

"To make the WMTS queryable you should add those Metadata: ogcServer with the name of the used OGC server, layers or queryLayers with the layers to query (groups not supported)."

sbrunner commented 8 years ago

As it explained you should ass two UI metadata ... I don't understand what you don't understand ...

gnerred commented 8 years ago

Okay, now I see what you mean... What is the name of the OGC server ? An URL ? Could you please provide an example ? Where do we have to enter those metadata in admin interface, in "Couches" or "Couches WMTS" ?

sbrunner commented 8 years ago

The name defined int the admin interface for the object "OGC Server" or in french "Serveur OGC" :-)

gnerred commented 8 years ago

Yes, but my question was : what data do I have to enter in the OGC server field (http://...)? And in which topic is it ? "Layer" ou "WMTS Layer"

sbrunner commented 8 years ago

neither, "OGC Server"

sbrunner commented 8 years ago

the url is in the "OGC Server", where you put a name and the name will be in the "OGC server" UI metadata of the WMTS Layer.

sbrunner commented 8 years ago

@gnerred is it working now?

gnerred commented 8 years ago

I will try it later today, not have had the time until now...

gnerred commented 8 years ago

@sbrunner it doesn't work... Do I something wrong ? See images attached

image

image

gnerred commented 8 years ago

to test https://preprod.cartoriviera.ch/v2/mobile/ and use "Plan cadastral" as background layer

sbrunner commented 8 years ago

The layer plan_cadastral_201607 is a LayerV1 ... it should be a WMTS Layer...

gnerred commented 8 years ago

It is a WMTS layer too image

sbrunner commented 8 years ago

You have booth with the same name and you linked the metadata to the wrong one...

sbrunner commented 8 years ago

In the metadata editing we should prefix the item with the type ...

gnerred commented 8 years ago

How ? Which type ? The item is a dropdown list

gnerred commented 8 years ago

Okay now I undestand, I will try....

gnerred commented 8 years ago

I've prefixed the name and pointed the metadata to the right one. I've modified the layergroup "background_mobile". But now I have no more the plan_cadastral in my background layers... https://preprod.cartoriviera.ch/v2/mobile/ image

sbrunner commented 8 years ago

It's not the first one on your screenshot?

sbrunner commented 8 years ago

Yes but it's no more on the application :-(

sbrunner commented 8 years ago

I should have a look ...

gnerred commented 8 years ago

:O)

gnerred commented 8 years ago

if the attribute "name" of the WMTS layer is not the same as the layername in the wmts capabilities, ngeo does not show the background layer, even if the attribute "layer" of the WMTS layer is set correctly.

ybolognini commented 8 years ago

@gnerred This can be considered as a bug in 2.0, it shouldn't take the "name" of layer as the WMTS layer. This was already corrected in 2.1 and it would take some time to correct in 2.0. Tests/bugfixes on 2.1 should start in August and will go much faster than 2.0 tests (not in parallel with big development), can you wait for 2.1?

gnerred commented 8 years ago

No I would like to go in production with 2.0 (desktop CGXP and mobile NGEO). I think other users have the same strategy, as discussed last meeting. Waiting 2.1 will delay greatly the migration to 2...

ybolognini commented 8 years ago

Choosing 2.1 doesn't mean migrating your desktop to Ngeo. CGXP desktop will live in parallel of Ngeo desktop. For EPFL project for instance, we have c2cgeoportal server, Ngeo mobile and CGXP desktop (all in master versions).

gnerred commented 8 years ago

So when is planed a release of 2.1 ? Or RC ?

ybolognini commented 8 years ago

Beta release for Monday's User Group meeting. Then we'll focus on bugfixing. Goal for RC1 is week 38

sbrunner commented 8 years ago

Can we close it?

gnerred commented 7 years ago

Sorry, but I have not tested yet if the background querying works (lot of problems with installation of 2.1...). I will test soon and give you a feedback.

sbrunner commented 7 years ago

Reopened :-)

gnerred commented 7 years ago

@sbrunner , I tried to configure WMTS backgroundlayer querying on https://preprod.cartoriviera.ch/v2/mobile/, but it doesn't work... What did I wrong ? image

sbrunner commented 7 years ago

The ogcServer is wrong, it should be "source for image/png" or "source for image/jpeg".

By the way the OGCServers named "source for https://preprod.cartoriviera.ch/tiles/1.0.0/WMTSCapabilities_preprod.xml image/png" and "source for https://ows.asitvd.ch/wmts?service=wmts&request=getcapabilities image/png" should be removed...

gnerred commented 7 years ago

Ok thanks, I set "source for image/jpeg", but it still doesn't work. https://preprod.cartoriviera.ch/v2/mobile/

sbrunner commented 7 years ago

This should be fixed in the next rc :-)

gnerred commented 7 years ago

When is planed the next RC ?

sbrunner commented 7 years ago

In about 10 days :-)