# Map Problems

**URL:** <https://community.dhis2.org/t/map-problems/999>\
**Category:** Support - Assistance technique\
**Created:** [17 November 2010 10:21 UTC](https://community.dhis2.org/t/map-problems/999 "2010-11-17T10:21:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [17 November 2010 10:21 UTC](https://community.dhis2.org/t/map-problems/999/1 "2010-11-17T10:21:17Z")

</div>

Hi Roger,

Copying this to the user list, since others are likely to encounter  
the need for reprojection. I will update the docs also.

> > There may be something wrong with my shapefile to GeoJSON conversion.  
> > The polygon vertices are looking like 254808.379, 1999087.952 while lat/lon  
> > of an interior point is 9.82,-2.68. Does ogr use the .prj file or do I have  
> > to pass params on the command line?

Your .prj file has the following content:

PROJCS["Accra\_Ghana\_Grid",GEOGCS["GCS\_Accra",DATUM["D\_Accra",SPHEROID["War\_Office",6378300,296]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943299]],PROJECTION["Transverse\_Mercator"],PARAMETER["False\_Easting",900007.2200889268],PARAMETER["False\_Northing",0],PARAMETER["Central\_Meridian",-1],PARAMETER["Scale\_Factor",0.99975],PARAMETER["Latitude\_Of\_Origin",4.666666666666667],UNIT["Foot\_Clarke",0.30479726499999998]]

Pasting this tool [http://prj2epsg.org/search](http://prj2epsg.org/search) yields a lot of  
possibilities, but I would think EPSG 2136 - Accra / Ghana National  
Grid would be right.

To convert this to lat/lon, you have to pass reprojection parameters  
on the command line like this:  
ogr2ogr s\_srs EPSG:2236 a\_srs EPSG:4326 -f GML filename.gml filename.shp

Alternatively, you could use the excellent open source Quantum GIS  
tool ([http://www.qgis.org](http://www.qgis.org)), which has now incorporated ogr in the  
latest version (1.5).

Knut

> **···**
>
> > On Wed, Nov 17, 2010 at 10:38 AM, Friedman, Roger (CDC/CGH/DGHA) (CTR) \> \<rdf4@cdc.gov\> wrote:

---

<div class="post-metadata">

**Author:** ![Knut\_Staring](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/knut_staring/32/32549_2.png) [@Knut\_Staring](https://community.dhis2.org/u/Knut_Staring)\
**Post date:** [17 November 2010 10:35 UTC](https://community.dhis2.org/t/map-problems/999/2 "2010-11-17T10:35:27Z")

</div>

In fact, you could probably also use the .prj file directly, like this  
(I think):

ogr2ogr s\_srs projectionfile.prj a\_srs EPSG:4326 -f GML filename.gml  
filename.shp

[http://help.nceas.ucsb.edu/GDAL](http://help.nceas.ucsb.edu/GDAL)

> **[OGR2OGR Cheatsheet](http://www.bostongis.com/PrinterFriendly.aspx?content_name=ogr_cheatsheet)**
>
> Boston GIS a testbed for GIS mapping services focusing on Boston Massachusetts

Knut

> **···**
>
> On Wed, Nov 17, 2010 at 11:21 AM, Knut Staring \<knutst@gmail.com\> wrote:
> 
> > > On Wed, Nov 17, 2010 at 10:38 AM, Friedman, Roger (CDC/CGH/DGHA) (CTR) \>\> \<rdf4@cdc.gov\> wrote:
> > > 
> > > > There may be something wrong with my shapefile to GeoJSON conversion.  
> > > > The polygon vertices are looking like 254808.379, 1999087.952 while lat/lon  
> > > > of an interior point is 9.82,-2.68. Does ogr use the .prj file or do I have  
> > > > to pass params on the command line?
> > 
> > Your .prj file has the following content:
> > 
> > PROJCS["Accra\_Ghana\_Grid",GEOGCS["GCS\_Accra",DATUM["D\_Accra",SPHEROID["War\_Office",6378300,296]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943299]],PROJECTION["Transverse\_Mercator"],PARAMETER["False\_Easting",900007.2200889268],PARAMETER["False\_Northing",0],PARAMETER["Central\_Meridian",-1],PARAMETER["Scale\_Factor",0.99975],PARAMETER["Latitude\_Of\_Origin",4.666666666666667],UNIT["Foot\_Clarke",0.30479726499999998]]
> > 
> > Pasting this tool [http://prj2epsg.org/search](http://prj2epsg.org/search) yields a lot of  
> > possibilities, but I would think EPSG 2136 - Accra / Ghana National  
> > Grid would be right.
> > 
> > To convert this to lat/lon, you have to pass reprojection parameters  
> > on the command line like this:  
> > ogr2ogr s\_srs EPSG:2236 a\_srs EPSG:4326 -f GML filename.gml filename.shp
> > 
> > Alternatively, you could use the excellent open source Quantum GIS  
> > tool ([http://www.qgis.org](http://www.qgis.org)), which has now incorporated ogr in the  
> > latest version (1.5).
> > 
> > Knut
> 
> --  
> Cheers,  
> Knut Staring
