6

I'm looking for a free and reasonably licensed alternative to ArcGIS Desktop (or maybe just ArcGIS Server). I'm quite new to GIS, so I'll state some of the things I want to be able to do and you can tell me what alternatives are out there.

I need to be able to convert from GML or Shapefile format to some GIS database format, (I bet I can't do this with GDAL/OGR but I'm not sure). And then I want to be able to programmatically query the database for assets of certain types within specified bounds. For instance, I would like to find all roads within a lat/long box and extract their names and their polyline representations.

At this point I am only interested in a programmatic API. I'm not interested in anything with a GUI.

nmtoken
  • 13,355
  • 5
  • 38
  • 87
John Berryman
  • 649
  • 1
  • 6
  • 8

3 Answers3

9

OGR can convert GML and/or shapefile to PostGIS, SpatiaLite and a number of other datastores, and has a well developed API. Both postgis and spatialite can support the kind of query you want, though I personally have not done so (actually depending on the details of your queries, you may be able to do all of it in OGR).

Glorfindel
  • 1,096
  • 2
  • 9
  • 14
matt wilkie
  • 28,176
  • 35
  • 147
  • 280
5

Based on your description, you will need the OGR library (to convert from GML/shape to your database) and a spatially enabled database (I would recommend PostGIS).

If you are happy with a raw database to query with SQL, that's all you need. There are plenty of postgres utility libraries, and one for your programming language of choice.

relet
  • 1,459
  • 12
  • 19
2

Free GIS Alternatives:

http://www.qgis.org/

http://udig.refractions.net/

http://www.openjump.org/

http://grass.itc.it/

Web GIS

http://mapserver.org/

http://geoserver.org/display/GEOS/Welcome

*Some require plugins or additional steps to incorporate your GIS requirements

Mapperz uses all of the above with Postgres (with Postgis) as the Spatial Database.

Mapperz
  • 49,701
  • 9
  • 73
  • 132
  • 1
    the first three don't answer the question, "I'm not interested in anything with a GUI". – matt wilkie Aug 23 '10 at 17:53
  • whups, sorry, I didn't notice the "no gui" requirement was added after your post. :) – matt wilkie Aug 23 '10 at 18:13
  • 1
    qgis can be compiled to your own spec with or WITHOUT a GUI if you so choose https://svn.osgeo.org/gdal/branches/1.4/gdal/ogr/ogrsf_frmts/gml/will convert your gml udig has a SDK again you can build your own from it http://udig.refractions.net/confluence/display/DEV/1+SDK+Quickstart OpenJump has too http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Working_with_GML hope it helps point you in the right direction. – Mapperz Aug 23 '10 at 18:23