I am tasked with trying to find whether a given latitude/longitude (in degrees, so for example -50.55555, 78.232222) exists within a given Shapefile.
The Shapefile I downloaded is from here: https://www.census.gov/geo/maps-data/data/cbf/cbf_nation.html (it contains shape files for the United States and all her territories).
I am looking for a Java based solution, that where given a randomly generated latitude/longitude - to determine whether that point resides within the United States. One tool I have found useful (but am new to) is GeoTools.
So a few questions:
Is it possible to use GeoTools to accomplish this requirement (determine if some lat/long resides in the US)?
If this is not possible with GeoTools (or GeoTools alone) is there another way to find a java solution for this (without resorting to say web services like Google Maps, etc).
Also to note: I downloaded QGIS and with the use of mmqgis plugin was able to export all the shape file contents (shape_id, lat, long) for the Shapefile I mentioned above. Maybe there is another Java library I could use to read these shapes in and test whether a random lat/long falls within these shapes?
I'm new to all of this, any/all questions please ask! Thank you so much.