Skip to content

GeoTiff export is clipped #1

@bryankennedy

Description

@bryankennedy

I hope this is the best place to post this. I see that there are several code repos for nik2img.py and I think that this is the most current.

I am trying to use Mapnik XML to create a GeoTiff, but the resulting image keeps getting cropped at the right hand side. Things work fine for PNG.

So, when I do:

nik2img.py map.xml map_01.png --srs=4326 --bbox -124.73 24.95 -66.96 49.37

I get a PNG focused on NA.
map_04

However, when I do the same command and ask it to export a GeoTiff with:

nik2img.py map.xml map_01.tiff --srs=4326 --bbox -124.73 24.95 -66.96 49.37

I get a tiff, but about 20% of the image is blank at the right. GitHub doesn't support tiffs, so here's the tiff converted back into a PNG, just to show you the clipping:
map_04_clipped

Am I missing something in the attributes that I should be defining? I get this same problem even if I don't supply a bounding box.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions