Hi Warren
You can perform polygon-over-raster analysis for a single polygon from MapInfo Pro Advanced (Raster) user interface itself by following these steps:
1. Open the input region TAB and raster file in MapInfo Pro.
2. Select any region in mapper window.
3. Access the Region statistics Tool from Raster Tab-> Raster Operations-> Region Stats.
4. Now, select the raster in Input File field.
5. Select "Selection” in Select Region Layer field.
6. Set the output TAB file path in Output File field.
7. Click on Process button.
MapInfo Pro Advance Raster APIs are designed to be consume in C# program, so you cannot use them directly in MapBasic.
We have added MDAL (MapInfo Data Access Library) C# library in MapInfo 17.0. You can write a C# program for selecting and writing the single region TAB file (temporary) from input regions TAB file, using MDAL and feed it to GetPolygonStatistics raster API.
You can find and refer the sample code for using MDAL at <MapBasic-x64 Installation directory>\Samples\RIBBONINTERFACE\DotNet\MapInfoDataAccessLibraryExamples.
Thanks
Upendra Patel