gvSIG 2.0: Forestry symbol library

One of the common areas of GIS use is forestry. Focus on these use cases, we have made a new symbol library. And, as usual, it is available from the “Add-On Manager“.

Following the steps defined in the series of post “gvSIG 2.0: Create symbol libraries” we have created this new symbol library. Let’s see how we have made it, so that it serves as a new example for users to create their own libraries.

For point symbols (markers) we started from two different sources:
– First, the collection of symbols used by the NPS (U.S. National Park Service). An excellent collection of public domain symbols.
– On the other hand, we used the font Trees & Shrubs done by Jim Mossman, also available by public domain.

To add symbols NPS, we followed the instructions made in this post. To fmake easier the identification of symbols, we have used a mass renaming tool files, because gvSIG names each symbol with the name of the file (in that case we used pyRenamer). By Inkscape we generated different selection symbols (coloring by yellow each symbol and appending “_sel” to the file name).

From that point is all ready to use gvSIG symbols importer. We import the symbols to “Forestry / NPS”. Automatically gvSIG creates the new library with the set of point symbols imported.foresty_point2As indicated in this other post we generate different SVG files that represent a set of trees and shrubs. We use the symbol importer, storing them in Forestry/Trees & Shrubs.Forestry_point1Besides point symbols, we wanted this library contains a set of lines and brush symbols commonly used in forest maps.

We generated linear symbols:Forestry_lineaAnd brush symbols:Forestry_relleno

Now we only have to create the package as it was explained in this post.

