Lightweight console-subscriber for Geosynchronization written in .NET Core.
Find releases for Windows and Linux here:
https://github.com/kartverket/CORESubscriber/releases
docker pull geosynchronization/coresubscriber
When adding a provider an xml-file will be created at ${providerSettings}.xml.
Coresubscriber.exe add ${providerurl} ${username} ${password} ${providerSettings}.xml
docker run -v ${PWD}:/data geosynchronization/coresubscriber dotnet CORESubscriber.dll add ${providerurl} ${username} ${password} /data/${providerSettings}.xml
- Open ${providerSettings}.xml in your favourite text-editor
- Set the "subscribed" element of datasets that you wish to activate to "True"
- Populate the corresponding "wfsClient" element with the link to your WFS-service
When synchronizing, the subscriber will download a zip-file containing the changelog. This will be saved and unzipped at ${tempFolder}. If a folder is not given as an argument, the subscriber will attempt to find a temp-folder to write to.
Coresubscriber.exe sync ${providerSettings}.xml ${tempFolder}
docker run -v ${PWD}:/data geosynchronization/coresubscriber dotnet CORESubscriber.dll sync /data/${providerSettings}.xml ${tempFolder}
Make sure you have .NET Core installed:
https://www.microsoft.com/net/core
See https://github.com/dotnet/docs/blob/master/docs/core/rid-catalog.md#using-rids for RID (bold in examples)
git clone https://github.com/kartverket/CORESubscriber.git
cd CORESubscriber/CORESubscriber
dotnet publish -c Release --self-contained -r win10-x64
git clone https://github.com/kartverket/CORESubscriber.git
cd CORESubscriber/CORESubscriber
dotnet publish -c Release --self-contained -r ubuntu-x64
git clone https://github.com/kartverket/CORESubscriber.git
cd CORESubscriber/CORESubscriber
dotnet publish -c Release --self-contained -r osx-x64