# Shapefiles

From Navit's Wiki

### Renameing Idea

Creating symlink to the actual file to let navit acces the right file

cd maps/shapefiles/ for i in *.shx; do ln -s $i ${i%.*}.cpg.shx; done for i in *.shp; do ln -s $i ${i%.*}.cpg.shp; done for i in *.dbf; do ln -s $i "${i##*.}"dbfmap; done for i in *.dbf; do ln -s $i "${i##*.}"map; done for i in *.dbf; do ln -s $i ${filename%.*}dbfmap; done for i in *.dbf; do ln -s $i ${i%.*}.dbfmap; done #<-- right?! for i in *.shx; do ln -s $i ${i%.*}.cpg.shx; done for i in *.shp; do ln -s $i ${i%.*}.cpg.shp; done