In my area, PINs (Parcel Id Numbers) are 10-digit numbers built from the coordinate of the centroid of the parcel (polygon). I have no coding experience, but I know what I need is fairly straightforward and hope someone can help me.
Note- the 10-digit PIN is NOT a coordinate, it is an encoded coordinate and the actual coordinate would need to parsed out.
What I wish to do is create an input field labeled 'PIN Search' where a user can input a 10-digit PIN and after hitting enter the program would determine the coordinate and, ideally, select the nearest polygon at that coordinate and zoom/pan to its extent. I would be happy if it would just zoom/pan to the coordinate at some predetermined scale.
I suppose I need to learn to write some python code. I have no idea how to create an input field, I know what to do with the data to generate a coordinate, but then I would like to select the nearest polygon to that location and pan/zoom to its extent. I would be happy to just pan/zoom to the coordinate, though.
Is this something I would need to create a plugin for or can it be done in some sort of macro?
EDIT --How a PIN becomes a coordinate CRS = NAD83 / North Carolina (ftUS) EPSG = 2264
extents: xmin = 400000, ymin = 400000, xmax = 1300000, ymax = 1300000
PIN is 10-digit number of the form x1 y1 x2 y2 x3 y3 x4 y4 x5 y5 The coordinate is derived as X=x1 x2 x3 x4 x5 x6, Y=y1 y2 y3 y4 y5 y6 where x6 and y6 are = 0 and if x1 = 0,1,2,or 3 then 10 is added and if y1 = 0,1,2,3 then 10 is added. Examples: PIN = 9876543210 generates coordinate x=975310, y=864200: PIN = 0123456789 generates coordinate x= 1024680, y= 1135790