fix compile of rasterlite plugin

This commit is contained in:
Dane Springmeyer 2015-01-22 15:59:01 -08:00
parent 51172c8fdf
commit faddf1a615

View file

@ -116,8 +116,7 @@ feature_ptr rasterlite_featureset::get_feature(mapnik::query const& q)
{
mapnik::image_rgba8 image(width,height);
unsigned char* raster_data = static_cast<unsigned char*>(raster);
unsigned char* image = image.getBytes();
std::memcpy(image, raster_data, size);
std::memcpy(image.getBytes(), raster_data, size);
feature->set_raster(std::make_shared<mapnik::raster>(intersect, std::move(image), 1.0));
MAPNIK_LOG_DEBUG(rasterlite) << "rasterlite_featureset: Done";
}