Skip to content

Commit

Permalink
Version 10.036 of EPSG constants published to NuGet.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasJohansson committed Oct 3, 2021
1 parent 197ba0f commit 383aad9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Version>10.027</Version>
<TargetFrameworks>net20;netstandard2.0</TargetFrameworks>
<Version>10.036</Version>
<Title>.NET constants with EPSG codes for Coordinate Reference Systems</Title>
<Authors>TomasJohansson</Authors>
<Description>.NET constants with EPSG codes for Coordinate Reference Systems.
Assembly with only one C# class that defines 6733 integer constants which have been generated from the EPSG database.
Assembly with only one C# class that defines many (thousands of) integer constants which have been generated from the EPSG database.
The version number is the same as the used EPSG database at http://www.epsg.org or http://www.epsg-registry.org
Regarding the license:
MIT license for this library with C# constants for EPSG codes.
Expand All @@ -25,10 +25,21 @@ Some quotes from the 'Terms of use' URL:
</PropertyGroup>

<ItemGroup>
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_5_4\EpsgNumber.fs" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_6\EpsgNumber.fs" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_7\EpsgNumber.fs" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_8_9\EpsgNumber.fs" />
<Compile Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v10_027\**" />
<Compile Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_5_4\**" />
<Compile Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_6\**" />
<Compile Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_7\**" />
<Compile Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_8_9\**" />
<EmbeddedResource Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v10_027\**" />
<EmbeddedResource Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_5_4\**" />
<EmbeddedResource Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_6\**" />
<EmbeddedResource Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_7\**" />
<EmbeddedResource Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_8_9\**" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v10_027\**" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_5_4\**" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_6\**" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_7\**" />
<None Remove="Programmerare\CrsConstants\ConstantsByAreaNameNumber\v9_8_9\**" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,6 @@ AUSTRIA__ETRS89__AUSTRIA_LAMBERT__3416
EUROPE__LIECHTENSTEIN_AND_SWITZERLAND__CH1903__LV03__21781
```
The above examples with constants are showing very few of them.
The actual number of constants in the generated class is 6733.
This number can easily be retrieved with the C# code 'typeof(EpsgNumber).GetFields().Length'.
There are many thousands of constants in the generated class.
The actual number of constants (for the version of the constants class you are using) can easily be retrieved with the C# code 'typeof(EpsgNumber).GetFields().Length'.
The same number can also be verified with the value returned by the SQL statement 'SELECT count(DISTINCT coord_ref_sys_code) FROM epsg_coordinatereferencesystem' (or simply 'SELECT count(*) FROM epsg_coordinatereferencesystem' since 'coord_ref_sys_code' is the primary key).

0 comments on commit 383aad9

Please sign in to comment.