Show
Ignore:
Timestamp:
03/02/10 22:26:12 (5 months ago)
Author:
dane
Message:

restore default behavior of PointSymbolizer when used without an image, by defaulting to 4x4 black pixel - TODO - expose colors, shapes, and size for this in the future

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/cairo_renderer.cpp

    r1656 r1657  
    732732{    
    733733    std::string filename = path_processor_type::evaluate( *sym.get_filename(), feature); 
    734     boost::optional<mapnik::image_ptr> data = mapnik::image_cache::instance()->find(filename,true); 
     734    boost::optional<mapnik::image_ptr> data; 
     735     
     736    if ( filename.empty() ) 
     737    { 
     738        // default OGC 4x4 black pixel 
     739        data = boost::optional<mapnik::image_ptr>(new image_data_32(4,4)); 
     740        (*data)->set(0xff000000); 
     741    } 
     742    else 
     743    { 
     744        data = mapnik::image_cache::instance()->find(filename,true); 
     745    } 
    735746        
    736747    if ( data )