0

I'm looking to use the geojson module in Python, as well as Pilllow to convert a .geojson to a .png image. I know how to extract the data from the file but I don't know what to do from there.

4
  • 2
    Lots of questions: why Pillow? Hard dep or something else is fine? GeoJSON to image: is it points, lines, polygons? Because GeoJSON = no style just shape. Extent around your GeoJSON? if not, your points,lines, polygons within GeoJSON may be not well visible e.g on the border of the image. Projection? same data will not plot the same on your PNG
    – ThomasG77
    Commented Jul 17, 2020 at 18:08
  • No sorry there's no restrictions on it I just need it to become a .png image in some way. I need the lines so that I can use them as roads in my project. For the projection I will be using Spherical Mercator.
    – BassoftheC
    Commented Jul 17, 2020 at 18:11
  • 1
    Welcome to GIS SE! As a new user please take the tour. What have you tried? What was the result? Please edit your question to include some code you've tested and details of the result.
    – Midavalo
    Commented Jul 17, 2020 at 19:27
  • Install gdal and use gdal.RasterizeLayer
    – user2856
    Commented Jul 20, 2020 at 23:19

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.