Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 22, 2006
  1. @artemp
Commits on Dec 21, 2006
  1. @artemp

    1. is_regular is not supported in boost 1.33.*

    artemp authored
    2. cleanups
Commits on Dec 20, 2006
  1. @artemp

    1.added more accessors

    artemp authored
    2.in tiff_reader check for valid file prior opening.
Commits on Dec 18, 2006
  1. @artemp

    use PNG_MMX_CODE_SUPPORTED instead of PNG_ASSEMBLER_CODE_SUPPORTED (m…

    artemp authored
    …mx.patch from Dominic Hargreaves)
Commits on Dec 17, 2006
  1. @artemp

    added 'transparent' named colour = Color(0,0,0,0) (from Luiz Vital)

    artemp authored
    TODO: support transparency for any background colour.
  2. @artemp
  3. @artemp

    Added DESTDIR option which is used as an additional prefix for the pu…

    artemp authored
    …rposes of
    
    installing files. It is useful for binary distributions (eg
    RPM etc). Thanks to Dominic Hargreaves!
  4. @artemp

    added support for right to left languages by using

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

    Jean-Francois Doyon authored
Commits on Dec 7, 2006
  1. @artemp

    updated to latest mapnik

    artemp authored
  2. @artemp

    applied from patch from Krzysztof Godlewski :

    artemp authored
        reflects scale_denominator(..) into Python
  3. @artemp
  4. - Ignore some build-only files.

    Jean-Francois Doyon authored
Commits on Dec 6, 2006
  1. @artemp

    added query_point method that accepts lat,lon coordinates :

    artemp authored
    >>> 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. @artemp

    implemented query_map_point method on map object:

    artemp authored
       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. @artemp
  2. @artemp

    added method 'render' with old signiture

    artemp authored
        render(...)
        C++ signature:
        render(mapnik::Map, mapnik::Image32 {lvalue}) -> void*
  3. @artemp

    oops, fixed

    artemp authored
  4. @artemp

    1. placement_finder.cpp

    artemp authored
        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
  1. @artemp
  2. @artemp
Commits on Dec 1, 2006
  1. @artemp

    fixed png reader bug :

    artemp authored
    fill alpha channel with 0xff on expansion
  2. @artemp

    features at point impl

    artemp authored
  3. @artemp
  4. @artemp

    Reflect featureset and feature classes in Python. Featureset follows …

    artemp authored
    …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.
  5. @artemp

    fixed indefinite loop conditions when len=1

    artemp authored
    -   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;
        }
  6. @artemp

    1.added missing float4 (pg_type OID 700)

    artemp authored
    2.removed printing "..unknown type_oid .."
  7. @artemp

    Tiling patch from Toby allows for a selected pixel region within an e…

    artemp authored
    …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. @artemp
  2. @artemp

    updated to reflect new params

    artemp authored
  3. @artemp
  4. @artemp
  5. @artemp

    opps, fixed license note

    artemp authored
Commits on Nov 28, 2006
  1. @artemp
  2. @artemp
Something went wrong with that request. Please try again.