Monday, 11 March 2019

Area of an EPSG 27700 polygon


I am working with EPSG 27700 polygon data in PHP. All the polygons are in the UK. The polygons do not have holes inside them. I'm hoping to be able to calculate the area of these polygons. For this I believe I need to take two steps. Firstly to convert the coords into something where x an y are the same distance and then once that is done to calculate the area inside each polygon.



My naive solution would be to use some graphics package to draw the polygon onto an image and count the coloured squares.




  1. What's a good coordinate system for this? UK Easting & Northing is my best guess.




  2. Is there a PHP library or easily(!) implemented algorithm to find the area inside a polygon defined by a list of points?




Alternatively, should I be getting out of my comfort zone and learning to use a proper GIS system?





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...