CoordinateSharp alternatives and similar packages
Based on the "Gis" category.
Alternatively, view CoordinateSharp alternatives based on common mentions on social networks and blogs.
-
OsmSharp
C# library to work with OpenStreetMap (OSM) data. Provides reading, writing and route-planning for OSM data. -
DEM Net Elevation API
.Net library for Digital Elevation Models, allows 3D terrain generation in glTF / STL format. -
OpenCage Data Geocoding Library for .Net Standard
A .Net Wrapper for The OpenCage Geocoder -
GeoJSON4EntityFramework
A library to create GeoJSON from Entity Framework Spatial Data or Well-Known Text (WKT) inputs.
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of CoordinateSharp or a related project?
README
CoordinateSharp is a simple .NET library that is designed to assist with geographic coordinate conversions, formatting and location based celestial calculations.
Like CoordinateSharp? Tell us about it!
This library was built to help other developers. Please make the time and effort worth while by telling us what you are using it for.
Prerequisites
.NET 4.0 or .NET Standard 2.0, 1.4, 1.3 compatible runtimes.
Installing
CoordinateSharp is available as a nuget package from nuget.org
Alternatively, you may download the library directly on our website
Licensing
CoordinateSharp is split licensed. You may use CoordinateSharp under the AGPL3.0 or a Commercial Use License that absolves you of the AGPL3.0 requirements. Details as well as pricing may be viewed on our website
Usage Example
CoordinateSharp is simple to use. In the below example we create a Coordinate
using one of the methods below.
//Seattle coordinates on 5 Jun 2018 @ 10:10 AM (UTC)
//Signed-Decimal Degree 47.6062, -122.3321
//Degrees Minutes Seconds N 47º 36' 22.32" W 122º 19' 55.56"
/***********************************************************/
//Initialize with signed degree (standard method)
Coordinate c = new Coordinate(47.6062, -122.3321, new DateTime(2018,6,5,10,10,0));
/***IF OTHER FORMAT IS USED SUCH AS DEGREE MINUTES SECONDS***/
//Initialize with TryParse() Method
Coordinate.TryParse("N 47º 36' 22.32\" W 122º 19' 55.56\"", new DateTime(2018,6,5,10,10,0), out c);
/****OR****/
//Initialize with Secondary Method
Coordinate c = new Coordinate();
c.Latitude = new CoordinatePart(47,36, 22.32, CoordinatePosition.N, c);
c.Longitude = new CoordinatePart(122, 19, 55.56, CoordinatePosition.W, c);
c.GeoDate = new DateTime(2018,6,5,10,10,0);
Once the Coordinate
is created we have access to various formats and celestial data. Here are just a few examples.
Console.WriteLine(c); // N 47º 36' 22.32" W 122º 19' 55.56"
Console.WriteLine(c.Latitude.Seconds); // 22.32
Console.WriteLine(c.UTM); // 10T 550200mE 5272748mN
Console.WriteLine(c.CelestialInfo.SunSet); // 5-Jun-2018 4:02:00 AM
Console.WriteLine(c.CelestialInfo.MoonAltitude); // 14.4169966277874
Demo
Abilities
- Lat/Long formatting: Quickly format how a coordinate is output.
- Coordinate conversions: Convert Lat/Long to UTM, MGRS, Cartesian (Spherical and ECEF) or vice versa.
- Coordinate parsing: Initialize a
Coordinate
with multiple format types usingTryParse()
. - Coordinate moving/shifting: Shift coordinates using a distance and bearing, or a distance and target coordinate.
- Location based celestial information: Quickly determine sun set, moon rise, next solar eclipse or even zodiac signs at the input location.
- Property change notification: All properties automatically adjust as the
Coordinate
changes. For example, changing theGeoDate
will cause all celestial times to recalculate. Adjusting aCoordinate
latitudinal seconds, will retrigger all coordinate conversions and celestial data so your information is always up to date. - Geo-Fencing: Define a perimeter and determine if your coordinate is within or near polylines.
Guides
Check out the CoordinateSharp Developer Guide for more detailed instructions on the usage and abilities of CoordinateSharp.
You may also view the Documentation for a more in depth look at CoordinateSharp's structure.
Change notes can be viewed here.
Questions
Have a technical question, but don't feel like creating an issue? Email us at [email protected]
*Note that all licence references and agreements mentioned in the CoordinateSharp README section above
are relevant to that project's source code only.