[OSM-talk] OSM2SHP

Nick Whitelegg nick at hogweed.org
Tue May 15 20:08:43 BST 2007


On Tuesday 15 May 2007 17:05, Eamonn Linehan wrote:
> Im new to linux and am having trouble compiling the export utility
> osm2shp. I've been careful to first compile and link the libosm library.
> Can anyone help me? The error I receive is below.
>
> Thanks,
> - Éamonn
>
>
> make
> g++ -I/usr/local/include -I../../libs/libosm    -c -o osm2shp.o
> osm2shp.cpp
> osm2shp.cpp: In function ‘int main(int, char**)’:
> osm2shp.cpp:30: error: no matching function for call to
> ‘OSM::Components::makeShp(char*&, char*&)’
> /usr/local/include/Components.h:134: note: candidates are: bool
> OSM::Components::makeShp(const std::string&, const std::string&, const
> std::string&, const std::string&)
> make: *** [osm2shp.o] Error 1

Hello Eamonn,

The version in svn was missing a couple of vital command line parameters.

You also need to supply the shapefile to store areas, and the XML file which 
differentiates, by tags, polylines and areas. (This is in SVN in the libosm 
directory - it's the file features.xml)

Nick




More information about the talk mailing list