Giter VIP home page Giter VIP logo

create-utfgrids's People

Contributors

perrygeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

create-utfgrids's Issues

Versions of python bindings

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*)

NoneType Object has no attribute 'GetLayer'

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.