Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have twitter data with coordinates such as: [-7.2377761, 112.73091137]

I'm working with a python geo library called osgeo. The sample code indicates creating a point like this.

point = osgeo.ogr.Geometry(osgeo.ogr.wkbPoint)
point.SetPoint(0, 474595, 4429281)

The values above do not look like lat/lon. How do I perform the conversion?

share|improve this question
up vote 4 down vote accepted

There is nothing in your Question to suggest that you need to perform a conversion.

Instead, I would try:

point = osgeo.ogr.Geometry(osgeo.ogr.wkbPoint)
point.SetPoint(0, 112.73091137, -7.2377761)

The original values look like they are from a projected coordinate system whereas you appear to be receiving Twitter data in a geographic coordinate system but both are just numbers.

share|improve this answer
You are right. Dumb question. Thank you. – Prashanth Ellina Feb 27 '14 at 23:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.