Permalink
Switch branches/tags
Commits on Dec 22, 2006
Commits on Dec 21, 2006
  1. 1. is_regular is not supported in boost 1.33.*

    artemp committed Dec 21, 2006
    2. cleanups
Commits on Dec 20, 2006
  1. 1.added more accessors

    artemp committed Dec 20, 2006
    2.in tiff_reader check for valid file prior opening.
Commits on Dec 18, 2006
  1. use PNG_MMX_CODE_SUPPORTED instead of PNG_ASSEMBLER_CODE_SUPPORTED (m…

    artemp committed Dec 18, 2006
    …mx.patch from Dominic Hargreaves)
Commits on Dec 17, 2006
  1. added 'transparent' named colour = Color(0,0,0,0) (from Luiz Vital)

    artemp committed Dec 17, 2006
    TODO: support transparency for any background colour.
  2. Added DESTDIR option which is used as an additional prefix for the pu…

    artemp committed Dec 17, 2006
    …rposes of
    
    installing files. It is useful for binary distributions (eg
    RPM etc). Thanks to Dominic Hargreaves!
  3. added support for right to left languages by using

    artemp committed Dec 17, 2006
    the fribidi library (patch from Ehud Shabtai, thanks!)
Commits on Dec 16, 2006
  1. Update the link to the data license.

    Jean-Francois Doyon committed Dec 16, 2006
Commits on Dec 7, 2006
  1. updated to latest mapnik

    artemp committed Dec 7, 2006
  2. applied from patch from Krzysztof Godlewski :

    artemp committed Dec 7, 2006
        reflects scale_denominator(..) into Python
  3. - Ignore some build-only files.

    Jean-Francois Doyon committed Dec 7, 2006
Commits on Dec 6, 2006
  1. added query_point method that accepts lat,lon coordinates :

    artemp committed Dec 6, 2006
    >>> for f in m.query_point([ layer.name for layer in m.layers ].index('world'),51,0):
    ...     print f
    ...
    
    feature (
      f_code:FA001
      fac_id:193
      id:3147
      na2:UK
      na3:E
      nam:ENGLAND
      tile_id:10
    )
    
    >>>
  2. implemented query_map_point method on map object:

    artemp committed Dec 6, 2006
       fs = m.query_map_point(x,y)  # Map (screen) coordinates
       for feature in fs:
           print feature
    
    TODO: provide interface to feature in Python, at the moment only __str__ implemented which dumps attributes
Commits on Dec 5, 2006
  1. added method 'render' with old signiture

    artemp committed Dec 5, 2006
        render(...)
        C++ signature:
        render(mapnik::Map, mapnik::Image32 {lvalue}) -> void*
  2. oops, fixed

    artemp committed Dec 5, 2006
  3. 1. placement_finder.cpp

    artemp committed Dec 5, 2006
        fixed 'for' loops to work correctly when geom->num_points() < 2
        always use prefix increment even for built-in types (good practice!)
        e.g ++i 
    
    2. agg_renderer.cpp 
        check for number points in geometries when 
        applying text/shield_symbolizer.
Commits on Dec 4, 2006
Commits on Dec 1, 2006
  1. fixed png reader bug :

    artemp committed Dec 1, 2006
    fill alpha channel with 0xff on expansion
  2. features at point impl

    artemp committed Dec 1, 2006
  3. Reflect featureset and feature classes in Python. Featureset follows …

    artemp committed Dec 1, 2006
    …Python iterator protocol e.g:
    
        ds = Shapefile(file="/../..")
        for f in ds.features_at_point(Coord(-2,51)):
            print f
    TODO: 
        1.access to Feature properties
        2.feature_at_point to accept screen coordinates
        3.apply hit_test for geometries.
  4. fixed indefinite loop conditions when len=1

    artemp committed Dec 1, 2006
    -   while(abs(sx - lp.x1) + abs(sy - lp.y1) > lp2.len)
    +   while(abs(sx - lp.x1) + abs(sy - lp.y1) > 1 + lp2.len)
        {
            sx = (lp.x1 + sx) >> 1;
            sy = (lp.y1 + sy) >> 1;
        }
  5. 1.added missing float4 (pg_type OID 700)

    artemp committed Dec 1, 2006
    2.removed printing "..unknown type_oid .."
  6. Tiling patch from Toby allows for a selected pixel region within an e…

    artemp committed Dec 1, 2006
    …xtent
    
    to be rendered. This allows for a large extent (larger than can be
    rendered into a single image in memory) to be rendered out as tiles.
    Since the full extent is used for the placement calculations text
    crossing tile boundaries will be consistent.
    
    This method is a little inefficient when a large number of labels need
    placed, an improved method would be to cache these placements between
    tiles, but the attached is a start.
    
    c++ users should simple call the render method with a start X and Y
    coordinate specified, 
    
    for (int TileX = 0;TileX < 5;++TileX)
    {
    	for(int TileY = 0;TileY < 5; ++TileY)
    	{
    		int TileSize=250;
    		int StartX = TileX*TileSize;
    		int StartY = TileY*TileSize;
    		
    		Image32 buf(TileSize,TileSize);
    		agg_renderer<Image32> ren(m,buf,StartX,StartY);
    		
    		ren.apply();
    		char name[324];
    		sprintf(name,"tile_%d_%d.png",TileX,TileY);
    		ImageUtils::save_to_file(name,"png",buf);
    	}
    }
    
    python users should call render_tile_to_file
    
    for y in range(tile_count_y):
    	for x in range(tile_count_x):
    		if not os.path.exists("tiles/%d/%d/" % (map_scale, y)):
    			os.makedirs("tiles/%d/%d/" % (map_scale, y))
    		render_tile_to_file(m, x*tile_size, y*tile_size, tile_size, tile_size,
    'tiles/%d/%d/%d.png' % (map_scale,y,x), 'png')
Commits on Nov 29, 2006
  1. updated to reflect new params

    artemp committed Nov 29, 2006
  2. don't calculate extent by default

    artemp committed Nov 29, 2006
  3. opps, fixed license note

    artemp committed Nov 29, 2006
Commits on Nov 28, 2006
  1. do not assert on empty dbf files

    artemp committed Nov 28, 2006