Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions