Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We've got a project coming up where we need to upload .zip of a shapefile, join the .dbf to some lookup tables, join to other tables also uploaded (one to many attributes for each feature), and ultimately generate GML following a defined XML schema. So the geometry in the GML will come from the Shapefile (lines and polygons) and the attribs will come from the core table and some additional uploaded tables.

No projection needed, no searching, no filtering. The system is a Java web app and we need to give the source out as open source when we are done (no proprietary code). We just need something simple, easy and modern.

Would you use Geotools for this or call ogr2ogr? Is geotools overkill in terms of complexity for this?

share|improve this question
up vote 1 down vote accepted

Since it's Java, I'd suggest using GeoTools as it seems to be the premier Java GIS library. It already has support for shapefiles and for writing GML. You might want to check this FAQ for more information.

As you'll be doing a web app, you might want to check Geomajas, too. It uses GeoTools as well.

Geomajas is a free and open source GIS framework which seamlessly integrates powerful server side algorithms into the web browser.

Here are its core features which you might find useful:

  • Integrated client-server architecture
  • Geometry and attribute editing
  • Custom attribute definitions
  • Advanced querying capabilities (CQL)
  • Out-of-the-box security
  • Extensible plug-in mechanism
  • Multiple front-end technologies
  • Cross browser support, without the need for browser plug-ins

enter image description here

share|improve this answer

Your Answer


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.