I have a bash script that does the following:
export PATH=$PATH:/usr/local/grass/bin
GRASSDATA=/output/grassdata && \
MAPSET=PERMANENT && \
MAP=outputAmtrakMap && \
rm -rf $GRASSDATA && \
(grass -c /input/kx-amtrak-stations-SHP/amtrak-stations.shp -e $GRASSDATA && \
grass $GRASSDATA/$MAPSET/ --exec v.in.ogr --verbose --overwrite input=/input/kx-amtrak-stations-SHP/amtrak-stations.shp output=$MAP snap=0.0001) 2>&1 | tee /output/logfile && \
MAP=outputInstitutions && \
grass $GRASSDATA/$MAPSET/ --exec v.in.ogr --verbose --overwrite input=/input/Colleges_and_Universities/CollegesUniversities.shp output=$MAP snap=0.0001 2>&1 | tee /output/logfile
MAP=outputAirports && \
grass $GRASSDATA/$MAPSET/ --exec v.in.ogr --verbose --overwrite input=/input/World_Airports/world_airports.shp output=$MAP snap=0.0001 2>&1 | tee /output/logfile
I've verified that the import of the first two shapefiles works well. The problem is that the import of the third shapefile results in this error:
ERROR: Projection of dataset does not appear to match current location.
Location PROJ_INFO is:
name: WGS 84 / Pseudo-Mercator
a: 6378137
es: 0
proj: merc
lat_ts: 0
lon_0: 0
x_0: 0
y_0: 0
k: 1
nadgrids: @null
wktext: defined
no_defs: defined
Dataset PROJ_INFO is:
name: WGS 84
datum: wgs84
ellps: wgs84
proj: ll
no_defs: defined
Difference in: proj
In case of no significant differences in the projection definitions,
use the -o flag to ignore them and use current location definition.
Consider generating a new location from the input dataset using the
'location' parameter.
Is there a way I can have my script convert the WGS 84
world_airports.shp
layer to WGS 84 / Pseudo-Mercator
without risking corrupted data?