e-n-f / datamaps

Indexes points and lines and generates map tiles to display them
BSD 2-Clause "Simplified" License
341 stars 53 forks source link

need render-vector documentation #15

Open gabrielflorit opened 10 years ago

gabrielflorit commented 10 years ago

I see that render-vector is a task in the Makefile, but when I add it to the all task, I get an error. Probably because I don't have all the TM2 dependencies installed - but not sure which ones.

On a related note - a million thanks for open-sourcing your secret sauce. This is a really cool piece of code.

vespakoen commented 9 years ago

:+1:

This is what I get:

$ make render-vector
cc -g -Wall -O3 -o render-vector render.o util.o clip.o dump.o vector_tile.pb.o vector.o -lm -lz -lprotobuf-lite
/usr/bin/ld: vector.o: undefined reference to symbol '_ZNSt8ios_base4InitD1Ev@@GLIBCXX_3.4'
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:26: recipe for target 'render-vector' failed
make: *** [render-vector] Error 1

Some hints can be found here https://github.com/ericfischer/datamaps/tree/vector-tiles But I couln't get that old Makefile to work, because I get the same error.

e-n-f commented 9 years ago

@vespakoen I think you may just need a "make clean" before you make again here.

But honestly you will be better off using tippecanoe instead of datamaps to make your vector tiles. It is under active development and supports arbitrary metadata. Datamaps vector support was ultimately a testbed experiment to learn what tippecanoe would need to do.