[OSM-talk] Help to import Rio de Janeiro city data to OSM - misaligned shapefiles
Arlindo Pereira
openstreetmap at arlindopereira.com
Fri May 14 04:42:18 BST 2010
The PRJ files says:
PROJCS["SAD_1969_UTM_Zone_23S",GEOGCS["GCS_South_American_1969",DATUM["D_South_American_1969",SPHEROID["GRS_1967_Truncated",6378160.0,298.25]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",10000000.0],PARAMETER["Central_Meridian",-45.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]
ogr2ogr/ogr2osm.py seems to be aware of it:
nighto at inspiron1525:~/Projetos/basegeo$ python ogr2osm.py ciclovias.shp
/usr/lib/python2.6/dist-packages/osgeo/gdal.py:99: DeprecationWarning:
ogr.py was placed in a namespace, it is now available as osgeo.ogr
DeprecationWarning)
([], ['ciclovias.shp'])
Preparing to convert file ciclovias.shp (extension is shp) into
ciclovias.osm
Will try to detect projection from source metadata, or fall back to
EPSG:4326
Parsing features
Detected projection metadata:
PROJCS["SAD_1969_UTM_Zone_23S",
GEOGCS["GCS_South_American_1969",
DATUM["South_American_Datum_1969",
SPHEROID["GRS_1967_Truncated",6378160.0,298.25]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",10000000.0],
PARAMETER["Central_Meridian",-45.0],
PARAMETER["Scale_Factor",0.9996],
PARAMETER["Latitude_Of_Origin",0.0],
UNIT["Meter",1.0]]
['Codigo', 'Nome', 'Fonte', 'area', 'len']
Got layer field definitions
Nodes: 2055
Way segments: 2018
Lines: 54
Areas: 0
Joining segments
Simplifying line segments
Simplifying area segments
Simplifying remaining nodes
Nodes: 2055
Original way segments: 2018
Segment join operations: 1964
Lines: 54
Areas: 0
Generating OSM XML...
Generating nodes.
Generated nodes. On to lines.
Generated lines. On to areas.
All done. Enjoy your data!
Thanks
2010/5/14 maning sambale <emmanuel.sambale at gmail.com>
> This is usually a datum shift/SRS issue. Check if you have the
> correct projection and datum of the shapefile. Ths is contained in
> the prj file (filename.prj)
>
>
> On Fri, May 14, 2010 at 11:30 AM, Arlindo Pereira
> <openstreetmap at arlindopereira.com> wrote:
> > Hi there,
> > I just managed to get the permission to import import the city government
> > data into OSM. However, I'm not able to import it to JOSM successfully.
> > The data is on different shapefiles, that for greater convenience I
> mirrored
> > on my webserver:
> > http://nighto.net/rio.zip
> > http://nighto.net/rio/
> > I found out that the easiest way to have an .osm file editable on JOSM
> would
> > be using Iván's ogr2osm.py [1] and it worked out pretty well. However,
> the
> > tracks are misaligned with the tracks I already have collected with GPS
> > (which is aligned to the Yahoo! imagery, so they're not bad tracks).
> Please
> > check this
> > screenshot: http://img534.imageshack.us/img534/7035/capturadetelak.png
> In
> > this example, i converted the "ciclovias.*" files (cycleways) to .osm,
> > opened in JOSM and downloaded this area. The shapefile converted way is
> > selected (red) and the OSM (captured with GPS) is in dark grey.
> > Any ideas? I don't think that the government data is misaligned like
> that.
> > Also, selecting all the ways on the converted osm layer on JOSM and drag
> > over until they align with something that already exists could work out,
> but
> > there's probably a better way to do it. I thought about creating a shell
> > script to add/subtract the lat/lon numbers on all nodes, but maybe
> someone
> > would come out with a magical conversion that would work out perfectly :)
> > Thanks a lot!
> > Cheers,
> > Arlindo "Nighto" Pereira
> > 1:
> http://svn.openstreetmap.org/applications/utils/import/ogr2osm/ogr2osm.py
> > _______________________________________________
> > talk mailing list
> > talk at openstreetmap.org
> > http://lists.openstreetmap.org/listinfo/talk
> >
> >
>
>
>
> --
> cheers,
> maning
> ------------------------------------------------------
> "Freedom is still the most radical idea of all" -N.Branden
> wiki: http://esambale.wikispaces.com/
> blog: http://epsg4253.wordpress.com/
> ------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20100514/0243c022/attachment.html>
More information about the talk
mailing list