GIS Query

Happy New Year!

I am trying to convert a Transverse_Mercator Projection shapefile to a GML version before i can import it into the DHIS2 and i have religiously followed the Manual ( http://dhis2.org/doc/snapshot/en/user/html/ch16s02.html ) and the following is what i get…

C:\Program Files (x86)\FWTools2.4.7>ogrinfo -al -so D:\2013\GIS\Uganda_Dis
trict2010\Uganda_districts2010.shp
INFO: Open of D:\2013\GIS\Uganda_District2010\Uganda_districts2010.shp' using driver ESRI Shapefile’ successful.

Layer name: Uganda_districts2010
Geometry: Polygon
Feature Count: 112
Extent: (118484.040424, 36309.760250) - (722525.499898, 668071.000000)
Layer SRS WKT:
PROJCS[“WGS_1984_UTM_Zone_36N”,

GEOGCS["GCS_WGS_1984",

    DATUM["WGS_1984",
        SPHEROID["WGS_1984",6378137.0,298.257223563]],
    PRIMEM["Greenwich",0.0],
    UNIT["Degree",0.0174532925199433]],
**PROJECTION["Transverse_Mercator"],**

PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",200000.0],
PARAMETER["Central_Meridian",33.0],
PARAMETER["Scale_Factor",0.9996],
PARAMETER["Latitude_Of_Origin",0.0],

UNIT["Meter",1.0]]

D_06_ID: Real (6.1)
DNAME_2006: String (32.0)
AREA: Real (19.3)
PERIMETER: Real (19.3)
HECTARES: Real (19.3)
DNAME_2010: String (20.0)
SUBREGION: String (20.0)
COUNTRY: String (50.0)

C:\Program Files (x86)\FWTools2.4.7>ogr2ogr -s_srs Transverse_Mercator -t_srs
EPSG:4326 -f GML D:\2013\GIS\Uganda_District2010\Uganda_districts2010.gml
D:\2013\GIS\Uganda_District2010\Uganda_districts2010.shp

Failed to process SRS definition: Transverse_Mercator

Your help is highly welcome - thanks…

···

Blessings & regards

Martin Namutso | IT & GIS Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 ..

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,
Jason

···

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso <mnamutso@gmail.com> wrote:

WGS_1984_UTM_Zone_36N

Hi,

Are you trying to convert shape file coordinates to GML file is it ? have you simplified the shape file before converting ? If possible can you post what command you are using to convert gml file.

···

On Thu, Jan 3, 2013 at 4:14 PM, Martin Namutso mnamutso@gmail.com wrote:

Happy New Year!

I am trying to convert a Transverse_Mercator Projection shapefile to a GML version before i can import it into the DHIS2 and i have religiously followed the Manual ( http://dhis2.org/doc/snapshot/en/user/html/ch16s02.html ) and the following is what i get…

C:\Program Files (x86)\FWTools2.4.7>ogrinfo -al -so D:\2013\GIS\Uganda_Dis
trict2010\Uganda_districts2010.shp
INFO: Open of D:\2013\GIS\Uganda_District2010\Uganda_districts2010.shp' using driver ESRI Shapefile’ successful.

Layer name: Uganda_districts2010
Geometry: Polygon
Feature Count: 112
Extent: (118484.040424, 36309.760250) - (722525.499898, 668071.000000)
Layer SRS WKT:
PROJCS[“WGS_1984_UTM_Zone_36N”,

GEOGCS["GCS_WGS_1984",

    DATUM["WGS_1984",
        SPHEROID["WGS_1984",6378137.0,298.257223563]],
    PRIMEM["Greenwich",0.0],

    UNIT["Degree",0.0174532925199433]],
**PROJECTION["Transverse_Mercator"],**


PARAMETER["False_Easting",500000.0],
PARAMETER["False_Northing",200000.0],
PARAMETER["Central_Meridian",33.0],
PARAMETER["Scale_Factor",0.9996],

PARAMETER["Latitude_Of_Origin",0.0],


UNIT["Meter",1.0]]

D_06_ID: Real (6.1)
DNAME_2006: String (32.0)
AREA: Real (19.3)
PERIMETER: Real (19.3)
HECTARES: Real (19.3)
DNAME_2010: String (20.0)
SUBREGION: String (20.0)
COUNTRY: String (50.0)

C:\Program Files (x86)\FWTools2.4.7>ogr2ogr -s_srs Transverse_Mercator -t_srs
EPSG:4326 -f GML D:\2013\GIS\Uganda_District2010\Uganda_districts2010.gml
D:\2013\GIS\Uganda_District2010\Uganda_districts2010.shp

Failed to process SRS definition: Transverse_Mercator

Your help is highly welcome - thanks…


Blessings & regards

Martin Namutso | IT & GIS Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thanks & Regards,
Suneelkumar .ch
HISP India.

Hey Jason,

A quick one, its supposed to be ogr2ogr -s_srs EPSG:32636 … and not EPSG:32626

Thought i should re-share this…

···

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 …

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,

Jason

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso mnamutso@gmail.com wrote:

WGS_1984_UTM_Zone_36N

Hi Martin,

This is the actual command :

ogr2ogr -s_srs EPSG:27700 -t_srs EPSG:4326 -f GML filename.gml filename.shp

Here please change your EPSG values…

Hope this will work.

···

On Tue, Jan 8, 2013 at 11:49 AM, Martin Namutso mnamutso@gmail.com wrote:

Hey Jason,

A quick one, its supposed to be ogr2ogr -s_srs EPSG:32636 … and not EPSG:32626

Thought i should re-share this…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Thu, Jan 3, 2013 at 1:48 PM, Jason Pickering jason.p.pickering@gmail.com wrote:


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thanks & Regards,
Suneelkumar .ch
HISP India.

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 …

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,

Jason

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso mnamutso@gmail.com wrote:

WGS_1984_UTM_Zone_36N

Suneel - for my location it has to be the earlier one i shared correcting Jason’s reply!

Thanks though…

···

On Tue, Jan 8, 2013 at 11:49 AM, Martin Namutso mnamutso@gmail.com wrote:

Hey Jason,

A quick one, its supposed to be ogr2ogr -s_srs EPSG:32636 … and not EPSG:32626

Thought i should re-share this…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Thu, Jan 3, 2013 at 1:48 PM, Jason Pickering jason.p.pickering@gmail.com wrote:


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thanks & Regards,
Suneelkumar .ch
HISP India.

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 …

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,

Jason

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso mnamutso@gmail.com wrote:

WGS_1984_UTM_Zone_36N

K fine . Thanx

···

On Tue, Jan 8, 2013 at 11:55 AM, Martin Namutso mnamutso@gmail.com wrote:

Suneel - for my location it has to be the earlier one i shared correcting Jason’s reply!

Thanks though…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Tue, Jan 8, 2013 at 9:23 AM, Suneel Kumar Chevvu suneelkumar.chevvu@gmail.com wrote:

Hi Martin,

This is the actual command :

ogr2ogr -s_srs EPSG:27700 -t_srs EPSG:4326 -f GML filename.gml filename.shp

Here please change your EPSG values…

Hope this will work.


Thanks & Regards,
Suneelkumar .ch
HISP India.

On Tue, Jan 8, 2013 at 11:49 AM, Martin Namutso mnamutso@gmail.com wrote:

Hey Jason,

A quick one, its supposed to be ogr2ogr -s_srs EPSG:32636 … and not EPSG:32626

Thought i should re-share this…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Thu, Jan 3, 2013 at 1:48 PM, Jason Pickering jason.p.pickering@gmail.com wrote:


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thanks & Regards,
Suneelkumar .ch
HISP India.

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 …

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,

Jason

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso mnamutso@gmail.com wrote:

WGS_1984_UTM_Zone_36N

Hi Martin,
Was not 100% sure about the projection, but the important point is that you must use the correct EPSG reference number for the projection system for the source data. Of course, currently only the EPSG:4326 (lat/long) projection is supported by DHIS2, so for the time being, this will always be the target projection system.

Regards,

Jason

···

On Tue, Jan 8, 2013 at 8:31 AM, Suneel Kumar Chevvu suneelkumar.chevvu@gmail.com wrote:

K fine . Thanx

On Tue, Jan 8, 2013 at 11:55 AM, Martin Namutso mnamutso@gmail.com wrote:

Suneel - for my location it has to be the earlier one i shared correcting Jason’s reply!

Thanks though…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Tue, Jan 8, 2013 at 9:23 AM, Suneel Kumar Chevvu suneelkumar.chevvu@gmail.com wrote:

Hi Martin,

This is the actual command :

ogr2ogr -s_srs EPSG:27700 -t_srs EPSG:4326 -f GML filename.gml filename.shp

Here please change your EPSG values…

Hope this will work.


Thanks & Regards,
Suneelkumar .ch
HISP India.

On Tue, Jan 8, 2013 at 11:49 AM, Martin Namutso mnamutso@gmail.com wrote:

Hey Jason,

A quick one, its supposed to be ogr2ogr -s_srs EPSG:32636 … and not EPSG:32626

Thought i should re-share this…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Thu, Jan 3, 2013 at 1:48 PM, Jason Pickering jason.p.pickering@gmail.com wrote:


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thanks & Regards,
Suneelkumar .ch
HISP India.

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 …

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,

Jason

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso mnamutso@gmail.com wrote:

WGS_1984_UTM_Zone_36N

And you should definitely not use an arbitrary projection system. Suneel, the one which you mention is the British National Grid (http://spatialreference.org/ref/epsg/27700/) and would certainly not be appropriate for Martin’s projection system. So importantly, you should be very sure which projection system your source data is in and what it’s EPSG code is before you try and convert the data to something DHIS2 will like.

Regards,

Jason

···

On Tue, Jan 8, 2013 at 8:23 AM, Suneel Kumar Chevvu suneelkumar.chevvu@gmail.com wrote:

Hi Martin,

This is the actual command :

ogr2ogr -s_srs EPSG:27700 -t_srs EPSG:4326 -f GML filename.gml filename.shp

Here please change your EPSG values…

Hope this will work.

On Tue, Jan 8, 2013 at 11:49 AM, Martin Namutso mnamutso@gmail.com wrote:

Hey Jason,

A quick one, its supposed to be ogr2ogr -s_srs EPSG:32636 … and not EPSG:32626

Thought i should re-share this…


Blessings & regards

Martin Namutso | IT Specialist | Mob: +256 782 006 662

----- If you think education is expensive try ignorance! -----**“To oppose CORRUPTION in government is the highest obligation of patriotism.” ― G. Edward Griffin

On Thu, Jan 3, 2013 at 1:48 PM, Jason Pickering jason.p.pickering@gmail.com wrote:


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Thanks & Regards,
Suneelkumar .ch
HISP India.

Hi Martin,

Try

ogr2ogr -s_srs EPSG:32626 …

You need to provide the EPSG code for the projection system.

http://spatialreference.org/ref/epsg/32636/

Regards,

Jason

On Thu, Jan 3, 2013 at 12:44 PM, Martin Namutso mnamutso@gmail.com wrote:

WGS_1984_UTM_Zone_36N