1
0
Fork 0

Merge minor cleanup

This commit is contained in:
Martin Spott 2012-01-25 01:05:25 -08:00
parent 316407935a
commit ae9352b61e
3 changed files with 5 additions and 5 deletions

View file

@ -45,7 +45,7 @@ case ${MODE} in
# Local, pre-intersected Shapefiles # Local, pre-intersected Shapefiles
DSN=${HOME}/live/corine DSN=${HOME}/live/corine
# PREFIX=nl_ # PREFIX=nl_
PREFIX=clc00_ PREFIX=clc06_
SELECTION=${DSN}/${PREFIX}c[0-9][0-9][0-9].shp SELECTION=${DSN}/${PREFIX}c[0-9][0-9][0-9].shp
SNAP=1 SNAP=1
SPAT="" SPAT=""
@ -57,7 +57,7 @@ case ${MODE} in
PREFIX=cs_ PREFIX=cs_
# Maybe unsafe because "_" matches any single character in LIKE; # Maybe unsafe because "_" matches any single character in LIKE;
# escape understores. # escape understores.
SELECTION=`${PSQL} "SELECT f_table_name FROM geometry_columns WHERE f_table_name LIKE '$(echo ${PREFIX} | sed -e 's/_/\\_/g')%' AND type LIKE 'ST_Polygon' ORDER BY f_table_name"` SELECTION=`${PSQL} "SELECT f_table_name FROM geometry_columns WHERE f_table_name LIKE '$(echo ${PREFIX} | sed -e 's/_/\\_/g')%' AND type LIKE 'POLYGON' ORDER BY f_table_name"`
# SELECTION=`psql -tA -c "\dt" | awk -F\| '{print $2}' | grep \^${PREFIX}` # SELECTION=`psql -tA -c "\dt" | awk -F\| '{print $2}' | grep \^${PREFIX}`
SNAP=0.0003 # Fits nicely with VMap0, consider SNAP=0.00001 for accurate data SNAP=0.0003 # Fits nicely with VMap0, consider SNAP=0.00001 for accurate data
# SPAT="spatial=2.8,49.8,8.2,54.2" # spatial=-123,37,-121,38 # spatial=3,50,8,54 # SPAT="spatial=2.8,49.8,8.2,54.2" # spatial=-123,37,-121,38 # spatial=3,50,8,54

View file

@ -26,7 +26,7 @@ RUNDIR=`pwd`
cd `dirname ${0}` && export BASEDIR=`pwd` cd `dirname ${0}` && export BASEDIR=`pwd`
cd ${RUNDIR} cd ${RUNDIR}
# #
MAPPINGFILE=${BASEDIR}/CORINEtoCStest.txt MAPPINGFILE=${BASEDIR}/CORINEtoCS.txt
# #
case ${MODE} in case ${MODE} in

View file

@ -30,7 +30,7 @@ cd `dirname ${0}` && export BASEDIR=`pwd`
cd ${RUNDIR} cd ${RUNDIR}
# #
MAPPINGFILE=${BASEDIR}/CORINEtoCStest.txt MAPPINGFILE=${BASEDIR}/CORINEtoCS.txt
#EXTRACTPREFIX=clc00_nl_ #EXTRACTPREFIX=clc00_nl_
EXTRACTPREFIX=clc00_ EXTRACTPREFIX=clc00_
CLEANMAP=${EXTRACTPREFIX}_dissolved CLEANMAP=${EXTRACTPREFIX}_dissolved
@ -39,7 +39,7 @@ case ${MODE} in
shp) shp)
# Re-project from EPSG:3035 - this one is _not_ to be run inside # Re-project from EPSG:3035 - this one is _not_ to be run inside
# the import location !!! # the import location !!!
v.proj location=corine mapset=PERMANENT input=${CLEANMAP} # output=${CLEANMAP} v.proj location=corine_laea mapset=PERMANENT input=${CLEANMAP} # output=${CLEANMAP}
;; ;;
esac esac