Commit Graph

40 Commits

Author SHA1 Message Date
4bece011c2 Add a caching level to the slim-mode with configurable size, so it actually
has decent performance.  It is implemented as a lossy sparse array with a
priority queue tracking how much of each block is used to ensure we maximize
the number of nodes we fit in the given amount of memory.

Also rearrange some header definitions.
2008-04-12 17:05:11 +00:00
35a16af0d0 Commit many new changes to osm2pgsql, including:
- list of tags read from file
- slim mode works again
- relations properly supported
- more efficient DB usage

It includes some restructuring of the code, in particular, the output module
manages the mid-level now and the main program doesn't call it at all. This
moves many of the previous hacks to the output module which can manage the
mid-level as appropriate for its output (i.e. slim mode requires different
semantics from ram mode)
2008-04-11 12:10:06 +00:00
550fc0186c Add support for a -E|--proj option which allows users to use any epsg
projection that be used by proj4's +init=epsg:<num> format.

Should help all those people wanting to do maps in different projections.
2008-03-22 17:58:18 +00:00
1aa10a62b4 osm2pgsql: Add authentication options (user, host, port, password). 2008-02-18 23:41:16 +00:00
02c37e10ac osm2pgsql: Add option to filter import with bounding box 2008-02-09 19:21:07 +00:00
163028afc2 osm2pgsql: Comment out the broken --slim mode. Export access= tag. Only create automatic parking symbols if there is no defined access= tag or access=public 2007-12-21 23:16:28 +00:00
ea5facd227 typo fixed 2007-12-15 15:41:33 +00:00
68e85dc22d Add support for a --prefix option so that you can easily run multiple mapnik
instances out of the one DB. The default is ofcourse still "planet_osm" so
if you don't use it you won't see a difference. I did however need to change
the names of the indexes so they don't clash also, but this is unlikely to
break anything.
2007-11-23 16:54:07 +00:00
80d0ea8996 Restructure the projection code so it can support more projections,
primarily the true spherical mercator used by Google, TileCache and others.
Add the -m option to select this. The default is still the incorrect
projection used before. Also display the used projection during processing.
Finally some minor cleanups to fix some warnings about undefined functions.
2007-11-20 08:51:03 +00:00
7bde0b3b1e osm2pgsql: update to handle polygons with holes in 0.5 API (described using relations). The code is nasty but appears to work on small datasets. 2007-10-08 22:05:26 +00:00
ee4f3db1d1 Make changes for 0.5. 2007-10-07 11:24:01 +00:00
2fd0b3e35d osm2pgsql 0.07: Make UTF8sanitize optional since it is generally no longer required. Add option to output in latlong format 2007-09-07 22:22:47 +00:00
67338f9e3b osm2pgsql version 0.06. Add command line options to select database name, slim memory usage and appending of data. Ignore bound tag. Improve stdin reading. 2007-09-03 22:26:40 +00:00
2111a2940f osm2pgsql: Version 0.05. Cleaup progress output 2007-09-02 23:00:33 +00:00
8b3dbee0e9 osm2pgsql: Allow multiple .osm files to be imported simultaneoulsy, e.g. for lots of Tiger county.osm.gz files 2007-09-02 22:25:53 +00:00
9fb9b8e34b osm2pgsql 0.04: Further improve handling of polygons with holes. Reduce memory usage by about 10% 2007-08-19 18:45:46 +00:00
0c95559e25 osm2pgsql: Remove hard coded maximum IDs. Support negative IDs. Add RPM build target 2007-08-12 19:03:39 +00:00
4c8a2ac021 osm2pgsql: tidy up pgsql code, fix a few warnings and add some disabled code to render multiple name tags. No functional changes 2007-07-28 21:32:10 +00:00
df3f8073fb osm2pgsql: improve help text, allow - to be used again 2007-05-28 21:25:37 +00:00
440ce5c872 osm2pgsql - make experimental version current, move previous implementation to legacy 2007-05-07 21:35:03 +00:00
74081cbdc6 Added foot, horse, motorcar, bicycle and residence tags 2007-03-17 12:46:37 +00:00
4051a9a3c8 latest osm2pgsql generates one table per geometry type 2007-03-13 12:39:27 +00:00
2c436147f3 Remove duplicate suppression code since this provides little benefit now that the Tiger data has been removed (the source of almost all the duplicate data).
This allows the removal of the AVL & BST code and the ID field from the node/segment/way sctrucutres. This saves some memory and simplifies the code.

Fixed a memory leak in WKT which forgot to free the segment item.
Added counters for maximum node/segment/way IDs.
Split the assert(id) checks to make it obvious which is failing.
Cleaned up some white space.
2007-03-09 00:26:51 +00:00
d0c3516162 we cannot use anythig appart from 'text' data type 2007-02-27 12:13:04 +00:00
c1b014fad0 added 'bridge','building' and 'layer' tags 2007-02-27 10:52:25 +00:00
4bad37bc4d cluster planet on spatial index for extra speed 2007-02-24 19:26:21 +00:00
65fe6a9639 use geos to create geometries 2007-02-24 08:40:05 +00:00
1cd432d2c5 Make mapnik & osm2pgsql use NULL instead of empty strings in db 2007-02-21 23:14:01 +00:00
1e22b86df7 Added myself in place of unknown author 2007-02-21 22:43:02 +00:00
174674e04b osm2pgsql polygons for closed ways only 2007-02-12 19:42:05 +00:00
3be5413b2f osm2pgql filter duplicate segments in ways 2007-02-11 15:58:22 +00:00
cbda0741a2 up the max seg ids 2007-01-17 14:08:50 +00:00
df48eb0050 man_made added 2006-12-04 20:34:53 +00:00
4d931f19fd Improved version of osm2pgsql. Adds 'natural' attribute. Some alogorithm improvments to reduce run time. Optional duplicate way detection (at expense of RAM usage). 2006-12-03 01:01:24 +00:00
dad032d9a1 added natural type 2006-11-28 21:35:14 +00:00
f2a7ff93e1 add railways 2006-11-22 15:10:54 +00:00
ef6e260a33 add ops to geom col 2006-11-22 12:36:45 +00:00
d976fb05b9 change varchars to text 2006-11-22 11:41:20 +00:00
f76ac5b447 Handle missing nodes and segments instead of putting 0,0 into linestrings which was causing lots of rogue lines to appear on the map.
Improved linestring generation for non-contiguous ways.
Added a GIST index into the SQL output.
Corrected usage info and added a gzip example.
Removed some redundant lines.
2006-11-19 18:34:24 +00:00
dda6dd7257 Initial version of C implmentation of OSM to Postgresql converter 2006-11-17 10:12:46 +00:00