GeoNorgeAPI 4.0.0-alpha3
dotnet add package GeoNorgeAPI --version 4.0.0-alpha3
NuGet\Install-Package GeoNorgeAPI -Version 4.0.0-alpha3
<PackageReference Include="GeoNorgeAPI" Version="4.0.0-alpha3" />
<PackageVersion Include="GeoNorgeAPI" Version="4.0.0-alpha3" />
<PackageReference Include="GeoNorgeAPI" />
paket add GeoNorgeAPI --version 4.0.0-alpha3
#r "nuget: GeoNorgeAPI, 4.0.0-alpha3"
#:package GeoNorgeAPI@4.0.0-alpha3
#addin nuget:?package=GeoNorgeAPI&version=4.0.0-alpha3&prerelease
#tool nuget:?package=GeoNorgeAPI&version=4.0.0-alpha3&prerelease
GeoNorgeAPI
C# API for communicating with GeoNorge.no through the CSW Service
Getting Started
To install GeoNorgeAPI, run the following command in the Package Manager Console:
PM> Install-Package GeoNorgeAPI
Example code
using www.opengis.net;
using GeoNorgeAPI;
public class MyClass {
public void MyMethod() {
GeoNorge api = new GeoNorge();
SearchResultsType result = api.Search("flomsone");
Console.WriteLine(result.numberOfRecordsMatched + " metadata found");
}
}
Security
From version: 2.1.1 (07.04.2014)
The API is using SSL to communicate with www.geonorge.no. Use your credentials like this to perform Insert/update/delete operations:
GeoNorgeAPI.GeoNorge api = new GeoNorgeAPI.GeoNorge("myusername", "mypassword");
MD_Metadata_Type metadata = new MD_Metadata_Type();
// ... add information to the metadata object
var transaction = _geonorge.MetadataInsert(metadata);
Console.WriteLine(transaction.TotalInserted + " metadata inserted.");
Credentials can be acquired from your Geodatakoordinator at Kartverket.
SimpleMetadata
The MD_Metadata_Type is quite large and complex since it is based on the ISO 19139 standard. This project contains a wrapper SimpleMetadata that does all the heavy lifting and manipulating of the MD_Metadata_Type object for you!
Example of use of SimpleMetadata
using GeoNorgeAPI;
GeoNorge api = new GeoNorge("myusername", "mypassword");
SimpleMetadata simpleMetadata = SimpleMetadata.CreateDataset();
simpleMetadata.Title = "This is my dataset!";
simpleMetadata.Abstract = "This is the abstract telling you everything you need to know about this dataset.";
simpleMetadata.ContactPublisher = new SimpleContact
{
Name = "John Smith", Email = "nothing@example.com", Organization = "My organization", Role = "publisher"
};
SimpleMetadata now contains a MD_Metadata_Type that looks like this when serialized to XML:
<?xml version="1.0" encoding="utf-8"?>
<gmd:MD_Metadata xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:srv="http://www.isotc211.org/2005/srv" xmlns:gts="http://www.isotc211.org/2005/gts" xmlns:gmd="http://www.isotc211.org/2005/gmd">
<gmd:hierarchyLevel>
<gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/Codelist/ML_gmxCodelists.xml#MD_ScopeCode" codeListValue="dataset" />
</gmd:hierarchyLevel>
<gmd:identificationInfo>
<gmd:MD_DataIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title>
<gco:CharacterString>This is my dataset!</gco:CharacterString>
</gmd:title>
</gmd:CI_Citation>
</gmd:citation>
<gmd:abstract>
<gco:CharacterString>This is the abstract telling you everything you need to know about this dataset.</gco:CharacterString>
</gmd:abstract>
<gmd:pointOfContact>
<gmd:CI_ResponsibleParty>
<gmd:individualName>
<gco:CharacterString>John Smith</gco:CharacterString>
</gmd:individualName>
<gmd:organisationName>
<gco:CharacterString>My organization</gco:CharacterString>
</gmd:organisationName>
<gmd:contactInfo>
<gmd:CI_Contact>
<gmd:address>
<gmd:CI_Address>
<gmd:electronicMailAddress>
<gco:CharacterString>nothing@example.com</gco:CharacterString>
</gmd:electronicMailAddress>
</gmd:CI_Address>
</gmd:address>
</gmd:CI_Contact>
</gmd:contactInfo>
<gmd:role>
<gmd:CI_RoleCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/ML_gmxCodelists.xml#CI_RoleCode" codeListValue="publisher" />
</gmd:role>
</gmd:CI_ResponsibleParty>
</gmd:pointOfContact>
</gmd:MD_DataIdentification>
</gmd:identificationInfo>
</gmd:MD_Metadata>
The MD_Metadata_Type can be inserted into GeoNorge by using the API like this:
var transaction = _geonorge.MetadataInsert(simpleMetadata.GetMetadata());
The SimpleMetadata wrapper has methods for all fields that is required to be compliant with INSPIRE.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Arkitektum.GIS.Lib.MetadataCSW (>= 2.0.0-alpha2)
- Arkitektum.GIS.Lib.SerializeUtil (>= 1.4.0-alpha1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
4.0.0-alpha3 | 43 | 9/10/2025 |
4.0.0-alpha2 | 52 | 9/8/2025 |
4.0.0-alpha1 | 326 | 6/11/2025 |
3.8.4 | 47 | 9/10/2025 |
3.8.3 | 217 | 7/16/2025 |
3.8.2 | 163 | 7/8/2025 |
3.8.1 | 319 | 4/15/2025 |
3.8.0 | 318 | 4/14/2025 |
3.7.9 | 232 | 3/14/2025 |
3.7.8 | 254 | 2/26/2025 |
3.7.7 | 264 | 2/12/2025 |
3.7.6 | 301 | 2/11/2025 |
3.7.5 | 269 | 2/10/2025 |
3.7.4 | 488 | 2/4/2025 |
3.7.3 | 155 | 2/4/2025 |
3.7.2 | 164 | 2/4/2025 |
3.7.1 | 175 | 2/3/2025 |
3.7.0 | 161 | 2/3/2025 |
3.6.9 | 352 | 1/9/2025 |
3.6.8 | 443 | 12/2/2024 |
3.6.7 | 168 | 11/27/2024 |
3.6.6 | 150 | 11/26/2024 |
3.6.5 | 145 | 11/25/2024 |
3.6.4 | 196 | 11/15/2024 |
3.6.3 | 231 | 10/22/2024 |
3.6.2 | 134 | 10/22/2024 |
3.6.1 | 248 | 10/16/2024 |
3.6.0 | 196 | 10/10/2024 |
3.5.9 | 154 | 10/9/2024 |
3.5.8 | 207 | 10/8/2024 |
3.5.7 | 593 | 5/29/2024 |
3.5.6 | 1,843 | 9/21/2023 |
3.5.5 | 141 | 9/21/2023 |
3.5.4 | 325 | 9/5/2023 |
3.5.3 | 341 | 5/24/2023 |
3.5.2 | 1,589 | 8/16/2022 |
3.5.1 | 543 | 8/12/2022 |
3.5.0 | 801 | 5/23/2022 |
3.4.9 | 649 | 5/4/2022 |
3.4.8 | 598 | 5/2/2022 |
3.4.7 | 591 | 5/2/2022 |
3.4.6 | 616 | 4/29/2022 |
3.4.5 | 626 | 3/31/2022 |
3.4.4 | 606 | 3/31/2022 |
3.4.3 | 634 | 3/23/2022 |
3.4.2 | 631 | 3/7/2022 |
3.4.1 | 482 | 1/12/2022 |
3.4.0 | 475 | 1/12/2022 |
3.3.9 | 556 | 10/27/2021 |
3.3.8 | 493 | 10/20/2021 |
3.3.7 | 551 | 9/10/2021 |
3.3.6 | 518 | 9/10/2021 |
3.3.5 | 544 | 9/10/2021 |
3.3.4 | 534 | 9/6/2021 |
3.3.3 | 530 | 8/31/2021 |
3.3.1 | 584 | 4/21/2021 |
3.3.0 | 704 | 1/4/2021 |
3.2.9 | 701 | 12/1/2020 |
3.2.8 | 719 | 11/19/2020 |
3.2.7 | 688 | 9/28/2020 |
3.2.6 | 680 | 8/28/2020 |
3.2.5 | 725 | 6/19/2020 |
3.2.4 | 698 | 5/29/2020 |
3.2.3 | 675 | 5/26/2020 |
3.2.2 | 727 | 4/28/2020 |
3.2.1 | 700 | 4/28/2020 |
3.2.0 | 716 | 4/28/2020 |
3.1.9 | 701 | 4/24/2020 |
3.1.8 | 703 | 4/24/2020 |
3.1.7 | 712 | 4/24/2020 |
3.1.6 | 801 | 1/30/2020 |
3.1.5 | 670 | 1/30/2020 |
3.1.4 | 762 | 1/24/2020 |
3.1.3 | 783 | 10/11/2019 |
3.1.2 | 771 | 10/11/2019 |
3.1.1 | 1,268 | 8/6/2019 |
3.1.0 | 1,402 | 2/19/2019 |
3.0.72 | 1,497 | 10/31/2018 |
3.0.71 | 1,537 | 10/19/2018 |
3.0.70 | 1,742 | 8/7/2018 |
3.0.69 | 1,729 | 8/7/2018 |
3.0.68 | 1,746 | 8/7/2018 |
3.0.67 | 1,717 | 8/7/2018 |
3.0.66 | 1,699 | 8/6/2018 |
3.0.65 | 1,751 | 7/5/2018 |
3.0.64 | 1,941 | 7/4/2018 |
3.0.63 | 1,976 | 6/25/2018 |
3.0.62 | 1,951 | 6/21/2018 |
3.0.61 | 1,935 | 6/20/2018 |
3.0.60 | 1,906 | 6/15/2018 |
3.0.59 | 1,910 | 6/14/2018 |
3.0.58 | 1,942 | 6/13/2018 |
3.0.57 | 1,919 | 6/13/2018 |
3.0.56 | 1,741 | 6/12/2018 |
3.0.55 | 1,959 | 5/25/2018 |
3.0.54 | 2,034 | 5/16/2018 |
3.0.53 | 2,054 | 5/14/2018 |
3.0.52 | 1,983 | 5/11/2018 |
3.0.51 | 1,947 | 5/9/2018 |
3.0.50 | 1,987 | 5/8/2018 |
3.0.49 | 1,944 | 5/8/2018 |
3.0.48 | 1,971 | 5/7/2018 |
3.0.47 | 1,993 | 4/25/2018 |
3.0.46 | 1,967 | 4/25/2018 |
3.0.45 | 2,002 | 4/12/2018 |
3.0.44 | 1,966 | 4/9/2018 |
3.0.43 | 2,011 | 4/6/2018 |
3.0.42 | 1,994 | 1/25/2018 |
3.0.41 | 1,817 | 11/1/2017 |
3.0.40 | 1,772 | 10/13/2017 |
3.0.39 | 1,783 | 10/13/2017 |
3.0.38 | 1,880 | 5/3/2017 |
3.0.37 | 1,876 | 4/6/2017 |
3.0.36 | 1,877 | 4/4/2017 |
3.0.35 | 1,842 | 3/23/2017 |
3.0.34 | 1,855 | 3/23/2017 |
3.0.33 | 1,846 | 3/14/2017 |
3.0.32 | 1,860 | 3/14/2017 |
3.0.31 | 1,867 | 3/6/2017 |
3.0.30 | 1,898 | 1/30/2017 |
3.0.29 | 1,893 | 1/19/2017 |
3.0.28 | 1,943 | 10/24/2016 |
3.0.27 | 1,826 | 10/24/2016 |
3.0.26 | 1,864 | 10/24/2016 |
3.0.25 | 1,873 | 10/21/2016 |
3.0.24 | 1,937 | 10/19/2016 |
3.0.23 | 1,844 | 10/4/2016 |
3.0.22 | 1,839 | 10/4/2016 |
3.0.21 | 1,880 | 9/30/2016 |
3.0.20 | 1,964 | 9/14/2016 |
3.0.19 | 1,886 | 9/8/2016 |
3.0.18 | 1,886 | 9/8/2016 |
3.0.17 | 1,869 | 9/6/2016 |
3.0.16 | 1,883 | 9/6/2016 |
3.0.15 | 1,870 | 9/6/2016 |
3.0.14 | 1,907 | 9/5/2016 |
3.0.13 | 1,865 | 9/2/2016 |
3.0.12 | 1,853 | 8/30/2016 |
3.0.11 | 1,881 | 8/29/2016 |
3.0.10 | 1,887 | 8/19/2016 |
3.0.9 | 2,021 | 8/1/2016 |
3.0.8 | 1,962 | 5/10/2016 |
3.0.7 | 2,003 | 12/8/2015 |
3.0.6 | 1,984 | 11/13/2015 |
3.0.5 | 2,061 | 9/28/2015 |
3.0.4 | 1,997 | 9/18/2015 |
3.0.3 | 1,945 | 9/18/2015 |
3.0.2 | 2,013 | 9/16/2015 |
3.0.1 | 2,064 | 8/31/2015 |
3.0.0 | 2,322 | 4/27/2015 |
2.9.0 | 2,106 | 4/18/2015 |
2.8.0 | 2,061 | 4/16/2015 |
2.7.9 | 2,050 | 4/15/2015 |
2.7.8 | 2,064 | 4/15/2015 |
2.7.7 | 2,003 | 3/20/2015 |
2.7.6 | 1,937 | 3/20/2015 |
2.7.5 | 1,984 | 3/10/2015 |
2.7.4 | 2,342 | 3/4/2015 |
2.7.3 | 2,170 | 2/10/2015 |
2.7.2 | 2,002 | 2/6/2015 |
2.7.1 | 2,044 | 1/29/2015 |
2.7.0 | 2,221 | 12/2/2014 |
2.6.9 | 2,165 | 12/1/2014 |
2.6.8 | 2,262 | 11/17/2014 |
2.6.7 | 2,435 | 11/17/2014 |
2.6.6 | 2,560 | 11/6/2014 |
2.6.5 | 2,043 | 10/27/2014 |
2.6.4 | 2,017 | 10/23/2014 |
2.6.3 | 2,037 | 10/23/2014 |
2.6.2 | 2,097 | 10/15/2014 |
2.6.1 | 2,071 | 10/15/2014 |
2.6.0 | 2,073 | 10/15/2014 |
2.5.7 | 2,083 | 9/23/2014 |
2.5.6 | 1,976 | 9/23/2014 |
2.5.5.24485 | 2,035 | 9/23/2014 |
2.5.4.21816 | 2,064 | 9/8/2014 |
2.5.3.21606 | 2,038 | 5/27/2014 |
2.5.2.13345 | 1,995 | 5/27/2014 |
2.5.1.23713 | 2,028 | 5/26/2014 |
2.5.0.24454 | 2,064 | 5/20/2014 |
2.4.9.20141 | 2,007 | 5/20/2014 |
2.4.8.19409 | 2,003 | 5/14/2014 |
2.4.7.17997 | 2,009 | 5/14/2014 |
2.4.6.16997 | 1,993 | 5/14/2014 |
2.4.5.14914 | 2,000 | 5/9/2014 |
2.4.4.36076 | 2,046 | 5/8/2014 |
2.4.3.23091 | 2,051 | 5/7/2014 |
2.4.2.23098 | 2,028 | 5/6/2014 |
2.4.1.22094 | 2,012 | 5/6/2014 |
2.4.0.17445 | 2,025 | 5/6/2014 |
2.3.0.24148 | 2,022 | 5/5/2014 |
2.2.20.22116 | 2,006 | 5/5/2014 |
2.2.19.18415 | 2,035 | 5/5/2014 |
2.2.18.15445 | 2,048 | 5/5/2014 |
2.2.17.15085 | 1,985 | 5/5/2014 |
2.2.16.27997 | 2,017 | 4/30/2014 |
2.2.15.26255 | 2,024 | 4/30/2014 |
2.2.14.24211 | 2,017 | 4/30/2014 |
2.2.13.23379 | 2,031 | 4/30/2014 |
2.2.12.20999 | 2,052 | 4/30/2014 |
2.2.11.25599 | 2,142 | 4/29/2014 |
2.2.10.14575 | 2,094 | 4/29/2014 |
2.2.9.16815 | 2,014 | 4/28/2014 |
2.2.8.26977 | 2,001 | 4/25/2014 |
2.2.7.26523 | 2,129 | 4/25/2014 |
2.2.6.24901 | 2,084 | 4/25/2014 |
2.2.5.15107 | 2,185 | 4/25/2014 |
2.2.4.30914 | 2,221 | 4/10/2014 |
2.2.3.23697 | 2,158 | 4/9/2014 |
2.2.2.26016 | 2,141 | 4/7/2014 |
2.2.1.22969 | 2,122 | 4/7/2014 |
2.2.0.18912 | 2,122 | 4/7/2014 |
2.1.1.17600 | 2,111 | 4/7/2014 |
2.1.0.15614 | 2,191 | 4/7/2014 |
2.0.8.25856 | 2,117 | 3/31/2014 |
2.0.7.24048 | 2,107 | 3/28/2014 |
2.0.6.28239 | 2,131 | 3/26/2014 |
2.0.5.24106 | 2,110 | 3/24/2014 |
2.0.4.18700 | 2,104 | 3/21/2014 |
2.0.3.27803 | 2,070 | 3/20/2014 |
2.0.2.15340 | 2,049 | 3/20/2014 |
2.0.1.27107 | 2,099 | 3/13/2014 |
2.0.0.21998 | 2,075 | 3/13/2014 |
1.9.5183.29291 | 2,025 | 3/11/2014 |
1.8.5182.17882 | 2,077 | 3/10/2014 |
1.7.5175.36439 | 2,015 | 3/3/2014 |
1.6.5162.23866 | 2,075 | 2/18/2014 |
1.5.5155.20014 | 2,040 | 2/11/2014 |
1.5.5155.15890 | 2,124 | 2/11/2014 |
1.4.5154.20949 | 2,181 | 2/10/2014 |
1.4.5078.30187 | 2,146 | 11/26/2013 |
1.4.5078.28578 | 2,089 | 11/26/2013 |
1.4.0.33438 | 2,065 | 11/21/2013 |
1.3.4983.18058 | 2,100 | 8/23/2013 |
1.3.4983.18014 | 2,053 | 8/23/2013 |
1.2.4981.18434 | 2,113 | 8/21/2013 |
1.1.4980.23070 | 2,099 | 8/20/2013 |
1.0.0 | 2,144 | 8/19/2013 |
Added support for survey area