12

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

7

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

6

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.
3

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

3

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

2

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.