by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 29 16:05

    ZakarFin on develop

    Replace _.each() with Array.for… Use Array.map() instead of _.ea… Replace _.template() with templ… and 2 more (compare)

  • May 29 16:05
    ZakarFin closed #1295
  • May 29 16:05
    ZakarFin milestoned #1295
  • May 29 16:05

    ZakarFin on develop

    Replace lodash forEach and isAr… Replace _.isEmpty() Replace _.find() and jQuery.eac… and 2 more (compare)

  • May 29 16:05
    ZakarFin closed #1296
  • May 29 16:05
    ZakarFin milestoned #1296
  • May 29 16:04

    ZakarFin on develop

    Remove usage of global _ Make code more readable Merge pull request #1294 from Z… (compare)

  • May 29 16:04
    ZakarFin closed #1294
  • May 29 16:04
    sonarcloud[bot] commented #1297
  • May 29 16:04
    ZakarFin milestoned #1294
  • May 29 16:04
    ZakarFin opened #1297
  • May 29 15:27
    sonarcloud[bot] commented #1296
  • May 29 15:26
    ZakarFin opened #1296
  • May 29 14:28
    ZakarFin edited #1295
  • May 29 14:28
    sonarcloud[bot] commented #1295
  • May 29 14:27
    ZakarFin opened #1295
  • May 29 09:31
    sonarcloud[bot] commented #1294
  • May 29 09:29
    ZakarFin opened #1294
  • May 29 08:04
    sonarcloud[bot] commented #592
  • May 29 08:03
    jampukka opened #592
Sami Mäkinen
@ZakarFin
If you want to add it to existing running installs you will need to use the migration. If you just want to use it in any new installs (empty databases) you can modify the json for initial appsetup
amilcar-capsus
@amilcar-capsus
Which json would that be?
Sami Mäkinen
@ZakarFin
I remember it being in oskari-frontend but I’m not sure. Using bundles from the contrib is basically the same as from oskari-frontend. You just need to add the dependency to package.json and npm install
The one in app-resources/src/main/resources/josn/views or something like that
amilcar-capsus
@amilcar-capsus
Ok. Was there a way to share layers between users? I forgot if there was.
Sami Mäkinen
@ZakarFin
This is a json file in the sample app where you can add a bundle to be started with the application https://github.com/oskariorg/sample-server-extension/blob/master/app-resources/src/main/resources/json/views/geoportal-3857.json#L111
The layers registered in oskari_maplayer table are usually shared between users (share level is based on roles users have)
so having a VIEW_LAYER permission for a layer for role Guest means that users that have not logged in will see that layer
amilcar-capsus
@amilcar-capsus
I uploaded some layers on admin account. I checked on layer rights and didn't see anything referring to the aforementioned layers. Am I missing something?
Sami Mäkinen
@ZakarFin
If you updated a shape file etc it's user generated content which is private for user that imported it
it's viewable by other users if the layer has been published on an embedded map but it's not loaded to the layer listing
amilcar-capsus
@amilcar-capsus
So if I upload layers this way, other users cannot use/visualize them unless they've been published?
Sami Mäkinen
@ZakarFin
yes
Though you can set the flag in the database for such imports like they had been published and make a layer listing functionality that would list the layers to all users.
It's something that you can do, it's just not what was originally intended for such user generated content so the published layers are not listed on usual layer listing functionalities
amilcar-capsus
@amilcar-capsus
Alright. Moving onto another question, can Oskari make use of any and all layers that are registered in geoserver? I understand that when a layer is uploaded into Oskari, it gets registered into Geoserver, but I'm not sure if it works the other way around.
Sami Mäkinen
@ZakarFin
Registering WMS/WFS/WMTS-layers from GeoServer or similar OGC compliant server is the main way of providing map layers for users in Oskari instances
That's kind of the main difference separating Oskari from other similar software that Oskari is used as an integration platform that gets the data from other services instead of hosting the data itself
Stefan Linden
@stefanlinden_twitter
image.png
Does anyone know what the obvious reason would be for this error?
EPSG :3067 is the right projection for using MML Layers right?
I know in an earlier version that I had to make alot of sql queries to alter the projection but in this newer version it seems to be the right projection from scratch.
Sami Mäkinen
@ZakarFin
Hi Stefan, the reason for the error on the picture is that there's no WMS-service running on that url.
EPSG:3067 is used with services from NLS Finland
Also the URLs you pasted are for a WMTS-services but in the picture you are trying to add WMS-services
Stefan Linden
@stefanlinden_twitter
Hi! Thanks, I did a complete reinstall and have the EPSG:3067 working directly after installing everything.
Stefan Linden
@stefanlinden_twitter
image.png
Adding the first wmts URL as WMTS results in this:

This is with a completely new installed instance running EPSG:3067.

Is NLS and Maanmittauslaitos the same service?

Stefan Linden
@stefanlinden_twitter

I tried all three URL:s and I get the same error from all of them:

Fetching service capabilities failed. Interface URL, type or version could be wrong or the service is currently down.

Running curl on the server shows that it returns image data on the first two URLs and a huge XML on the third. So the service is up and running, there must be something else that I am missing.
Sami Mäkinen
@ZakarFin
For me https://karttakuva.maanmittauslaitos.fi/kiinteisto/wmts? asks for credentials when trying to register it as WMTS-service
I dont have any so I can't test it further :)
NLS and NLS_FI or similar in Oskari context refers to National Land Survey of Finland (== Maanmittauslaitos)
Sami Mäkinen
@ZakarFin
Did you reach that form by clicking the manual install button or did you fill in the credentials on the previous step of that layer admin wizard?
goryk
@goryk
Hi,
I'm trying to build sample-server-extension and it fails. If I understand correctly it tries to fetch this https://oskari.org/nexus/content/repositories/releases/fi/nls/oskari/oskari-parent/1.55.1/oskari-parent-1.55.1.pom and included in there is repo.boundlessgeo.com thats no longer available. Is there any fix for this so I can complete the build?
Sami Mäkinen
@ZakarFin
Hi, yes there is. Please see this for a workaround: oskariorg/oskari-server#570
goryk
@goryk
Thanks, that fixed it!
Sami Mäkinen
@ZakarFin
:+1:
Stefan Linden
@stefanlinden_twitter
Thanks Sami, I dont know how we can proceed with this if you can't test the same URL:s. We might end up in using the old version.
Sami Mäkinen
@ZakarFin
I'll continue to try testing it but it's a bit complex since the service might work a bit different from the NLS network and at this point I don't have any credentials to that service to try that from some other machine/network. But I'm still wondering how you got to that layer details step if the service isn't working for you. Other than clicking the "manual" add button
Also I'm not sure if there might be some hint in the server logs as to what goes wrong with the service
Can you take a look at the logs?
Sami Mäkinen
@ZakarFin
Or have you tried it the layer is viewable if you go to the EPSG:3067 geoportal?
I mean that warning suggests that something goes wrong but does it still work?
Roberto Pinotti
@robertopinotti_twitter
Hi! I'm using the AddMarkerRequest
(https://www.oskari.org/api/requests#unreleased/mapping/mapmodule/request/addmarkerrequest.md) to add a point in the map but I don't understand the values of x and y. They are not lat and lon coordinates.
Sami Mäkinen
@ZakarFin
they are the coordinates that are used on the map (based on projection)
if your map uses EPSG:4326 they are lat lon
Roberto Pinotti
@robertopinotti_twitter
Thanks!