mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-02-24 02:41:15 +00:00
Rename geojson2nd to tippecanoe-json-tool
This commit is contained in:
parent
42a56b1ad3
commit
d9c22135e5
13
Makefile
13
Makefile
@ -19,21 +19,22 @@ else
|
|||||||
FINAL_FLAGS := -g $(WARNING_FLAGS) $(DEBUG_FLAGS)
|
FINAL_FLAGS := -g $(WARNING_FLAGS) $(DEBUG_FLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: tippecanoe tippecanoe-enumerate tippecanoe-decode tile-join unit geojson2nd
|
all: tippecanoe tippecanoe-enumerate tippecanoe-decode tile-join unit tippecanoe-json-tool
|
||||||
|
|
||||||
docs: man/tippecanoe.1
|
docs: man/tippecanoe.1
|
||||||
|
|
||||||
install: tippecanoe tippecanoe-enumerate tippecanoe-decode tile-join
|
install: tippecanoe tippecanoe-enumerate tippecanoe-decode tile-join tippecanoe-json-tool
|
||||||
mkdir -p $(PREFIX)/bin
|
mkdir -p $(PREFIX)/bin
|
||||||
mkdir -p $(MANDIR)
|
mkdir -p $(MANDIR)
|
||||||
cp tippecanoe $(PREFIX)/bin/tippecanoe
|
cp tippecanoe $(PREFIX)/bin/tippecanoe
|
||||||
cp tippecanoe-enumerate $(PREFIX)/bin/tippecanoe-enumerate
|
cp tippecanoe-enumerate $(PREFIX)/bin/tippecanoe-enumerate
|
||||||
cp tippecanoe-decode $(PREFIX)/bin/tippecanoe-decode
|
cp tippecanoe-decode $(PREFIX)/bin/tippecanoe-decode
|
||||||
|
cp tippecanoe-json-tool $(PREFIX)/bin/tippecanoe-json-tool
|
||||||
cp tile-join $(PREFIX)/bin/tile-join
|
cp tile-join $(PREFIX)/bin/tile-join
|
||||||
cp man/tippecanoe.1 $(MANDIR)/tippecanoe.1
|
cp man/tippecanoe.1 $(MANDIR)/tippecanoe.1
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm $(PREFIX)/bin/tippecanoe $(PREFIX)/bin/tippecanoe-enumerate $(PREFIX)/bin/tippecanoe-decode $(PREFIX)/bin/tile-join $(MANDIR)/tippecanoe.1
|
rm $(PREFIX)/bin/tippecanoe $(PREFIX)/bin/tippecanoe-enumerate $(PREFIX)/bin/tippecanoe-decode $(PREFIX)/bin/tile-join $(MANDIR)/tippecanoe.1 $(PREFIX)/bin/tippecanoe-json-tool
|
||||||
|
|
||||||
man/tippecanoe.1: README.md
|
man/tippecanoe.1: README.md
|
||||||
md2man-roff README.md > man/tippecanoe.1
|
md2man-roff README.md > man/tippecanoe.1
|
||||||
@ -58,7 +59,7 @@ tippecanoe-decode: decode.o projection.o mvt.o write_json.o text.o
|
|||||||
tile-join: tile-join.o projection.o pool.o mbtiles.o mvt.o memfile.o dirtiles.o jsonpull/jsonpull.o text.o evaluator.o
|
tile-join: tile-join.o projection.o pool.o mbtiles.o mvt.o memfile.o dirtiles.o jsonpull/jsonpull.o text.o evaluator.o
|
||||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
||||||
|
|
||||||
geojson2nd: geojson2nd.o jsonpull/jsonpull.o
|
tippecanoe-json-tool: jsontool.o jsonpull/jsonpull.o
|
||||||
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
$(CXX) $(PG) $(LIBS) $(FINAL_FLAGS) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -lm -lz -lsqlite3 -lpthread
|
||||||
|
|
||||||
unit: unit.o text.o
|
unit: unit.o text.o
|
||||||
@ -91,14 +92,14 @@ test: tippecanoe tippecanoe-decode $(addsuffix .check,$(TESTS)) raw-tiles-test p
|
|||||||
cmp $@.out $(patsubst %.check,%,$@)
|
cmp $@.out $(patsubst %.check,%,$@)
|
||||||
rm $@.out $@.mbtiles
|
rm $@.out $@.mbtiles
|
||||||
|
|
||||||
geobuf-test: geojson2nd $(addsuffix .checkbuf,$(TESTS))
|
geobuf-test: tippecanoe-json-tool $(addsuffix .checkbuf,$(TESTS))
|
||||||
|
|
||||||
# For quicker address sanitizer build, hope that regular JSON parsing is tested enough by parallel and join tests
|
# For quicker address sanitizer build, hope that regular JSON parsing is tested enough by parallel and join tests
|
||||||
fewer-tests: tippecanoe tippecanoe-decode geobuf-test raw-tiles-test parallel-test pbf-test join-test enumerate-test decode-test join-filter-test unit
|
fewer-tests: tippecanoe tippecanoe-decode geobuf-test raw-tiles-test parallel-test pbf-test join-test enumerate-test decode-test join-filter-test unit
|
||||||
|
|
||||||
# XXX Use proper makefile rules instead of a for loop
|
# XXX Use proper makefile rules instead of a for loop
|
||||||
%.json.checkbuf:
|
%.json.checkbuf:
|
||||||
for i in $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json); do ./geojson2nd -w $$i | ./node_modules/geobuf/bin/json2geobuf > $$i.geobuf; done
|
for i in $(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json); do ./tippecanoe-json-tool -w $$i | ./node_modules/geobuf/bin/json2geobuf > $$i.geobuf; done
|
||||||
./tippecanoe -aD -f -o $@.mbtiles $(subst @,:,$(subst %,/,$(subst _, ,$(patsubst %.json.checkbuf,%,$(word 4,$(subst /, ,$@)))))) $(addsuffix .geobuf,$(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json)) < /dev/null
|
./tippecanoe -aD -f -o $@.mbtiles $(subst @,:,$(subst %,/,$(subst _, ,$(patsubst %.json.checkbuf,%,$(word 4,$(subst /, ,$@)))))) $(addsuffix .geobuf,$(wildcard $(subst $(SPACE),/,$(wordlist 1,2,$(subst /, ,$@)))/*.json)) < /dev/null
|
||||||
./tippecanoe-decode $@.mbtiles | sed 's/checkbuf/check/g' > $@.out
|
./tippecanoe-decode $@.mbtiles | sed 's/checkbuf/check/g' > $@.out
|
||||||
cmp $@.out $(patsubst %.checkbuf,%,$@)
|
cmp $@.out $(patsubst %.checkbuf,%,$@)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user