David Decotigny
43af6b62e8
font size depends on the zoom factor
2009-08-27 10:56:14 +02:00
David Decotigny
2d711b0653
use temporary files for the temporary shape files
2009-08-27 00:16:00 +02:00
David Decotigny
4573ed55d9
fixed: vert/horiz grid lines should now be displayed in all cases
2009-08-26 23:51:55 +02:00
Thomas Petazzoni
49e7a3ea34
Add PAris in README
2009-08-26 16:08:03 +02:00
David Decotigny
04ad0e0415
default png format is png256. Use png24 for 24 bits
2009-08-26 16:03:10 +02:00
Thomas Petazzoni
a193b03878
Toulouse and Arles as examples
2009-08-26 15:30:06 +02:00
David Decotigny
7a393b96c7
taking the zoom factor into account
2009-08-26 15:19:06 +02:00
David Decotigny
eb4cc82469
renamed map_index -> street_index
2009-08-26 11:38:41 +02:00
David Decotigny
9a5c0bef6c
major refactoring in package dir
2009-08-26 10:07:13 +02:00
David Decotigny
5f8d59a926
changed default colors
2009-08-26 09:31:43 +02:00
David Decotigny
e7785152c2
labels displayed
2009-08-26 09:16:45 +02:00
David Decotigny
0a718da0fe
allows to specify the font family
2009-08-26 08:48:18 +02:00
David Decotigny
8ceb0e158a
allows to specify multiple output files
2009-08-26 08:39:12 +02:00
David Decotigny
7f8bffdb17
fixed broken merge
2009-08-25 22:08:03 +02:00
David Decotigny
3bdb0c0dca
Merge commit 'max/master'
2009-08-25 22:04:24 +02:00
David Decotigny
7b56ae7877
check that the path to osm.xml is valid asap
2009-08-25 22:03:21 +02:00
Maxime Petazzoni
0ec693e687
Merge commit 'remotes/thomas/master'
...
Conflicts:
ocitysmap/__init__.py
2009-08-25 22:01:30 +02:00
Maxime Petazzoni
1503da36e2
Merge commit 'remotes/d2/master'
...
Conflicts:
ocitysmap/__init__.py
2009-08-25 21:55:46 +02:00
David Decotigny
8a85e78462
fixed a bug introduced by st_spheric_distance: the width it returns appears to be computed on the equator, not at the specified latitude. Doing the computation manually.
2009-08-25 21:51:23 +02:00
Thomas Petazzoni
acaf826828
Case insensitive prefix matching and street sorting
2009-08-25 21:14:33 +02:00
Thomas Petazzoni
cde45dae07
Avoid matching prefixes in street names
2009-08-25 21:13:10 +02:00
Thomas Petazzoni
36011c3044
Street kind matching and street name sorting
2009-08-25 20:53:24 +02:00
David Decotigny
1f3523ec80
cosmetics (comment)
2009-08-25 20:33:21 +02:00
Thomas Petazzoni
7ee78934a3
Restrict streets to named ones
2009-08-25 19:27:23 +02:00
David Decotigny
09e2d90839
the graphical aspect ratio has to follow the geographic spec
2009-08-25 18:29:18 +02:00
Thomas Petazzoni
64a1ac9a36
Humanization of square labels in street list.
2009-08-25 18:19:39 +02:00
David Decotigny
8b79b0b5dd
initial rendering: only the map and the grid
2009-08-25 16:59:41 +02:00
David Decotigny
c3a04fe267
new render_to_file method redenring to a file by way of the map_grid module. Also generates a grid file wrt the grid generated for the index
2009-08-25 16:59:11 +02:00
David Decotigny
4ff42f96af
using ocitysmap boundingbox object
2009-08-25 16:44:12 +02:00
Thomas Petazzoni
2125e959fc
README: document new example and dependencies
2009-08-25 16:26:24 +02:00
David Decotigny
e23eea02cf
Merge branch 'master' of git://surf.local/
2009-08-25 15:53:37 +02:00
David Decotigny
e066aa6d52
api documentation
2009-08-25 15:51:40 +02:00
David Decotigny
4195e6b792
cleaner api: the map class is able to generate the output files by itself
2009-08-25 15:43:33 +02:00
David Decotigny
eb2b0fa39a
cosmetics: changed the way the label style info is passed to the rendering functions. cosmetics for the file names in the example
2009-08-25 15:06:23 +02:00
David Decotigny
2e4bfc8143
Grid not sensitive to map's clipping. Rendering ps (eps not available in this version of PyCairo)
2009-08-25 14:55:26 +02:00
David Decotigny
3ec0beea45
complete version, should be ready, with doc and label style support
2009-08-25 12:29:44 +02:00
David Decotigny
e65a4f02ad
some basic cleaning of the api: envelopes everywhere
2009-08-25 11:36:32 +02:00
Thomas Petazzoni
1baa4c14e9
Add basic example in the README
2009-08-25 11:12:55 +02:00
David Decotigny
8f76e546e3
Merge branch 'master' of git://surf.local/
2009-08-25 11:12:46 +02:00
Thomas Petazzoni
10296eef79
Implement get_streets()
...
Implement (and use) the get_streets() function that returns a list of
the streets in the selected bounding box. Each street is associated to
the list of squares it intersects.
2009-08-25 11:11:28 +02:00
Thomas Petazzoni
9149500cb5
Store more informations in MapDescriptor
...
Store the width_square_count and height_square_count into the
MapDescriptor class for later usage.
2009-08-25 11:08:30 +02:00
David Decotigny
b4546d1588
new draft for the map+grid rendering code
2009-08-25 11:06:47 +02:00
Thomas Petazzoni
06fe60d32c
Implement MapDescriptor class
...
The MapDescriptor class contains the information needed to build and
render the map of a city.
2009-08-25 00:14:07 +02:00
Maxime Petazzoni
658db01852
Improve error messages and bounding box parsing.
2009-08-24 01:32:09 +02:00
Maxime Petazzoni
170a29526b
Fix how bounding boxes are defined.
...
Bounding boxes are now only defined by their two opposite corners, top left and
bottom right. Example:
./render.py -z "Centre ville" 3.5,4.2 6.5,7.5 Colomiers 0,0 10,10
2009-08-24 01:21:41 +02:00
Maxime Petazzoni
a8ab8eaec0
Add OCitySMap renderer program skeleton.
...
Run ./render.py --help for usage information.
2009-08-24 00:52:38 +02:00
Maxime Petazzoni
77abefe9b2
Initial ocitysmap commit.
2009-08-23 23:54:38 +02:00