Closed miloconway closed 3 years ago
OK, figured out the coordinate system translation, updated.
Generated file: https://drive.google.com/file/d/14ec-92Fmkn-VL5QrzL3T0tDVMZ2_2tjN/view?usp=sharing
This is looking great!
The XY coordinates are CA State Plane coordinates at Napa is in Zone 2 (ESPG 2226):
from pyproj import Transformer
# California Zone 2
# https://epsg.io/2226
transformer = Transformer.from_crs(2226, 4326)
# ....later on in your parcel loop....
lat, lng = transformer.transform(y_coord, x_coord)
You may have to swap x/y lng/lat. I've seen the order of the coordinate vary between datasources.
Hope this helps :+1:
@typpo yup! i examined the generated geojson output for the default output and previously working samples and figured out how to get it working, the code and the linked g-drive data in the subsequent comment should work!
Oops, I totally missed that. Merging & updating the data now!
Following the same format as that done for Solano County. However ran into a wrinkle - the coordinate system from the shp file doesn't seem to be long-lat and not quite sure how to work with it.
The input data file contains an associated XML file for the SHP that has the following:
This probably contains the info needed to translate the coordinates but not sure how to use it