phyosithu / mapserver-utils

Automatically exported from code.google.com/p/mapserver-utils
0 stars 0 forks source link

Error in data/Makefile for 10m_admin_0_boundary_lines_land.shp #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When running make to create a mapfile the following occurrs:

unzip 10m-admin-0-boundary-lines-land.zip
Archive:  10m-admin-0-boundary-lines-land.zip
  inflating: ne_10m_admin_0_boundary_lines_land.dbf
  inflating: ne_10m_admin_0_boundary_lines_land.prj
  inflating: ne_10m_admin_0_boundary_lines_land.shp
  inflating: ne_10m_admin_0_boundary_lines_land.shx
touch 10m_admin_0_boundary_lines_land.shp
shptree 10m_admin_0_boundary_lines_land.shp 8
Error opening shapefile 10m_admin_0_boundary_lines_land.shp.
make[1]: Leaving directory `/opt/osm/mapserver-utils/data'

As it seems, the filenames in the zip have changed. Workaround in data/Makefile:

10m_admin_0_boundary_lines_land.shp: 10m-admin-0-boundary-lines-land.zip
        unzip 10m-admin-0-boundary-lines-land.zip
        mv ne_10m_admin_0_boundary_lines_land.dbf 10m_admin_0_boundary_lines_land.dbf
        mv ne_10m_admin_0_boundary_lines_land.prj 10m_admin_0_boundary_lines_land.prj
        mv ne_10m_admin_0_boundary_lines_land.shp 10m_admin_0_boundary_lines_land.shp
        mv ne_10m_admin_0_boundary_lines_land.shx 10m_admin_0_boundary_lines_land.shx
        touch 10m_admin_0_boundary_lines_land.shp

Remove the empty 10m_admin_0_boundary_lines_land.shp before next run, if the 
error occurred.

Original issue reported on code.google.com by stephan....@gmail.com on 13 Jan 2012 at 10:12

GoogleCodeExporter commented 8 years ago
Thanks for that info, but I think you made some typos in there. IMHO the 
correct part shall look like this:

10m_admin_0_boundary_lines_land.shp: ne_10m_admin_0_boundary_lines_land.zip
    unzip ne_10m_admin_0_boundary_lines_land.zip
    mv ne_10m_admin_0_boundary_lines_land.dbf 10m_admin_0_boundary_lines_land.dbf
    mv ne_10m_admin_0_boundary_lines_land.prj 10m_admin_0_boundary_lines_land.prj
    mv ne_10m_admin_0_boundary_lines_land.shp 10m_admin_0_boundary_lines_land.shp
    mv ne_10m_admin_0_boundary_lines_land.shx 10m_admin_0_boundary_lines_land.shx
    touch 10m_admin_0_boundary_lines_land.shp

Original comment by christia...@servusalps.com on 14 Jan 2013 at 2:38