[OSM-dev] [OSM-talk] initializing an apidb database

Richard Welty rwelty at averillpark.net
Mon Sep 8 20:09:16 UTC 2014


On 9/8/14 2:16 PM, Paul Norman wrote:
> On 9/8/2014 10:50 AM, Richard Welty wrote:
>> i have the rails port installed (with postgresql) on an ubuntu 14.04
>> instance in the EC2 cloud. i have an extract (made of state boundaries
>> taken from TIGER 2013 data using ogr2osm) which i installed in
>> the db using osmosis. since osmosis insisted on positive ids i flipped
>> the sign on the extract before installing (using -read-xml and
>> -write-apidb)
>>
>
> cc'ing dev@ since this is more of a dev issues than a talk issue.
>
> ogr2osm has some hidden shoot-self-in-foot options for this situation,
> --positive-id, --add-version, and --add-timestamp. These are hidden
> because they are quite specialized, and can seriously screw up live
> OSM data if misused.
>
i read some of the commentary on them but since the underlying
documentation on the schemas seems a little sketchy i wasn't quite
sure how it all fit together.
> For the changeset, I'd take a PR to ogr2osm to add a --changeset
> option that allows you to specify a changeset. It should be basically
> a copy/paste of --add-version.
>
> Otherwise, some SQL could change the changeset number to 1.
>
> If you're just doing state boundaries, the easiest way might be to
> create an account on the instance and upload to it with conventional tools
is there a way to have the instance just use existing OSM credentials
for accounts?

richard

-- 
rwelty at averillpark.net
 Averill Park Networking - GIS & IT Consulting
 OpenStreetMap - PostgreSQL - Linux
 Java - Web Applications - Search


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20140908/9ef31aa4/attachment.sig>


More information about the dev mailing list