Shapefiles

From Navit's Wiki
Revision as of 20:22, 9 February 2017 by Jkoan (talk | contribs) (Created page with "=== Renameing Idea === Creating symlink to the actual file to let navit acces the right file <pre> cd maps/shapefiles/ for i in *.shx; do ln -s $i ${i%.*}.cpg.shx; done fo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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