Apuntes del taller de GeoServer

These are the notes I took on the GeoServer workshop at the last gvSIG Conference.
More information.

It is important to change the settings of the geoserver_data_dir in the web.xml file to keep the data each time you restart the application container (like Tomcat). It is also good to check out the other settings as it contains interesting facts such as the type of projections to be used or the size of the cache. There are configurable data on the fly and data not configurable on the fly.

Let’s try adding some data sources to generate the layers. To add a shapefile, you have to copy the file in the same physical server machine. To include the shapefile in GeoServer, look for the option of adding a new shapefile datastore type. If you use the location “file: data /…” you use a relative uri to geoserver. You can also search using the “Browse” and use absolute paths.

Warning: Do not you give permission to any user on the configuration interface because they can see all the physical hard disk in this type of dialog.

It is best to use memory mapped buffers (unless you use Windows) if you have enough RAM, then you will avoid continuous access to physical disk. Also, it is best to reproject from native to declared projection. If the shapefile is very big, calculate the bounding box take some time. This does not happen in real databases where spatial indexes.

GeoServer allows you to insert watermarks in your data (for example to use OpenStreetMap).

When you use database connections, you should check the validate connection option, because you never know when the connection is going to crash.

GeoWebCache allows, on the latest version of GeoServer, to set up easily which layers will be cached.

You can use data which varies through time, for example for storms and hurricanes. On the database table, you will have a column for time. You can also use elevation data, but then you have to use it with Google Earth. The interesting thing is that, once you have the data, some hipothetical free visor can be used to support it…

Apuntes del taller GvSIG 2.0

Estos son los apuntes que tomé sobre gvSIG 2.0 en las últimas Jornadas GvSIG.

Pre-requisitos:

  • Java
  • Eclipse
  • Ant (preferiblemente)
  • Maven (preferiblemente)
  • gvSIG (esto es recursivo :))

La principal ventaja de gvSIG 2.0 es que puedes crear un plugin sin saber cómo funciona gvSIG ni tener que compilarlo. Tenemos una instalación de gvSIG que despliega unos binarios que genera el workspace. Pero no tenemos que tocar los fuentes de gvSIG, salvo que algo no funcione (bugs) o haya que añadir alguna funcionalidad al núcleo. Preferentemente no lo toques, mejor consulta con los desarrolladores del núcleo de gvSIG y ellos intentarán encargarse.

This are the notes that I took over gvSIG 2.0 on the latests Jornadas GvSIG.

Pre-requisites:

  • Java
  • Eclipse
  • Ant (should)
  • Maven (should)
  • gvSIG (this is recursive :))

The main advantage of gvSIG 2.0 is that you can create a new plugin without knowing how does gvSIG work or having to compile it. We already have a gvSIG installation that deploys the binaries to the workspace. But we don’t have to change the source code of gvSIG, unless something doesn’t work (bugs) or we have to add some new functionality to the core. Better if you don’t touch it,ask the gvSIG developers and they will take care.

Guía para compilar gvSIG 2.0

Me llena de orgullo y satisfacción compartir con vosotros los pasos que hay que seguir para trabajar con gvSIG, pasos descubiertos gracias a la voluntariosa ayuda de algunos compañeros de gvSIG, a los que pude conocer en las últimas Jornadas GvSIG.

Aunque se puede encontrar una guía más completa en la documentación oficial, estos sencillos pasos te permitirán personalizar y compilar tu propia versión de gvSIG 2.0 sin muchos problemas.

I am proud to share with you the steps to compile gvSIG 2.0, which I discovered thanks to some fellows of gvSIG, whom I met thanks to the latests Jornadas GvSIG.

Although you can find a full guide on the official documentation, this simple steps will let you customize and compile your own gvSIG2.0 version withouth much trouble.

Continue reading Guía para compilar gvSIG 2.0