ecotrust / create-utfgrids Goto Github PK
View Code? Open in Web Editor NEWSimple command line script to create UTFGrid json files from a shapefile
License: Other
Simple command line script to create UTFGrid json files from a shapefile
License: Other
Hi,
Could you please specify the version of OGR bindings you use to run the script successfully?
Currently getting this traceback:
WARNING:
This script assumes a polygon shapefile in spherical mercator projection.
If any of these assumptions are not true, don't count on the results!
Traceback (most recent call last):
File "./create_utfgrids.py", line 108, in <module>
create_utfgrids(shppath, minzoom, maxzoom, outdir, fields)
File "./create_utfgrids.py", line 44, in create_utfgrids
polygon_symbolizer = mapnik.PolygonSymbolizer(mapnik.Color('#f2eff9'))
Boost.Python.ArgumentError: Python argument types in
PolygonSymbolizer.__init__(PolygonSymbolizer, Color)
did not match C++ signature:
__init__(_object*)
Running create_utfgrids.py I get json tiles which have null in the attribute.
Hey there,
first, thanks for the work you put into creat_utfgrids. It's just what I was looking for.
I, however, get the following message trying to convert a shapefile into a UTFGrid. The EPSG is 4326:
Traceback (most recent call last):
File "c:\create_utfgrids.py", line 108, in
create_utfgrids(shppath, minzoom, maxzoom, outdir, fields)
File "c:\create_utfgrids.py", line 34, in create_utfgrids
layer = ds.GetLayer(layernum)
AttributeError: 'NoneType' object has no attribute 'GetLayer'
Do you have an idea what the issue could be here?
Thanks a lot!
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.