The act or process of planning or writing a computer program.

learn more… | top users | synonyms

45
votes
13answers
11k views

Resources for learning Python programming with generic GIS goals in mind?

In your opinion, what is the best book/site to learn Python with GIS goals in mind? By "best", I mean: not very long (book) easy to understand (book/site) good practical examples (book/site) For ...
9
votes
4answers
3k views

Code to calculate elevation profile along line from a DEM

Given a DEM (Digital Elevation Model) say in and a line (x1,y1) --> (x2,y2) (paired coordinates (x,y)), how can one calculate the elevation profile or cross-section projected on that line ? I am ...
19
votes
9answers
6k views

How do I develop my GIS programming skills?

I would like to develop my GIS programming skills, where do I start? People say learn C++ or Python but where can I learn this in a geographic context? Tutorials or anything would be very helpful, as ...
9
votes
5answers
3k views

Compiling Python Scripts that use ArcGIS Geoprocessing Tools?

I've been coding with Python for several months now and have developed some reasonably complex scripts for primarily geoprocessing tasks. That being said, I'm still learning a lot as I'm coming from a ...
19
votes
5answers
1k views

Looking for a developer-friendly web gis

I'm a recent Computer Science graduate who prides himself in his knowledge of software development and problem solving, but has no idea how gis systems work. (Read: I'm a programmer) I've been ...
7
votes
2answers
3k views

Generating GeoJSON with Python

Hi I want to programatically create a GeoJSON file using polygons from a shapefile but adding attributes from my own application. This is easily done for a shapefile: def ...
0
votes
1answer
85 views

Finding points in extent using VBA

Is there a way to select a point from my map's current extent? I want to use ArcObjects to tell me if there is at least one point visible in my extent. I'd like to do this entirely in VBA, and without ...
11
votes
9answers
2k views

What are the advantages of using Rails for a GIS/mapping application?

I've heard some good things about Rails, but I don't know much about it yet. There are only a few questions about Rails on GIS.SE (and there's not even a Rails tag). Is it worthwhile to learn about ...
7
votes
2answers
572 views

Is it a bad idea to hold references to ArcObjects inside business classes?

According to best practices is it a bad idea to cache features and geometries inside business objects? If it is bad, what is the alternative way? References to features may be replaced with their ...
10
votes
8answers
3k views

What programming languages are used by different GIS platforms?

Suppose a programmer has no knowledge of GIS, but wants to leverage his/her programming skills to get into GIS. Please list different GIS platforms, packages, etc. that use a particular language. (I ...
5
votes
2answers
201 views

Replacement for ArcScripts

Does an equivalent of ArcScripts exist? I know of the the ArcGIS resource center and "Code Galleries" but does something that equates to ArcScripts where users share useful ArcGIS code exist? The new ...
5
votes
2answers
5k views

Basic proj4 conversion UTM grid -> longlat and back

I'm a GIS novice, and am struggling to understand how to drive proj4 to accomplish what seems like a simple thing. I've googled for a couple of days, but everything I find seems to presuppose quite ...
4
votes
1answer
964 views

How to programatically populate a shapefile field with polygon areas in OGR?

I'm trying to programatically populate a shp field with polygon areas: import sys import ogr ds = ogr.Open( 'tttttttttt.shp', update = 1 ) if ds is None: print "Open failed./n" sys.exit( 1 ...
5
votes
2answers
812 views

How to efficiently determine if a collection of coordinates (polygon) is an ellipse?

I'm attempting to determine a geometry type based on a collection of coordinates and have come across a situation where I'd like to differentiate between what is a "polygon" and what is an "ellipse". ...