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 need to use very simple geometry operations (read SHP or other standard format and simple searches) within an embedded device running a simple linux based os.

What is the smallest and simplest API I could use?

It could be written in C/C++ or Python in order to allow the integration with my system.

Thanks,

Samuel

share|improve this question
    
do you care about licensing? –  Ragi Yaser Burhum May 18 '11 at 17:13
add comment

5 Answers

Check out Shapelib. It's a small C library for simple shapefile manipulation.

share|improve this answer
add comment

I can't make any claims about 'smallest' but a couple options are:

  • PySAL: Python Statistical Analysis Library. It can read shapefiles natively. You could include only the modules you need.
  • SpatiaLite: Store your data in a spatially-enabled SQLite database. SpatiaLite includes a feature called 'virtual shapefile' that allows you to directly access a shapefile and query it as if it were a database table without actually importing it.
share|improve this answer
add comment

There is a simple python tool here: http://www.axismaps.com/code.php

share|improve this answer
add comment

There has been some talk and proposal of such by the qgis community. see it here...
QGIS Wiki

share|improve this answer
add comment

What about pyshp and shapely? It is simple, efficient and well documented.

share|improve this answer
1  
+1 although you'll need the GEOS C++ library as well as Shapely on the device –  geographika May 18 '11 at 16:25
2  
pyshp is a very minimalistic python file: shapefile.py –  Mike T May 18 '11 at 20:01
add comment

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.