Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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 at 23:41

Your Answer

 
discard

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.