From the text file (.csv file) that has been provided (input file), I need to write a script that calculates new x,y coordinates from the coordinates provided in the input file, and write them to a new text file. Assuming that each of the points in the .csv file is the center point of a square-shaped plot that is 20 meters by 20 meters.
Meaning i would have to write a script that takes the coordinate pairs
from .csv and calculate the lower left corner, lower right corner, upper right corner, upper left corner, based on the centre coordinate pair and output the 4 new coordinate pairs for every center
coordinate pair to a new text file.
The input file contains:
1 good 433207.8362 4518107.044
showing the ID number, description, X coordinate and Y Coordinate.
The code i posted originally extracts this information and creates a list of all different entities and places them into a new text file. Just need to figure out how to work out the 4 new coordinate pairs.
Would it be possible to create a 20m x 20m polygon around the give coordinate pairs and work out the 4 new coordinate pairs from that ?
Many thanks !!