This package is available from the Add-On Manager (by selecting the URL http://downloads.gvsig.org/download/gvsig-desktop/ and searching for “Types / symbols”) or directly downloading the package from here.

Posted in english, gvSIG Desktop | Tagged | Leave a comment

gvSIG 2.0: “Emergency” symbols library

One of the fields which gvSIG is becoming more used in, is the emergency management, both in urban and natural disaster. With no doubt, spatial analysis gives a significant contribution to emergency management and other related fields like for example crime analysis.

Focused in these users, we generated a new symbol library which is, as usual, available from the gvSIG addons manager.

In the case of marker symbols we started from a set of symbols called “EMS. The Emergency Mapping Symbology” made by the Department of Natural Resources of Canada. As stated in http://emsymbology.org/EMS/docs/EMS_Symbology_v1.0.pdf it can be freely used. The symbols have been imported as usual (see this other post).

As in older cases, in order to ease the identification of the symbols, we used pyRenamer -a massive file renaming tool-, as the name that gvSIG gives to each symbols is just the file name.EMS_01

These symbols are designed for being used at a 32pixels size -with the aim of emphasize its importance in the map- and that’s why we imported exactly at this size, although if we reduce them to a lower size they look ok as well.

We used GIMP to generate the selection symbols. In this case, since some of the original symbols were yellow, we decided to represent the selection symbols in grayscale. From menu Image > Mode > grayscale we converted all the symbols and added “_sel” to the files name so gvSIG could use them automatically.

Apart from the marker symbols, we wanted that this library also contained a set of line and fill symbols, useful for emergency, crime etc. maps.

We generated both line symbols:EMS_02And fill symbols, inspired in the document Biosecurity Emergency Management – Mapping Symbology:EMS_03Finally we created an addon package as you can see in this other post.

This package is available within the gvSIG addons manager (selecting the URL http://downloads.gvsig.org/download/gvsig-desktop/ and searching by “Types/symbols”) or directly downloading the package from here.

Posted in english, gvSIG Desktop | Tagged | 4 Comments

gvSIG 2.0: OpenStreetMap tiles

gvSIG 2.0 improves the raster access incorporating the possibility to make tiles for the sources of this type of data, local or remote ones. The results is that the raster layers are loaded on the gvSIG view in small portions or tiles that allows the layer to be rendered progressively. The layers are divided in pre-establish levels with different resolutions and these tiles are generated for each level in executing time, that means when the requests for new areas are made (zooms) the tiles are generated.

But the best advantage of this system is that we can save all the tiles in a cache. At this way, the information that is downloaded from the servers don’t have to be asked for again once it has been done, because the next requests are served from the cached data, with the consequent efficiency improvement.

At this way, the incorporation of new data sources with this system of resolution pyramids is easy. Due to this possibility the development of a new plugin to access to the tiled layers from OpenStreetMap servers has been relatively easy. It’s because these servers serve data at this way and it’s totally compatible with the cache system that has been incorporated in gvSIG.

This plugin includes a basic access to the OpenStreetMap layers for viewing. Four servers are configured by default, that serve the Map Quest, Map Quest Open Aerial, Open cycle Map and Mapnik layers. At the same “Add layer” interface it’s possible to add new servers, so it doesn’t limit it only to the preconfigured data. The interface to do it is very intuitive and it doesn’t need any special explanation. In our opinion, this is an example about how we can take advantage of the base possibilities of gvSIG 2.0 effortlessly to develop a new functionality.

A problem with the OSM tiled layers in gvSIG is the projection. They are served in EPSG:3785 and gvSIG doesn’t include this projection originally. It’s possible to create it manually if we have the WKT string, but it’s not easy. In this case, the plugin will do it for us. Everytime it’s executed it will check if this EPSG exists in the gvSIG database and if it’s not included it will be created as a user projection. At this way we will be able to change the view to this projection for loading the cartography.

Another inconvenient that we can find is that once the information is at the cache it’s not updated, and if the information changes at the server we will continue loading old data. This is not a problem to load local layers, but it would be a problem for remote layers, like the OSM layers. We expect to improve it in the future to solve this problem.

Posted in english, gvSIG Desktop | 2 Comments

gvSIG 2.0: Create symbols libraries (III)

In the previous posts of the symbols series, we have seen how to create a symbols library form a set of images, realising some examples such as Google and OSM libraries.

It can be interesting as well to realize our own symbols library from different external sources. They can be made of letters, numbers or special characters as symbols or even graphic symbols.

As an example, we are going to use one source containing animal symbols.

After having downloaded it and installed in our system, we will transform it into images by using Inkscape, an open source software for vector editing that we have already mentioned in other posts.

To install a source it is only needed to open it with the typographic viewer of our operating system  and click on Install.

Zoo_01

Once installed it will be shown as part of the available fonts in Inkscape. Add text and, for example, if we write “ABCDEFGHI”, something like this will appear:

Zoo_02

We will transform these characters into single images in two simple steps:

  • Path/Object to Path: transform the character into image.
  • Object/Ungroup: create a single image for each character.

Then we have just to select each of them and save one by one as single file by “File/New”, assigning to any single document a size similar to the image ones. Cut and paste the image into this new document (for example the first, the caiman) and by “Object/Align and distribute” align it in the centre. Save it with a name easy to be identified (Caiman.svg). Done.

To have a different symbol when selected, fill the image with yellow colour and “Save as” with the same name but adding at the end “_sel”.

This action can be repeated to as many symbols we want to load. From now on, we only need to use the gvSIG symbol loader in order to have our new symbols library available in gvSIG.

Animals

Posted in english, gvSIG Desktop | 4 Comments

gvSIG 2.0: Gráficas I

Ya está disponible una nueva extensión de gvSIG 2.0 que nos permite trabajar con uno de los documentos más solicitados por la comunidad de usuarios: las gráficas. Las gráficas aumentan las posibilidades del usuarios de gvSIG de representar y analizar los datos, complementando la información proporcionada por los mapas.

Las gráficas tienen multitud de utilidades y, sin duda, son una forma sencilla y visual de comparar entidades, distribuciones, tendencias, etc.

Iniciamos con este post una nueva serie que permita conocer las posibilidades que gvSIG comienza a darnos para trabajar con gráficas.

Para instalar esta nueva funcionalidad seguiremos el procedimiento habitual, abrir el Administrador de complementos, seleccionar la opción de instalación desde URL, elegir el servidor http://downloads.gvsig.org/download/gvsig-desktop/ (en breve estará disponible también en los demás repositorios de gvSIG) y marcar para instalar el paquete Document: charts.

Una vez instalado, cuando reiniciemos nuestro gvSIG para ver reflejados los cambios, nos encontraremos con que disponemos de un nuevo tipo de documento.Gráficas_01

Para poder crear nuestra primera gráfica debemos tener alguna tabla disponible en nuestro proyecto de gvSIG, ya sea una tabla de atributos de una capa o una tabla al uso.

Vamos a hacer nuestra primera gráfica a partir de una tabla que contiene información de población de los países del mundo. Queremos hacer la gráfica sólo de los países de América del Sur, por lo que seleccionaremos estos antes de proceder a crearla.

Seleccionando el tipo de documento “Gráficas” y pulsando “Nuevo” ya tendremos el marco de trabajo de nuestra gráfica creada. Ahora simplemente nos falta indicar sus propiedades para poder visualizarla.Gráficas_02

Pulsamos el botón de añadir (botón representado con un “+”) y accedemos a la configuración del gráfico. Vemos que por defecto la extensión nos permite elegir entre 4 tipos de gráficos: de tarta, de XY, temporal o de barras.

En este caso vamos a hacer un gráfico de tarta.Gráficas_03

En la siguiente pestaña “Origen de datos” seleccionamos la tabla y los campos de datos que se utilizarán para el gráfico. En nuestro caso como Etiquetas utilizaremos el campo NAME (que contiene el nombre de los países) y para los valores numéricos el campo POP2005 (que tiene información de la población de estos países en 2005). Activamos la pestaña “Usar sólo campos seleccionados”.Gráficas_04

En la última pestaña vamos a poder definir el “Formato del gráfico” seleccionando propiedades como el color de fondo, contorno o tamaño.Gráficas_05

Todo listo, pulsamos “Aceptar” y ya veremos nuestro primer gráfico.Gráficas_06

Por cierto, un mismo documento puede estar compuesto de distintas gráficas, pero eso lo veremos en un siguiente post.

Por último os dejamos un par de vídeos que muestran la instalación de la extensión y los pasos seguidos para crear nuestro primer gráfico.

Nota: Si eres usuario de Windows, recuerda que para poder instalar cualquier extensión debes ejecutar gvSIG como administrador.

Posted in gvSIG Desktop, spanish | Tagged | 1 Comment

gvSIG 2.0: Thematic Maps I

Two available extensions, derived by the gvSIG Batoví project, add very interesting functions for gvSIG 2.0 users.

These two extensions are available through the add-ons manager as:

  • Thematic Maps generator
  • Thematic Maps viewer document

By using both of them it will be possible to work with a new type of document so called “Thematic Map”.

Thematic Maps” are, in truth, a new type of View offering to the user basic options of querying. The Project gvSIG Batoví aimed originally to provide students, from primary and secondary school, with a tool to easily share maps, without the complex tools available in the gvSIG interface. They can be also a nice base to produce cartographic viewers.

See how it is possible to produce  “Thematic maps” from any “View” and convert this “Thematic Map” in a package that can be installed from any gvSIG (through the add-ons manager). In such a way we can package a  “View” with its own legends, layers, labels and …and distribute to other gvSIG users.

For sure the best way to share information is the Spatial Data Infrastructures, but at small scale and for an easy sharing, “Thematic maps” can represent an interesting tool.

In this video, how to install the application is detailed:

When gvSIG restarts, a new document type appears.

Thematic_Map_menu

In this first post, we will see how to create a “thematic map” from a “View”.

Create a first thematic map from a  “View” with some loaded layers and customized. It is as simple as from our own “View” go to “Thematic Map” and select “Crete from View”. A new window appears where it will be possible to add the characteristics of our map.

 TM_compilation1

Press on “Next” and check that everything is fine. If any of the previous fields has not been filled, a warning appears, even if it is just for information since the procedure continues allowing users to create the “thematic map”.

Description field can be also used to provide information about use of specific symbols libraries in order that, users sharing this thematic map, know that they have to install that library to be able to correctly visualize the map.

 TM_compilation2

Press on “Finish” and  gvSIG automatically creates the new document:

Tematico_04

In the next post we will show how to create packages and share “thematic maps” with other users.

Posted in english, gvSIG Desktop, opinion, training | 3 Comments

gvSIG 2.0: OpenStreetMap, añadiendo nuevos servidores

Una de las pequeñas grandes mejoras que ha presentado gvSIG 2.0 es, en mi opinión, el acceso a la excelente fuente de datos que es OpenStreetMap. La extensión, liberada recientemente, se puede instalar facilmente a través del administrador de complementos de gvSIG (a través de URL seleccionando el servidor http://downloads.gvsig.org/download/gvsig-desktop/ y el paquete Formats: OpenStreetMap raster tiles support).

Como se comentaba en un post anterior, nos va a permitir acceder a las capas de Map Quest, Map Quest Open Aerial, Open cycle Map y Mapnik. gvSIG_OSM_00Una funcionalidad interesante que presenta esta extensión es que podemos añadir nuevos servidores.

Para ello simplemente debemos rellenar los datos del nuevo servidor en la ventana de Añadir capa/OSM.

Veamos un ejemplo añadiendo Terrain uno de los servicios de tiles de Stamen, de Estados Unidos, todos ellos de un excelente diseño.

  • Nombre. Podemos poner lo que queramos, un nombre que nos permita identificar el servidor.
  • URL. La URL del servidor: http://a.tile.stamen.com/terrain
  • Niveles. En este caso son: 17
  • Formato. En este caso es: jpg

Quedaría algo similar a la siguiente imagen:OSM_02Bastaría pulsar el botón de “Añadir servidor” para que pasará a formar parte de nuestro catálogo de servidores.OSM_01De todos los que ofrece Stamen, el que personalmente más me gusta es el que denominan Water Color. Vamos a añadirlo:

Ya sólo nos queda pulsar en “Añadir servidor” y se agregaría al conjunto de servidores disponibles.

Podéis probar a visualizarlo. Tened en cuenta que estos servidores, al contrario de los 4 que vienen por defecto, no todos ofrecen información de todo el mundo. En los casos que Stamen no tiene cobertura global, podéis hacer zoom a una ciudad de Estados Unidos y comprobar como se muestra la nueva información.
OSM_final

Posted in gvSIG Desktop, spanish | Tagged | 10 Comments

gvSIG 2.0: Teselas de OpenStreetMap

La versión 2.0 de gvSIG mejora el acceso ráster incorporando la posibilidad de teselar las fuentes de este tipo de dato, locales o remotas. El resultado es que las capas ráster se cargan sobre la vista de gvSIG en forma de pequeñas porciones o teselas que permite un renderizado progresivo de la capa. Las capas se dividen en niveles preestablecidos de distintas resoluciones y se generan estas teselas para cada nivel en tiempo de ejecución, es decir a medida que se van haciendo peticiones (zooms) de nuevas zonas se van generando las teselas o tiles.

Pero la mayor ventaja de este sistema es que podemos guardar en una caché todos los tiles. De esta forma, la información que se descarga desde los servidores no tiene que volver a pedirse una vez ya se ha hecho, ya que las siguientes peticiones se sirven desde los datos cacheados, con la consiguiente mejora de rendimiento.

De esta forma, la incorporación de nuevas fuentes de datos con este sistema de pirámides de resolución es fácil. Debido a esta posibilidad ha sido relativamente sencilla el desarrollo de un nuevo plugin para el acceso a las capas tileadas de servidores de OpenStreetMap, ya que, como es sabido, estos servidores sirven los datos de esta forma y es totalmente compatible con el sistema de caché incorporado en gvSIG.

Este plugin tiene un acceso básico a las capas de OpenStreetMap para visualización. Por defecto vienen configurado cuatro servidores que sirven las capas de Map Quest, Map Quest Open Aerial, Open cycle Map y Mapnik. En la propia interfaz de “Añadir capa” es posible agregar nuevos servidores, por lo que no nos limita a lo que viene preconfigurado. La interfaz para hacerlo es bastante intuitiva y requiere poca explicación. En mi opinión, este es un ejemplo de como, con poco esfuerzo se pueden aprovechar las posibilidades que de base ofrece gvSIG 2.0 para desarrollar funcionalidad.

Un problema que se presenta gvSIG con las capas de tiles de OSM es la proyección. Estas se sirven en EPSG:3785 y lamentablemente gvSIG no trae configurado de base esta proyección. Es posible crearla manualmente teniendo la cadena WKT, pero resulta algo engorroso. En este caso el plugin lo hará por nosotros. Cada vez que se arranca comprobará si existe este EPSG en la base de datos de gvSIG y si no está la creará como proyección de usuario. De esta forma ya podremos poner la vista en esta proyección para cargar la cartografía.

Otro inconveniente que podemos encontrarnos es que una vez la información está en la caché no se actualiza y si la información cambia en el servidor nosotros seguiremos cargando datos antiguos. Esto no es un problema para capas locales pero para capas remotas, como es el caso de OSM, pues si lo es. Esperemos poder disponer de mejoras que solucionen este problema.

Posted in gvSIG Desktop, spanish | Tagged | 4 Comments

gvSIG 2.0: Data in NetCDF

NetCDF is a data format oriented to scientific data in a multidimensional arrays way. That is, a list of variables with a concrete meaning (pressure, temperature, position…). It’s commonly said that it’s a data container of any type and auto-descriptive. It means that its contents is described in its header.

As generic container it has the advantage of storing raster as well as vector data, and they can be specified for different moments over time. It’s useful for storing on site data that are obtained from sensors where the information collection is periodic and the collected data are varied.

Two plugins have been developed for gvSIG 2.0, that offer support for NetCDF. Its integration in gvSIG has been made from the point of view of the same application, separating the support in two different data providers: raster and vector. It’s because its graphical representation in gvSIG is totally different. With the incorporation of this format, gvSIG can load and export data with time information.

But the time information requires a special treatment in any Geographic Information System, now that the user should be able to filter the information to be shown in a specific moment or in a temporary interval. Besides the user should be able to process the data taking the moment into account or even to be able to make animations throughout time. In this sense gvSIG has improved in an important way, because it incorporates this functionality (data filter by time and short animations). At this moment this tool has to be improved to make geoprocessing on layers with time information, besides integrating time support on the raster part. We hope to improve this issues in the future versions, although these plugins are available now.

Posted in gvSIG Desktop, opinion, spanish | 1 Comment

gvSIG 2.0: Biblioteca de símbolos “Emergency”

Uno de los ámbitos en los que gvSIG se está utilizando cada vez más es en el de gestión de emergencias, tanto a nivel urbano como de catástrofes naturales. Sin duda, es más que significativo el aporte que el análisis espacial puede suponer para la gestión de emergencias y campos relacionados como el análisis delictual.

Orientada a estos usuarios hemos realizado una nueva biblioteca de símbolos. Como es habitual disponible desde el “Administrador de complementos”.

Para los símbolos puntuales (marcadores) hemos partido de un conjunto de símbolos denominado “EMS.The Emergency Mapping Symbology”, realizado por el Departamento de Recursos Naturales de Canadá  que tal y como indican es de libre uso. La forma de importarlos ha sido la habitual, descrita en este post.

Como en casos anteriores hemos utilizado pyRenamer -una herramienta de renombrado masivo de archivos-, ya que el nombre que gvSIG da a cada símbolo es el nombre del fichero. El objetivo del renombrado es facilitar la identificación de símbolos.EMS_01Estos símbolos están diseñados para utilizarse con un tamaño de 32 píxeles -con el objetivo de resaltar su importancia en el mapa- por lo que los hemos importado a ese tamaño. Reduciéndolo a tamaños inferiores también se visualizan correctamente.

Mediante GIMP hemos generado los distintos símbolos de selección. En este caso, al haber símbolos con tonalidades de amarillo, hemos decidido que los símbolos de selección se representen en escala de grises. Con la opción de GIMP Imagen/Modo/Escala de grises hemos convertido los símbolos a escala de grises, añadiendo “_sel” al nombre del fichero para que gvSIG lo interprete automáticamente como símbolo de selección.

Además de símbolos puntuales, queríamos que esta biblioteca contuviera un conjunto de símbolos de líneas y relleno útiles para los mapas de emergencias, delitos,etc.

Hemos generado tanto símbolos lineales:EMS_02Como símbolos de relleno, inspirados en el documento Biosecurity Emergency Management – Mapping Symbology:EMS_03Ya sólo nos queda crear el paquete tal y como explicamos en este post.

Este paquete lo tenéis disponible desde el administrador de complementos (seleccionando la URL http://downloads.gvsig.org/download/gvsig-desktop/ y buscando por “Tipos/symbols)o directamente descargándolo desde aquí.

Posted in gvSIG Desktop, spanish | Tagged | 3 Comments