Hot answers tagged programming
Edit: adding more links to GIS specific resources. GIS Lounge's GIS + Python page Python Geo-Spatial Development For straight python, his has been discussed thoroughly on Stack Overflow: How to learn Python? Newbie teaching self python, what else should I be learning? Fastest way to learn Python? How should I go about learning Python? The second ...
Try http://www.gis.usu.edu/~chrisg/python/2009/ in an attempt to get back on topic :-)
There is one blog post from Michalis Avraam that explains essential skills to succeed in GIS career which I think is well written. You will probably find lot of good advices there.
Probably not. None stand out. Your time would be much better spent learning Django/GeoDjango. Django is similar to Rails in that it's a web application framework. It uses Python rather than Ruby. The geospatial functionality is much more mature than GeoRuby. Ruby/Rails is a great platform to develop on but the spatial functionality isn't on par with ...
If you've got an GDAL/OGR dev environment (headers, libs), you could radically simplify your code by using Fiona. To read features from a shapefile, add new attributes, and write them out as GeoJSON is just a handful of lines: import fiona import json features =  crs = None with fiona.collection("docs/data/test_uk.shp", "r") as source: for feat in ...
Try something like this: dim f2 if [field1] = "foo" then f2 = "bar" end if Screen shot of this being used in the field calculator.
I like Chris Garrard's Python for Geoprocessing course materials. http://www.gis.usu.edu/~chrisg/python/2009/ Personally, I find programmatic manipulation of OGR/GDAL to be indispensable. With respect to finding the best fit for you, consider the software or geostack you wish to be most expert in (like ArcGIS, QGIS, PostGIS-GeoServer-OpenLayers), and then ...
First question: how much of this are you doing in Python? Are you just calling out to Geoprocessing tools or are you doing a significant amount of numeric analysis in Python? If the former, the bottlenecks likely live in the tools and using native code in your script won't buy you as much as some other clever workarounds. If the latter, then you may want to ...
If you're into open source GIS, I would recommend FOSS4G, 6-9 September in Madrid Barcelona this year. You have another week or so to submit an academic paper if you want to present.
Although this isn't really the direct answer to your question, qgis acts as a relatively simple GIS viewer which can access PostGIS. In addition to the main application -- which is a relatively complex piece of software -- the core of the qgis library can be 'pulled out' and used from an application written in C/C++ or (I believe, with some work) Python. ...
You dont need to program to do this - you just need a desktop mapping package and your data in a standard format. Standard formats include shapefiles for points, lines, and polygons, and geoTIFFs for raster (gridded image-type) data. I use the Open Source Quantum GIS, but there are other Open Source applications. Commercial GIS applications will be way too ...
The GRASS command r.profile performs this (documentation, source) and should provide a good basis for implementing a cross section, and is available under the GPL.
Maybe QGIS "Profile" plugin source code can be a start.
For Python GIS, see the FOSS4G 2010 python workshop and the corresponding slides A good start, mainly oriented on Pylons framework and Geoalchemy, the two main components of Mapfish Server Edit : Do a git clone https://github.com/elpaso/python-gis-workshop see into the pdf all the links related to GIS for python and enjoy !
i am currently developping a rails app with some mapping capabilities, and i really love ruby and RoR, but sadly enough there is very little plugins mature enough for a complex WMS/WFS service. But i just want to add that the recent rGeo library does quite a good job with projections (proj4 bindings and ability to use other APIs), integrates smoothly with ...
You have to use lyr.SetFeature(i) to trigger the update in your shape file. You'll have to close the data sources in the end so things get written. import sys import ogr ds = ogr.Open( 'tttttttttt.shp', update = 1 ) if ds is None: print "Open failed./n" sys.exit( 1 ) lyr = ds.GetLayerByName( "tttttttttt" ) lyr.ResetReading() field_defn = ...
Some geospatial scripting languages: 1) Python/Jython Python/Jython alone: Python and Jython can be used alone for processing geospatial data without any software, using modules like osgeo (GDAL / OGR), PySAL, Shapely, Fiona, Pyshp,..., see Python Package Index, Topic:GIS or Geoscript (Jython). There are many examples on GST as scripting language in ...
Don't start with C++ and GIS without learning software development first. It's just too much. Python is a good place to start regardless of what GIS platform you go with later. There are a lot of books, websites and training materials available and a lot of colleges use python as an introduction before going on to the heavy duty programming languages, like ...
Go with 2010. I don't know any reason you'd pick 2008 over 2010 if you're developing with ArcGIS 10.
Dive Into Python. Good and free. Provides good intro to many basic Pythonic principles. Here's a shameless plug for a article I wrote for ArcUser on geoprocessing with Python.
I am surprised that no one has mentioned the official Python tutorial. I have been working through it on and off for the past couple of years, and I have found it to be both simple and helpful. http://docs.python.org/tutorial/
It won't be released in paper form until December, but Erik Westra's 'Python Geo-Spatial Development' from Packt Press looks promising: https://www.packtpub.com/python-geo-spatial-development/book I second Chris Garrard's materials at: http://www.gis.usu.edu/~chrisg/python/2009/ There are videos on general Python concepts and skills at Miro: ...
Using Fusion Tables and Google Maps you will be able to keep track of your campaign Topic Spotlight: Communicating demographics: Examples https://sites.google.com/site/fusiontablestalks/stories Fusion Mapper will give you a head start: http://earth.google.com/outreach/tutorial_fusion_yourowndata.html
Strictly from a learning perspective, learning something new is always worthwhile. However, Ruby/Ruby on Rails isn't extremely popular in the GIS world. Because of lack of popularity, I would suggest you pick up another language instead, such as Python, if your goal is to learn something new. I don't think you'll find any GIS-specific advantages to ...
In general this shouldn't be a problem but there are some objects in the ArcObjects library that you want to be very careful about managing their lifetimes so that you don't tie up critical resources or keep locks on database tables for extended periods. Among lots of other good info, in this thread James MacKay lists some of the types of objects you should ...
I've attended two ESRI UCs and got to go to the ESRI Dev Summit in Palm Springs this year. If you are drinking the ESRI Kool-Aid, then the Dev Summit is your best bet over the UC, in my opinion. Everything at the Dev Summit is developer-centric. Code everywhere. ESRI engineers everywhere. The engineers are at the UC as well, but not in such a massive ...
If you are interested in Open Source projects, you'll find the answers to this question helpful: What are the FOSS equivalents to these ArcGIS products? There are quite a lot of different options how to build an OS web mapping stack. Without knowing your use case it's a little difficult to suggest one over the other.
Two mapping websites built on ruby on rails I recommend: OpenStreetMap NYPL Map Rectifier
Only top voted, non community-wiki answers of a minimum length are eligible