200 reputation
6
bio website
location Seattle, WA
age
visits member for 2 years, 11 months
seen Jul 28 at 9:27

Dec
14
comment in python, srs.ExportToProj4() returns an empty string, why?
Kyle (continued), I don't know if those file details give a clue as to which is more recent, but as I say I believe I've tried them both and get the same result either way with this particular "Albers" file I'm using.
Dec
14
comment in python, srs.ExportToProj4() returns an empty string, why?
Kyle (continued), I was somewhat encouraged when doing a comparison of, for instance, the alaska file inside of my GDAL/projlib folder with the alaska file in my python's pyproj/data folder. They are both binary files but the former has a different header, starting with "CTABLE V2.0" and then differing from the latter file in various places for the next 100 bytes or so, and then after that the contents are the same. The latter directory also has the file FL, whereas there is no such file in the former directory.
Dec
14
comment in python, srs.ExportToProj4() returns an empty string, why?
Kyle, it's confusing to me. I am using GDAL 1.6, because my understanding is that's the latest one for which there are python bindings. In python I'm using osgeo, gdal, and pyproj, and I'm a bit confused as to which of those includes the others and which are independent. In any case, I have the path to the gdal binaries in "PATH", the path to the gdal data in "GDAL_DATA", and the path to the pyproj/projib set in "PROJ_LIB" -- all of those both as system environment variables and set via python's os.environ. All of this I've tried in various combinations always with the same error.
Dec
10
awarded  Commentator
Dec
10
comment Offline Phonegap/Openlayers App
Just write to a temp file, and when the write succeeds swap the names of the files and delete the old one.
Dec
9
comment Offline Phonegap/Openlayers App
I don't see how you can avoid rewriting the GeoJSON file, since the records are not fixed length. Why are you worried about writing the whole file?
Dec
8
comment Offline Phonegap/Openlayers App
PhoneGap gives you an API to write files to the device file system, right? So you can do whatever you want with the GeoJSON (or any other text data) in your JavaScript and then just save the file, right? It doesn't need to be wrapped up with OpenLayers' save strategy, right?
Dec
8
comment in python, srs.ExportToProj4() returns an empty string, why?
Mike Toews seems to think it's more of an osr error than a python error?
Dec
8
comment in python, srs.ExportToProj4() returns an empty string, why?
Thanks for doing this research.
Dec
8
accepted in python, srs.ExportToProj4() returns an empty string, why?
Dec
7
awarded  Teacher
Dec
7
comment in python, srs.ExportToProj4() returns an empty string, why?
Mike Toews, thanks very much for the info. Very helpful.
Dec
7
answered Get google maps small portion for offline application
Dec
7
comment Offline Phonegap/Openlayers App
Not to mention: even if you get that server running locally, where is it getting the tiles from? Do you have a store of all the basemap tiles you'll need?
Dec
7
comment Offline Phonegap/Openlayers App
I believe the bigger issue is that PhoneGap will need some sort of server to talk to. The OpenLayers running in phonegap will be requesting tiles from a server over http. There may be some trick to get a small web server running along with phonegap on the device, but I'm not sure. That's the bigger issue. Once you have that server in place, your client javascript can talk to it to make those edits (and possibly to serve your points to the client in the first place). Once that structural issue is solved, different file formats (geojson, etc.) could work for storing the data.
Dec
7
asked in python, srs.ExportToProj4() returns an empty string, why?
Jan
23
comment Looking for US National Grid to Lon/Lat Converter in Python, C, or C++
Thanks. I might use this as a last resort...
Dec
14
awarded  Tumbleweed
Dec
7
asked mixing lon/lat and mercator layers in a MapServer .map file
Nov
29
asked Looking for US National Grid to Lon/Lat Converter in Python, C, or C++