Chris, I'd close the source dataset first.  OGR/GDAL can have serious
issues with having data open in two places, and sometimes it's surprising
what causes it.

You might also try outputting via mapnik2

On Tue, Oct 14, 2014 at 6:35 PM, Chris Calloway <c...@unc.edu> wrote:

> I'm trying to programmatically generate image data from a shapefile with
> something like this:
>
> import fiona
> from rasterio import features
> collection = fiona.open("myfeatures.shp")
> image = features.rasterize(collection, out_shape=(1000,1000))
>
> And nearly immediately I get:
>
> "Segmentation fault: 11"
>
> I'm using fiona and rasterio from anaconda on OSX 10.9.5:
>
> $ conda list | grep rasterio
> rasterio                  0.8                      py27_0
> $ conda list | grep fiona
> fiona                     1.1.6                np19py27_0
>
> Has anyone gone full trip from shapefile to image data through fiona and
> rasterio.features.rasterize? If so, do you have advice? I would expect this
> is just wrapping gdal's rasterize.
>
> --
> Sincerely,
>
> Chris Calloway, Applications Analyst
> UNC Renaissance Computing Institute
> 100 Europa Drive, Suite 540, Chapel Hill, NC 27517
> (919) 599-3530
> _______________________________________________
> Community mailing list
> Community@lists.gispython.org
> http://lists.gispython.org/mailman/listinfo/community
>
_______________________________________________
Community mailing list
Community@lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community

Reply via email to