I am writing a Simulink/Matlab Application that takes in a shapefile. When given a coordinate(lat,long), I want to see if the coordinate is inside a polygon in shapefile in real-time.
My current option: 1) Use OGR tool to read the shapefile and use its feature deterimine if pointi in polygon. I do not know if it is easy to integrate OGR library into Simulink environment.
2) Use Python library to first read shapefile. Pass the read information into Simulink application to perform points in polygon tests.