Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 14:55
    mikkomustikkamaa opened #1091
  • 08:55
    jheijari synchronize #1089
  • Dec 04 18:44

    ZakarFin on develop

    Created Message component update tests Use Message element on localiza… and 4 more (compare)

  • Dec 04 18:44
    ZakarFin closed #1088
  • Dec 04 18:43
    ZakarFin milestoned #1088
  • Dec 04 14:00
    mikkomustikkamaa opened #1090
  • Dec 04 13:54
    jheijari synchronize #1089
  • Dec 04 13:47
    jheijari edited #1089
  • Dec 04 13:45
    jheijari edited #1089
  • Dec 04 13:45
    jheijari opened #1089
  • Dec 04 11:57
    ZakarFin opened #484
  • Dec 03 15:54
    ZakarFin opened #483
  • Dec 03 15:17
    ZakarFin commented #482
  • Dec 03 15:17
    ZakarFin closed #482
  • Dec 03 15:17

    ZakarFin on develop

    Add migration to register camer… Merge branch 'register-3d-camer… First migration of 1.55 (compare)

  • Dec 03 15:14

    ZakarFin on develop

    Fix build with network problems (compare)

  • Dec 03 14:42

    ZakarFin on develop

    Another fix for timeseries publ… Merge pull request #1087 from Z… (compare)

  • Dec 03 14:42
    ZakarFin closed #1087
  • Dec 03 14:41
    ZakarFin milestoned #1087
  • Dec 03 14:41

    ZakarFin on develop

    SetTimeRequest classes Add setTime to bundles Merge branch 'develop' into set… and 8 more (compare)

Sami Mäkinen
@ZakarFin
I think sql is run after the views
I mean Sql-step in the setup
Jarno Kinnunen
@jarnokin_twitter
@ZakarFin Thanks for the answer! So in order to get Capabilities updated, let say for example in every hour, I must edit oskari-ext.properties file and put "oskari.scheduler.job.UpdateCapabilitiesJob.cronLine=0 0 * ?" to there. I'll try this and will report a result here :-) Btw, when the next Oskari release is coming out? I have discussed earlier (during Oskari event held in Joensuu) with @SannaJokela about this, but she didn't remember/know the exact date. Have you any specific date on your mind? We are looking forward to get Oskari updated and waiting 3D functionalities (we hope that we could use this functionality for publishing our 3D city model / drone captured Mesh-models).
Sami Mäkinen
@ZakarFin
Yes, the capabilities config should make it work properly on the current version. We are currently finishing up the release. 1.54 will probably be released late next week or the one after that
masvl
@masvl
@ZakarFin Now everything seems to go as intented during migration but frontend gives "Attempt to add layer that is not available.". Steepping into the findMapLayer, it tries to find a layer with the ID 3 (this can be found from the DB as expected) but fails because layerList is empty (as returned by this._loadedLayersList).
Sami Mäkinen
@ZakarFin
Perhaps the layer is missing permissions for the user you are using?
Erno Mäkinen
@ernoma
Hi, @ZakarFin currently all Finnish Oskari servers that get metadata from paikkatietohakemisto.fi do not seem to be able to show metadata (at least Tampere, Lounaispaikka, HSY and Joensuu). Jussi Tahvainainen asked help from NLS and according to a person from NLS the paikkatietohakemisto.fi service has changed from http to https a few weeks ago but they couldn't help otherwise. I wonder if this is the reason because at least request to URL https://geonetwork.nls.fi/geonetwork/srv/fin/resources.get.uuid?access=public&bed0e9ee-0856-4ba7-91b9-801875608188 returns "service not found" error. Do you happen to have suggestions how the metadata could be fetched succesfully by Oskari? The oskari-ext.properties, at least in Tampere, currently has e.g. line search.channel.METADATA_CATALOGUE_CHANNEL.image.url.fi=http://geonetwork.nls.fi/geonetwork/srv/fi/resources.get.uuid?access=public& . Should the config file be edited somehow or is there, for example, something that should be done by paikkatietoikkuna.fi people?
masvl
@masvl
@ZakarFin That got me on the right track! The probelem was, again, that the old sql script was not up-to-date with the requirements of Oskari. It was adding an admin user but did not add that user to oskari_role_oskari_user table.
Sami Mäkinen
@ZakarFin
@ernoma i can check the config we use in paikkatietoikkuna.fi next week. I think we just added the s in httpS on the url since redirect is not supported in this feature. But I’ll get back to you with working configs (might be wednesday since I’m at paikkatietomarkkinat)
Erno Mäkinen
@ernoma
@ZakarFin Thank you!
Sami Mäkinen
@ZakarFin
Ping me again if I don’t remember :)
Erno Mäkinen
@ernoma
Ok!
Erno Mäkinen
@ernoma
@ZakarFin The change regarding metadata configuration was done at Tampere and the Oskari instance restarted but still the metadata cannot be shown. The changes were made to the oskari-ext.properties file: oskari-ext.properties and the s letter was added in the beginning of the urls: oskari-ext.properties contents.
Sami Mäkinen
@ZakarFin
@ernoma I think there's some redirects happening still since fi is now fin etc. Here's the configs we use:
service.metadata.url=https://www.paikkatietohakemisto.fi/geonetwork/srv/fin/csw

