GeoServicios.PinolSoftware 2.3.0

dotnet add package GeoServicios.PinolSoftware --version 2.3.0
                    
NuGet\Install-Package GeoServicios.PinolSoftware -Version 2.3.0
                    
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="GeoServicios.PinolSoftware" Version="2.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GeoServicios.PinolSoftware" Version="2.3.0" />
                    
Directory.Packages.props
<PackageReference Include="GeoServicios.PinolSoftware" />
                    
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 GeoServicios.PinolSoftware --version 2.3.0
                    
#r "nuget: GeoServicios.PinolSoftware, 2.3.0"
                    
#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 GeoServicios.PinolSoftware@2.3.0
                    
#: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=GeoServicios.PinolSoftware&version=2.3.0
                    
Install as a Cake Addin
#tool nuget:?package=GeoServicios.PinolSoftware&version=2.3.0
                    
Install as a Cake Tool

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 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. 
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
2.3.0 102 4/16/2026
2.1.0 103 4/16/2026
2.0.1 92 4/16/2026
2.0.0 101 4/16/2026