I'm exploring how we can use NetTopologySuite to address a geoprocessing task. based on some code sample I found, I was able to piece together a sample application that reads a shapefile and checks if a point falls within a polygon. The issue is, my point is in WGS84 but the shapefile is in EPSG:2810. I need to transform the input point to the CRS of the shapefile.
How do I convert a point from WGS to EPSG:2810 using NetTopologySuite 1.13.3?
Here's some of the code I have so far:
string shpFilename = @"C:\...\polygons.shp";
GeometryFactory factory = new GeometryFactory();
var coord = new Coordinate(-90.00, 45.00);
var point = factory.CreatePoint(coord);
I should also note that when I manually convert from WGS84 to the projected system and use those converted values, my code works as designed. This confirms this is a matter of transforming the coordinates before attempting to determine if they fall within a polygon.