search.channel.METADATA_CATALOGUE_CHANNEL.query.url=http://geonetwork.nls.fi/geonetwork/srv/fin/csw
search.channel.METADATA_CATALOGUE_CHANNEL.server.url=http://geonetwork.nls.fi

# metadatasearch results in liferay portal search use this as base url (updated for GN3)
search.channel.METADATA_CATALOGUE_CHANNEL.fetchpage.url.fi=https://www.paikkatietohakemisto.fi/geonetwork/srv/fin/catalog.search#/metadata/
search.channel.METADATA_CATALOGUE_CHANNEL.fetchpage.url.sv=https://www.paikkatietohakemisto.fi/geonetwork/srv/swe/catalog.search#/metadata/
search.channel.METADATA_CATALOGUE_CHANNEL.fetchpage.url.en=https://www.paikkatietohakemisto.fi/geonetwork/srv/eng/catalog.search#/metadata/


search.channel.METADATA_CATALOGUE_CHANNEL.metadata.catalogue.server=https://www.paikkatietohakemisto.fi
search.channel.METADATA_CATALOGUE_CHANNEL.metadata.catalogue.path=/geonetwork/srv/fin/csw
search.channel.METADATA_CATALOGUE_CHANNEL.metadata.catalogue.queryParams=SERVICE=CSW&VERSION=2.0.2&request=GetDomain&PropertyName=
Though I guess search.channel.METADATA_CATALOGUE_CHANNEL.query.url is an old one since it doesn't have https and things still work
Erno Mäkinen
@ernoma
@ZakarFin Ok, thank you! I pass this information forward at Tampere
Sami Mäkinen
@ZakarFin
I added the service.metadata.url by editing the snippet above. Check that you have it when passing the info
Also Liferay is not involved :D That is an old comment
Erno Mäkinen
@ernoma
Ok, thank you
Erno Mäkinen
@ernoma
@ZakarFin That configuration worked. Thank you again!
Sami Mäkinen
@ZakarFin
Awesome 💪
Terminal-Redux
@Terminal-Redux
Hello. Is there a way to make the map show a layer from an external component? That is, my app is not running as a 'bundle', though it does have access to the backend.
Sami Mäkinen
@ZakarFin
I’m not sure what you mean but if you are doing something on top of Oskari and not using an embedded map you can access openlayers
I mean if your code runs on the same scope/document as Oskari code
Terminal-Redux
@Terminal-Redux
Yes, my code is running alongside Oskari.
Terminal-Redux
@Terminal-Redux
If we try using RPC for a map that's not embedded, would it still work?
Sami Mäkinen
@ZakarFin
The same api is available inside Oskari but you listen to events and send requests calling a bit different functions than through rpc
You can register a layer to something called MapLayerService and it appears on layer listings etc. The you can add a registered layer to the map by another request/function call. Or if you want you can call methods in openlayers directly
I can’t link specifics now as I’m on a phone
Terminal-Redux
@Terminal-Redux
Okay. If you could link me whenever you have the chance, I'd greatly appreciate it!
Sami Mäkinen
@ZakarFin
Here's some old'ish documentation about this: https://oskari.org/documentation/data/maplayer-definitions
You can try calling Oskari.getSandbox().getService('Oskari.mapframework.service.MapLayerService') and see what it offers. Adding the maplayer to map is done with Oskari.getSandbox().getMap().addLayer()
A direct access to openlayers can be fetched by Oskari.getSandbox().findRegisteredModuleInstance('MainMapModule').getMap()
@Terminal-Redux ^
Terminal-Redux
@Terminal-Redux
I'll be sure to check it out. Thanks a lot, @ZakarFin !
Sami Mäkinen
@ZakarFin
No problem 👍
Terminal-Redux
@Terminal-Redux
What do you recommend to do to access the Oskari.getSandbox().getService...etc. line when placing it the separate code? I mean the app that I've developed is on Angular, but obviously, it will not have access to oskari.min.js until it is deployed onto our server which has Oskari running. Thus, if I want to compile it (which I do in order to make it run alongside Oskari), it will throw an error because Oskari is undefined inside of the app.
Sami Mäkinen
@ZakarFin
I haven't really done Angular in a while but what you want to search for is how to access global variables from [something]. Not really sure what causes the error but here's something for typescript https://stackoverflow.com/questions/13252225/call-a-global-variable-inside-module
If I remember correctly Angular has been TypeScript since version 2
Terminal-Redux
@Terminal-Redux
Alright, I believe I figured it out. Thanks a lot fo the help, @ZakarFin !
Sami Mäkinen
@ZakarFin
Great 👍
Jarno Kinnunen
@jarnokin_twitter
Hello! Is there any way to format WMS GFI-response (text/html) got from WMS service? I noticed field called 'GFI-style (XSLT)' under Add Map layer -window - maybe this is a solution? Any practical examples available in somewhere?
Jarno Kinnunen
@jarnokin_twitter
Short addition to the previous message. The first step I'd like to do, is to change requested attribute data from columns into rows (to get better readability when there are many attributes in data) or maybe do some pattern based renaming for attribute names or generating pressable hyperlinks (if data contain some values starting with http prefix). Hopefully that kind of modifications could be done. Thanks in advance!
Sami Mäkinen
@ZakarFin
@jarnokin_twitter There's some things that can be done if you know xslt transforms but it's not very refined. Basically you can transform an xml-response from the server to a certain type of JSON-message using the XSLT. I don't think we have it documented what the JSON-format is :P
Basically something like this but instead of HTML you transform to JSON https://www.w3schools.com/xml/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog
Jarno Kinnunen
@jarnokin_twitter
@ZakarFin Thanks for the answer. I think this is not the solution in my case. XML to Html transformation could help (if services returns a valid XML), but I'm not sure. Btw, Is there any way to set template/default settings how GFI response will be parsed in Oskari? At the moment I'm getting wide response windows and due that, the reponse is not so readable. When requesting data from own hosted WMS Server, I'm able to use FTL templates to format GFI response, but when requesting data from 3rd party services, this is not possible. Data which causes this consern is luonnonsuojelualueet (protected sites) requested from SYKE's WMS interface. There is same "wide feature information window" syndrome also in paikkatietoikkuna.fi website too - so nothing can be done for this in Oskari side?
Sami Mäkinen
@ZakarFin
No not really at this point. The only way is to modify the HTML the service responds with or do an XSLT-transform. Customizing this would be a neat feature to develop though