fawick / go-mapnik Goto Github PK
View Code? Open in Web Editor NEWGo bindings for mapnik (http://www.mapnik.org or http://github.com/mapnik/mapnik)
License: BSD 3-Clause "New" or "Revised" License
Go bindings for mapnik (http://www.mapnik.org or http://github.com/mapnik/mapnik)
License: BSD 3-Clause "New" or "Revised" License
I am getting This issue:
jacobs-imac:mapnik j$ ./configure.bash
# github.com/fawick/go-mapnik/mapnik
In file included from ./mapnik_c_api.cpp:5:
In file included from /usr/local/include/mapnik/agg_renderer.hpp:28:
In file included from /usr/local/include/mapnik/feature_style_processor.hpp:27:
In file included from /usr/local/include/mapnik/datasource.hpp:28:
In file included from /usr/local/include/mapnik/params.hpp:28:
/usr/local/include/mapnik/value_types.hpp:27:10: fatal error: 'unicode/unistr.h' file not found
I googled around and it appears that my ICU library may need to be updated. It looks like quite a chore to install from source so I was wondering if it's an issue anyone else came across before or if I'm doing something wrong.
There's only a single goroutine that serves reads from the mbtiles database. This is very slow, especially since the reads are blocking.
m.fetch should run in a goroutine.
Similarly m.insert should also be executed in a goroutine. Sqlite should be able to handle locking.
You currently only provide:
func (m *Map) Load(stylesheet string) error
, where "stylesheet" is read as a filename (the parameter name should make this more obvious). So there is no way to create a map from a dynamically-generated stylesheet.
The python bindings provide a mapnik.load_map_from_string
to accomplish this.
This is a great looking project, and the tileserver is nice addition. I noticed it supports .png tiles as of now. Any plans to support mapbox vector tiles?
m.qc is created inside a goroutine here. It should be created before the goroutine is started.
Add a Version() function that shows exactly which mapnik version is linked.
On OSX, I ran
'brew install mapnik'.
I assumed that this is the equivalent to
'apt-get install libmapnik-dev'
It failed straight away with clang
jacobs-imac:mapnik j$ ./configure.bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5171 100 5171 0 0 7824 0 --:--:-- --:--:-- --:--:-- 7834
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2347 100 2347 0 0 11580 0 --:--:-- --:--:-- --:--:-- 11561
# github.com/fawick/go-mapnik/mapnik
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
boost::mutex::mutex() in mapnik_c_api.cpp.o
boost::mutex::unlock() in mapnik_c_api.cpp.o
boost::unique_lock<boost::mutex>::lock() in mapnik_c_api.cpp.o
boost::mutex::lock() in mapnik_c_api.cpp.o
__GLOBAL__I_a in mapnik_c_api.cpp.o
"boost::system::generic_category()", referenced from:
__GLOBAL__I_a in mapnik_c_api.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
./mapnik_c_api.cpp:2:10: fatal error: 'mapnik/graphics.hpp' file not found
Darn brew upgrade
and didn't notice it took mapnik 3.0.0. But if this can be updated easily to support 3.0, i'll hold-off on downgrading my mapnik.
Thanks
This is my sample style.xml, it work shp file only.
<Style name="color relief style"> </Style> <Style name="slopeshade style"> </Style> <Style name="hillshade style"> </Style> <Style name="contours style"> </Style> color relief style gdal data/S07E106_utm48s_relief.tif slopeshade style gdal data/S07E106_utm48s_slopeshade.tif hillshade style gdal data/S07E106_utm48s_hs.tif contours style shape data/s07e106_25m.shpThis line is unreachable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.