I have a list of lat/long coordinates. I'd like to plot them on a US state (say New York). These coordinates include locations outside New York, but I'd like to get a map of just New York with these points shown.
I used an answer from How do I plot coordinates (latitude and longitude pairs) on a geographic map? that allows me to plot these on the US. It limits the US by using
coords = CountryData["UnitedStates", "Coordinates"];
I tried using
coordsNY =
Entity["AdministrativeDivision", {"NewYork", "UnitedStates"}][
"Cooridinates"];
But this seems to only give me one point - perhaps the centroid of the state?
Clearly I don't really understand the answer that I was trying to copy. Perhaps there's another way to plot points on a specific US state.
nypolygon= Entity["AdministrativeDivision", {"NewYork", "UnitedStates"}][ "Polygon"]; Geographics@nypolygon? – kglr May 06 '21 at 12:37GeoGraphics, e.g. this example – Lukas Lang May 06 '21 at 12:51