GeoServicios.PinolSoftware
2.3.0
dotnet add package GeoServicios.PinolSoftware --version 2.3.0
NuGet\Install-Package GeoServicios.PinolSoftware -Version 2.3.0
<PackageReference Include="GeoServicios.PinolSoftware" Version="2.3.0" />
<PackageVersion Include="GeoServicios.PinolSoftware" Version="2.3.0" />
<PackageReference Include="GeoServicios.PinolSoftware" />
paket add GeoServicios.PinolSoftware --version 2.3.0
#r "nuget: GeoServicios.PinolSoftware, 2.3.0"
#:package GeoServicios.PinolSoftware@2.3.0
#addin nuget:?package=GeoServicios.PinolSoftware&version=2.3.0
#tool nuget:?package=GeoServicios.PinolSoftware&version=2.3.0
GeoServicios.PinolSoftware
Librería .NET para conversión de coordenadas geográficas y consulta de archivos Shapefile. Desarrollado por Pinol Software, Nicaragua.
Instalación
dotnet add package GeoServicios.PinolSoftware
Funcionalidades
- Conversión Latitud/Longitud → UTM (con cálculo automático de zona o forzando Zona 16 para Centroamérica)
- Conversión UTM → Latitud/Longitud
- Soporte para 26 datums geodésicos (WGS 84, Clarke, Bessel, Everest, GRS 1980, etc.)
- Lectura de archivos Shapefile (.shp/.shx/.dbf)
- Consulta punto en polígono con retorno de atributos y geometría en GeoJSON
Uso básico
Convertir Lat/Lng a UTM
using GeoServicios.Servicios;
var converter = new GeoConverter("WGS 84");
// Zona calculada automáticamente
var utm = converter.ConvertLatLngToUtm(12.1364, -86.2818);
Console.WriteLine(utm.Zona); // "16P"
Console.WriteLine(utm.Easting); // 591234.56
Console.WriteLine(utm.Northing); // 1340567.89
// Forzar Zona 16 (Nicaragua/Centroamérica)
var utm16 = converter.ConvertLatLngToUtm16(12.1364, -86.2818);
Convertir UTM a Lat/Lng
var latLng = converter.ConvertUtmToLatLng(591234.56, 1340567.89, 16, "P");
Console.WriteLine(latLng.Lat); // 12.1364
Console.WriteLine(latLng.Lng); // -86.2818
Consultar punto en polígono (Shapefile)
using GeoServicios.Servicios;
var reader = new ReadShapeFile();
var resultados = reader.PointsInPolygon(12.1364, -86.2818, @"C:\mapas\municipios.shp");
foreach (var punto in resultados)
{
Console.WriteLine(punto.JsonData); // GeoJSON del polígono
foreach (var attr in punto.CampoValores)
Console.WriteLine($"{attr.Campo}: {attr.Valor}");
}
Datums soportados
WGS 84, EUREF89, ETRS89, GRS 1980, GRS 1967, ED50, Clarke 1866, Clarke 1880,
Bessel 1841, Everest, Modified Everest, Airy, Modified Airy, Hough, International,
Krassovsky, Helmert 1906, Fischer 1960 Mercury, Fischer 1968, Modified Fischer 1960,
South American 1969, Australian National, WGS 72, WGS 66, WGS 60, Bessel 1841 Nambia
Requisitos
- .NET 9.0 o superior
Licencia
MIT — Pinol Software, Nicaragua
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- NetTopologySuite (>= 2.6.0)
- NetTopologySuite.IO.GeoJSON (>= 4.0.0)
- NetTopologySuite.IO.ShapeFile (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.