[OSM-dev] Can we do Optimisation of data to be imported in database?

Oliver Tonnhofer olt at omniscale.de
Thu Jun 23 12:51:28 BST 2011


Hi,

On 23.06.2011, at 13:19, Parveen Arora wrote:
> Hello Everyone,
> As we can import the OSM data file into the database using osm2pgsql,
> I want to know that can we optimise that data before importing.
> Means If I need only the Information of National Highways, what is the
> need of storing all the data in the database.
> So can I optimise the data before importing to the database.

you should have a look at imposm[0]. You can define custom mappings that only import the data you need (highways in your case). It can also create tables with generalized/simplified geometries.

[0] http://imposm.org


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn







More information about the dev mailing list