GeoNorgeAPI 4.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package GeoNorgeAPI --version 4.0.2
                    
NuGet\Install-Package GeoNorgeAPI -Version 4.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GeoNorgeAPI" Version="4.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GeoNorgeAPI" Version="4.0.2" />
                    
Directory.Packages.props
<PackageReference Include="GeoNorgeAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GeoNorgeAPI --version 4.0.2
                    
#r "nuget: GeoNorgeAPI, 4.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GeoNorgeAPI@4.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GeoNorgeAPI&version=4.0.2
                    
Install as a Cake Addin
#tool nuget:?package=GeoNorgeAPI&version=4.0.2
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.3 205 12/22/2025
4.0.2 322 10/21/2025
4.0.1 260 10/13/2025
4.0.0 263 10/6/2025
4.0.0-alpha3 208 9/10/2025
4.0.0-alpha2 194 9/8/2025
4.0.0-alpha1 365 6/11/2025
3.8.4 229 9/10/2025
3.8.3 321 7/16/2025
3.8.2 226 7/8/2025
3.8.1 380 4/15/2025
3.8.0 366 4/14/2025
3.7.9 294 3/14/2025
3.7.8 310 2/26/2025
3.7.7 326 2/12/2025
3.7.6 354 2/11/2025
3.7.5 338 2/10/2025
3.7.4 550 2/4/2025
3.7.3 212 2/4/2025
3.7.2 222 2/4/2025
3.7.1 239 2/3/2025
3.7.0 221 2/3/2025
3.6.9 406 1/9/2025
3.6.8 500 12/2/2024
3.6.7 221 11/27/2024
3.6.6 207 11/26/2024
3.6.5 203 11/25/2024
3.6.4 256 11/15/2024
3.6.3 292 10/22/2024
3.6.2 192 10/22/2024
3.6.1 307 10/16/2024
3.6.0 245 10/10/2024
3.5.9 201 10/9/2024
3.5.8 265 10/8/2024
3.5.7 650 5/29/2024
3.5.6 1,877 9/21/2023
3.5.5 182 9/21/2023
3.5.4 364 9/5/2023
3.5.3 406 5/24/2023
3.5.2 1,652 8/16/2022
3.5.1 613 8/12/2022
3.5.0 877 5/23/2022
3.4.9 714 5/4/2022
3.4.8 671 5/2/2022
3.4.7 655 5/2/2022
3.4.6 669 4/29/2022
3.4.5 696 3/31/2022
3.4.4 671 3/31/2022
3.4.3 694 3/23/2022
3.4.2 705 3/7/2022
3.4.1 561 1/12/2022
3.4.0 537 1/12/2022
3.3.9 629 10/27/2021
3.3.8 577 10/20/2021
3.3.7 625 9/10/2021
3.3.6 595 9/10/2021
3.3.5 612 9/10/2021
3.3.4 607 9/6/2021
3.3.3 601 8/31/2021
3.3.1 655 4/21/2021
3.3.0 781 1/4/2021
3.2.9 779 12/1/2020
3.2.8 800 11/19/2020
3.2.7 769 9/28/2020
3.2.6 751 8/28/2020
3.2.5 809 6/19/2020
3.2.4 784 5/29/2020
3.2.3 758 5/26/2020
3.2.2 801 4/28/2020
3.2.1 776 4/28/2020
3.2.0 792 4/28/2020
3.1.9 775 4/24/2020
3.1.8 771 4/24/2020
3.1.7 795 4/24/2020
3.1.6 877 1/30/2020
3.1.5 750 1/30/2020
3.1.4 844 1/24/2020
3.1.3 849 10/11/2019
3.1.2 842 10/11/2019
3.1.1 1,343 8/6/2019
3.1.0 1,489 2/19/2019
3.0.72 1,583 10/31/2018
3.0.71 1,612 10/19/2018
3.0.70 1,863 8/7/2018
3.0.69 1,857 8/7/2018
3.0.68 1,883 8/7/2018
3.0.67 1,846 8/7/2018
3.0.66 1,832 8/6/2018
3.0.65 1,881 7/5/2018
3.0.64 2,114 7/4/2018
3.0.63 2,158 6/25/2018
3.0.62 2,124 6/21/2018
3.0.61 2,105 6/20/2018
3.0.60 2,086 6/15/2018
3.0.59 2,087 6/14/2018
3.0.58 2,109 6/13/2018
3.0.57 2,092 6/13/2018
3.0.56 1,869 6/12/2018
3.0.55 2,125 5/25/2018
3.0.54 2,210 5/16/2018
3.0.53 2,237 5/14/2018
3.0.52 2,154 5/11/2018
3.0.51 2,120 5/9/2018
3.0.50 2,163 5/8/2018
3.0.49 2,108 5/8/2018
3.0.48 2,150 5/7/2018
3.0.47 2,165 4/25/2018
3.0.46 2,141 4/25/2018
3.0.45 2,178 4/12/2018
3.0.44 2,146 4/9/2018
3.0.43 2,187 4/6/2018
3.0.42 2,159 1/25/2018
3.0.41 1,946 11/1/2017
3.0.40 1,901 10/13/2017
3.0.39 1,909 10/13/2017
3.0.38 2,008 5/3/2017
3.0.37 2,010 4/6/2017
3.0.36 2,011 4/4/2017
3.0.35 1,958 3/23/2017
3.0.34 1,987 3/23/2017
3.0.33 1,976 3/14/2017
3.0.32 1,991 3/14/2017
3.0.31 1,996 3/6/2017
3.0.30 2,025 1/30/2017
3.0.29 2,013 1/19/2017
3.0.28 2,071 10/24/2016
3.0.27 1,948 10/24/2016
3.0.26 1,994 10/24/2016
3.0.25 1,994 10/21/2016
3.0.24 2,066 10/19/2016
3.0.23 1,978 10/4/2016
3.0.22 1,967 10/4/2016
3.0.21 2,002 9/30/2016
3.0.20 2,093 9/14/2016
3.0.19 2,008 9/8/2016
3.0.18 2,012 9/8/2016
3.0.17 1,996 9/6/2016
3.0.16 2,005 9/6/2016
3.0.15 1,985 9/6/2016
3.0.14 2,040 9/5/2016
3.0.13 2,000 9/2/2016
3.0.12 1,973 8/30/2016
3.0.11 2,006 8/29/2016
3.0.10 2,017 8/19/2016
3.0.9 2,154 8/1/2016
3.0.8 2,089 5/10/2016
3.0.7 2,130 12/8/2015
3.0.6 2,108 11/13/2015
3.0.5 2,177 9/28/2015
3.0.4 2,122 9/18/2015
3.0.3 2,072 9/18/2015
3.0.2 2,144 9/16/2015
3.0.1 2,201 8/31/2015
3.0.0 2,460 4/27/2015
2.9.0 2,237 4/18/2015
2.8.0 2,192 4/16/2015
2.7.9 2,172 4/15/2015
2.7.8 2,184 4/15/2015
2.7.7 2,137 3/20/2015
2.7.6 2,069 3/20/2015
2.7.5 2,112 3/10/2015
2.7.4 2,467 3/4/2015
2.7.3 2,297 2/10/2015
2.7.2 2,139 2/6/2015
2.7.1 2,164 1/29/2015
2.7.0 2,360 12/2/2014
2.6.9 2,306 12/1/2014
2.6.8 2,383 11/17/2014
2.6.7 2,576 11/17/2014
2.6.6 2,684 11/6/2014
2.6.5 2,165 10/27/2014
2.6.4 2,155 10/23/2014
2.6.3 2,161 10/23/2014
2.6.2 2,220 10/15/2014
2.6.1 2,202 10/15/2014
2.6.0 2,209 10/15/2014
2.5.7 2,227 9/23/2014
2.5.6 2,113 9/23/2014
2.5.5.24485 2,171 9/23/2014
2.5.4.21816 2,186 9/8/2014
2.5.3.21606 2,163 5/27/2014
2.5.2.13345 2,121 5/27/2014
2.5.1.23713 2,156 5/26/2014
2.5.0.24454 2,175 5/20/2014
2.4.9.20141 2,146 5/20/2014
2.4.8.19409 2,143 5/14/2014
2.4.7.17997 2,136 5/14/2014
2.4.6.16997 2,123 5/14/2014
2.4.5.14914 2,133 5/9/2014
2.4.4.36076 2,154 5/8/2014
2.4.3.23091 2,184 5/7/2014
2.4.2.23098 2,162 5/6/2014
2.4.1.22094 2,151 5/6/2014
2.4.0.17445 2,165 5/6/2014
2.3.0.24148 2,156 5/5/2014
2.2.20.22116 2,139 5/5/2014
2.2.19.18415 2,141 5/5/2014
2.2.18.15445 2,183 5/5/2014
2.2.17.15085 2,117 5/5/2014
2.2.16.27997 2,141 4/30/2014
2.2.15.26255 2,146 4/30/2014
2.2.14.24211 2,152 4/30/2014
2.2.13.23379 2,176 4/30/2014
2.2.12.20999 2,188 4/30/2014
2.2.11.25599 2,280 4/29/2014
2.2.10.14575 2,214 4/29/2014
2.2.9.16815 2,135 4/28/2014
2.2.8.26977 2,136 4/25/2014
2.2.7.26523 2,264 4/25/2014
2.2.6.24901 2,194 4/25/2014
2.2.5.15107 2,297 4/25/2014
2.2.4.30914 2,355 4/10/2014
2.2.3.23697 2,280 4/9/2014
2.2.2.26016 2,274 4/7/2014
2.2.1.22969 2,249 4/7/2014
2.2.0.18912 2,260 4/7/2014
2.1.1.17600 2,249 4/7/2014
2.1.0.15614 2,321 4/7/2014
2.0.8.25856 2,253 3/31/2014
2.0.7.24048 2,229 3/28/2014
2.0.6.28239 2,267 3/26/2014
2.0.5.24106 2,225 3/24/2014
2.0.4.18700 2,226 3/21/2014
2.0.3.27803 2,198 3/20/2014
2.0.2.15340 2,186 3/20/2014
2.0.1.27107 2,230 3/13/2014
2.0.0.21998 2,207 3/13/2014
1.9.5183.29291 2,139 3/11/2014
1.8.5182.17882 2,210 3/10/2014
1.7.5175.36439 2,154 3/3/2014
1.6.5162.23866 2,208 2/18/2014
1.5.5155.20014 2,176 2/11/2014
1.5.5155.15890 2,253 2/11/2014
1.4.5154.20949 2,306 2/10/2014
1.4.5078.30187 2,283 11/26/2013
1.4.5078.28578 2,221 11/26/2013
1.4.0.33438 2,198 11/21/2013
1.3.4983.18058 2,238 8/23/2013
1.3.4983.18014 2,188 8/23/2013
1.2.4981.18434 2,250 8/21/2013
1.1.4980.23070 2,238 8/20/2013
1.0.0 2,267 8/19/2013

Fix english as default metadata language for SpecificUsage