Mostrando entradas con la etiqueta Tutoriales. Mostrar todas las entradas
Mostrando entradas con la etiqueta Tutoriales. Mostrar todas las entradas

martes, 10 de julio de 2012

A multiresolution tool and a personal goodbye

In this post we´d like to show a short tutorial on how to use the new multiresolution tool that is included in the latest build of the 3D extension for gvSIG 2.0. We can see how working with a huge dataset of points can be very taxing for the performance, making the system unresponsive and difficult to work. This new tool allows us to massively improve the performance with a very small hit on visual quality. We hope this tool can be useful for you!


I´d like to use this post also as a personal goodbye. It´s been a fantastic time here working in the AI2. Who´d had said I´d be working here for so long when I joined the team as an intern to work on my Final Project 5!! years ago?
Time passes quickly and now it´s the moment to move on and try new challenges. Here I have worked with an amazing group of people and I´d like to have some words for each of them:

-Rafa Gaitan, you are probably the most talented person I´ve had the chance to meet. As a boss, you´ve been always very helpful and understanding, knowing how to get the best of all of us. I´ll never thank you enough for the countless times you have helped me to solve problems in a matter of minutes that it´d taken me days.

-Jordi Torres, you had a tough job when you inherited Rafa´s position within the team, but you knew how to keep the unity in the team and have become a brilliant team leader in the end. I really appreciate the hard work you have been doing to keep this boat afloat in this difficult moments. The group is in good hands as long as you´re there.

-Maria Ten: You were the first to leave us some months ago, but even so, whenever we have needed your help you´ll find the time for it. I know it must´ve been a little hard to be the only girl around here, even if you won´t admit it. It was a pleasure to work with you!

-Leonardo Salom: We have never worked in the same project, but we´ve shared each other´s successes and frustrations. I want to thank your support in the difficult moments, as you´ve always been there.

-Javier Lluch: Thanks for giving me the oportunity to work here and thanks for trying to keep the group as long as has been possible. Congratulations for your new job!

-Jorge Izquierdo: The last to arrive and altough we haven´t worked in the same project, I enjoyed our conversations about technology, videogames, etc (politics not so much, hehehe) I think you are very capable person, with the right attitude you´ll do great.

I´d like to mention too some people from the AI2 with whom I´ve had very good moments; Enrique Medina, David Anes, Eduard Martorell, Joan Blasco, Marcos Martí, Oscar Ripollés and José Luis Hidalgo.

To end this post, I´d like to say that even thougth I leave this job, I´ve been assigned as Mantainer of the 3D Extension for gvSIG 2.0, so I´ll still be part of the gvSIG project for the time being.

Good bye everyone and keep the good job!

viernes, 3 de febrero de 2012

Loading netCDF Files in gvSIG 3D (for gvSIG 2.0 series)

Hi all,

We are very busy preparing an upcoming Workshop for España Virtual project, but we think it could be interesting to show to you these new features: loading raster and vectorial netCDF files.

This work has been done with the kindly help of Nacho Brodín and Jorge Piera, both from Prodevelop. Thank you guys!!

First video shows gvSIG 3D loading a raster netCDF file and working with it.



The second one shows a ship travel vectorial netCDF file, and how to apply a time filter.



Sorry for this short explanation, more videos are coming soon!

jueves, 10 de noviembre de 2011

Animation video tutorial

Hi all!

This time we want to share a contribution from Mario Carrera, from the gvSIG team. It explains how to make an animation with the animation extension. He is kindly explaining 3D extension on meetings and conferences where we are not able to be. Thanks for that too Mario :) . 

As you know, we are near the 7th International gvSIG Conference and the ai2 team will be there talking about 3D extension. We will post soon about the contents here and in the gvSIG Blog.

Check the gvSIG videos section and the gvSIG3D youtube channel  for more tutorials!


viernes, 9 de septiembre de 2011

Patch to load cityGML models in gvSIG 1.11 + 3D extension

Hi community!

We are working again after a great holydays. This time we want to share with you our advances in the scope of the Project "España Virtual". For this reason we have done a backport for gvSIG 1.11 of a new feature we are working on: to load cityGML models.

The implementation is based on the library libcitygml[1]. This open source project is still in development and we'd like to thank to Joachim Pouderoux (the main developer) for his kindly help. 

The work is in progress, but we think it is a good moment to let the community to test this new feature. The patch is only available for linux (we expect to upload the patch for windows in a few days) and the instructions to install it are very simple:
  1. Download the file for your Operating System from[2]. 
  2. Make sure you have installed gvSIG-1.11[3] and the final release of 3D extension[4].  
  3. Extract the compressed file in the folder you installed gvSIG-1.11, overwriting the folders bin and libs.
  4. Run gvSIG 1.11 and follow the next video tutorial! :)



Important note: cityGML files must be renamed as .citygml, otherwise the osg loader won't be able to load the models.

[1]http://code.google.com/p/libcitygml/
[2]http://www2.ai2.upv.es/difusion/gvsig3d/citygml_patch/
[3]http://www.gvsig.org/web/projects/gvsig-desktop/official/gvsig-1.11/downloads
[4]http://www.gvsig.org/web/projects/gvsig-desktop/official/gvsig-1.10/extensiones-gvsig-1.10/extension-3d/downloads

miércoles, 26 de enero de 2011

Build a SHP with Z values from CSV ready to use in gvSIG 3D



- Español -

En este tutorial, explicaremos como construir un SHP de puntos con un valor Z para cada uno a partir de un archivo CSV (fichero de texto separado por comas).

Para hacer este tutorial necesitaremos:

- Un fichero CSV con los valores separados por comas, donde la primera fila son los nombres de las columnas:

X,Y,Z,Value
570373,4759206,919.00,4558.033732
569900,4757435,395.00,10601.35443
573725,4761400,1165.00,3594.570815


- La herramienta de linea de comandos "ogr2ogr" disponible en FWTools [1].

NOTAS:

1) Podemos crear archivos Virtual Format (.vrt) para crear otros SHP. Las opciones para la creacion de archivos Virtual Format esta disponible en [2]. El fichero utilizado en el video contiene el siguiente código:

<OGRVRTDataSource>
     <OGRVRTLayer name="data">
          <SrcDataSource relativeToVRT="1">data.dbf</SrcDataSource>
          <SrcLayer>data</SrcLayer>
          <GeometryType>wkbPoint25D</GeometryType>
          <GeometryField encoding="PointFromColumns"
x="X" y="Y" z="Z"/>
     </OGRVRTLayer>
</OGRVRTDataSource>


2) El primer comando del video crea un fichero ".dbf" a partir del archivo CSV.
ogr2ogr -f "ESRI Shapefile" [carpeta_destino] [archivo_csv]

Podemos crear este fichero con la herramienta exportar tabla de gvSIG y saltarnos este paso.

3) El segundo comando genera el SHP a partir del DBF. Es muy importante que la carpeta destino sea distinta a la del archivo DBF para no sobreescribirlo:
ogr2ogr -f "ESRI Shapefile" [carpeta_destino] [archivo_vrt]


Actualización


En algunas versiones de ogr2ogr es necesario indicar el fichero dbf de datos dentro del archivo vrt. Si no os funciona como en el video debeis editar el fichero vrt incluyendo el dbf como fichero fuente de datos y ejecutar el siguiente comnado añadiendo el nombre del archivo shp de salida:

ogr2ogr -f "ESRI Shapefile" [carpeta_destino\archivo.shp] [archivo_vrt]


- English -

In this tutorial, we explain how to build a points SHP file with Z values from a CSV file.

We need the following tools to do this tutorial:

- A CSV file with comma separated values, where the first row is the column names:

X,Y,Z,Value
570373,4759206,919.00,4558.033732
569900,4757435,395.00,10601.35443
573725,4761400,1165.00,3594.570815


- The command line tool "ogr2ogr" available on FWTools [1].

NOTES:


1) We can create Virtual Format files (.vrt) to build different SHP files. The Virtual Format options are explained at [2]. The file used in the video has the following code:

<OGRVRTDataSource>
     <OGRVRTLayer name="data">
          <SrcDataSource relativeToVRT="1">data.dbf</SrcDataSource>
          <SrcLayer>data</SrcLayer>
          <GeometryType>wkbPoint25D</GeometryType>
          <GeometryField encoding="PointFromColumns"
x="X" y="Y" z="Z"/>
     </OGRVRTLayer>
</OGRVRTDataSource>


2) The first command shown in the video, builds a ".dbf" file from CSV:
ogr2ogr -f "ESRI Shapefile" [carpeta_destino] [archivo_csv]

We can build a ".dbf" file using the "Export from table" tool in gvSIG and avoid this command.

3) The second command builds the SHP file from a DBF. We need specify a different destination directory of the current dbf directory to avoid overwriting the file:
ogr2ogr -f "ESRI Shapefile" [destination_directory] [vrt_file]



Update


Some ogr2ogr versions needs to specify the dbf file into vrt code. If you are following the video tutorial and it doesn't works, try to modify the vrt file including the dbf file as data source and execute this command adding the shp output filename.

ogr2ogr -f "ESRI Shapefile" [destination_directory\file.shp] [vrt_file]


--

[1] Download GDAL binaries from: http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries
[2] Virtual Format Files: http://www.gdal.org/ogr/drv_vrt.html

martes, 29 de junio de 2010

Changing the layer properties. Legend and labelling.

En el siguiente vídeo veremos cómo cargar un archivo SHP y modificar la forma en la que se visualiza su información sobre el mapa. En este caso, trabajaremos con un archivo que contiene un conjunto de puntos georreferenciados representando ciudades del mundo. Una vez cargado el archivo, cambiaremos la representación de los puntos, haciendo que las ciudades pertenecientes a un mismo país aparezcan con el mismo color. Por último, etiquetaremos los puntos mostrando el nombre de la ciudad que representan. Utilizamos un tipo especial de texto que oculta aquellas etiquetas que se encuentran detrás de otras, facilitando así su lectura.

In the next video we show how to load a SHP file and modify how its data is represented in the map. In this case, we work with a file that contains a set of geopositioned points representing cities of the world. Once the file is loaded, we change the color of the points, making the cities of the same country share the same color. Finally, we add labels to the points, showing the name of the cities. We utilize a special type of text that hides labels that are behind others, improving the readability.



viernes, 28 de mayo de 2010

Stereoscopic and display modes support tutorial


- Español -

En este vídeo tutorial se va a demostrar la capacidad de visualización estereoscópica de gvSIG 3D además de las posibilidades de visualización que la herramienta ofrece.

Tal y como se observa, en el vídeo, existen dos botones que nos facilitan lo que estamos buscando. El de modos de visualización y estéreo y el de pantalla completa .

Los modos de visualización nos permiten elegir el modo de estéreo que se desea y algunos parámetros que permiten ajustarlo. La distancia entre los ojos puede variar levemente entre una persona u otra, así como la distancia a la que se encuentra la pantalla. La distancia de fusión es el punto a partir del cual los objetos representados salen por detrás del plano de la pantalla (profundidad) o por delante (salen flotando).

Con estos valores, gvSIG 3D calcula automáticamente cuál es la mejor forma de separar las dos imágenes para luego combinarlas correctamente con el modo de estéreo elegido.

El modo de pantalla completa, permite configurar gvSIG 3D, para mostrar la vista activa en pantalla completa. Además permite cambiar algunos parámetros como elegir que pantalla se desea utilizar, por si se hacen uso de varias pantallas o por si lo que se requiere es una ventana suelta de visualización.

Además en las últimas revisiones se añadió soporte (sólo en pantalla completa), para un modo de visualización específico para monitores auto-estereoscópicos Philips WowVX (3D sin necesidad de gafas).

- English -


This video tutorial shows the stereocopic capabilities and display modes than gvSIG 3D offers to the users. There are two buttons that gives us access to the required tools: the stereo visualization tool and the fullscreen tool

Visualization modes allow us to select the stereo mode and change the parameters to set it up. The interocular distance could slightly  change between different people. The same occurs with the screen distance. Fusion distance is the required distance where rendered objects appear back to the display plane or in front of it (floating).

With all of this parameters, gvSIG 3D automatically calculates which is the best mode to separate the two stereo images.

The full screen tool allow us to set up the active 3D view in full screen. It also allows change some parameters like the active display (if you have more than one displays) or if you prefer a single independent windowed 3D view.

Lastest versions of gvSIG 3D add support for a specific full screen mode for the auto-stereoscopic displays Philips WowVX (3D without glasses).



martes, 25 de mayo de 2010

Editing 3D Objects Video Tutorials

En los siguientes vídeos vamos a ver ejemplos de uso de las herramientas de edición de modelos 3D, ampliamente mejoradas en el último build de gvSIG3D (14). Estas herramientas permiten importar modelos creados en programas como Google Sketchup (Collada .dae) o 3DStudio (.3ds), entre otros, y realizar transformaciones sobre ellos en la vista de gvSIG.

Following videos show some examples of the edition tools implemented in the last gvSIG3D build (14). These tools allow to import models created with applications like Google Sketchup (Collada .dae) or 3DStudio (.3ds) and apply transformations to them inside gvSIG.


En el primer vídeo podemos observar la carga, traslación y escalado de un modelo de la "Ciutat de les Arts i les Ciencies de Valencia", posicionándolo en su lugar sobre una capa raster de la ciudad.


First video shows how to load, translate and scale a 3D model. In this case we are loading a model of the "Ciutat de les Arts i les Ciencies" of Valencia. We place the model in its right position over a raster layer.



En el segundo video se muestra la capacidad de editar varios modelos al mismo tiempo, permitiendo agruparlos y desagruparlos para una mayor facilidad de uso.

Second video shows how to work with more than one object at the same time, allowing us to group and ungroup them.




En el último vídeo, se utilizan las herramientas de traslación y rotación para adaptar la posición del objeto sobre la superficie de una capa de elevación que se encuentra inclinada.

Last video shows the use of the rotation tool to adapt the object position to a sloping surface of an elevation layer.




viernes, 21 de mayo de 2010

Using a contour file shp as elevation data in a 3D view (with Sextante) - Video tutorial

Español

En este tutorial aprenderemos como convertir un archivo shp con cotas de elevacion para utilizarlo posteriormente en una vista 3D. Utilizando la extensión de Sextante (disponible en la web de gvSIG), podemos convertir ficheros vectoriales para conseguir nuevas fuentes de datos para nuestros proyectos 3D, tal y como se muestra en el siguiente video.

English

In this tutorial, we will learn how to convert a contour lines shp into a raster file with elevation data ready to use into a 3D View. Using the Sextante extension (available on gvSIG web), we can convert our vector files to get new data sources for the 3D view as shown in the following video.

martes, 20 de abril de 2010

Rasterize SHP layers and apply Transparency - Video Tutorial

Español

Esta vez vamos a aprender a rasterizar capas vectoriales y a aplicar transparencia sobre ellas. En el video se observa como variar la transparencia dinámicamente hasta lograr el nivel deseado.

English

This time we are going to learn to rasterize vectorial layers and to apply transparency to them. The video shows how to vary the alpha value until the desired level is achieved.


jueves, 1 de abril de 2010

Loading Elevation Layers - Video Tutorial

Español

En el siguiente video se puede observar cómo se carga una capa de elevación en formato geoTiff en gvSIG. Como se explicó previamente en un tutorial anterior, la exageración vertical puede ser ajustada para conseguir los resultados deseados. Esperamos que sirva de ayuda.

Felices Pascuas!

English

In the next video we show how to load an elevation layer (geoTiff) in gvSIG. As you can see in a previous tutorial, vertical exaggeration can be adjusted to meet your needs. We hope this helps.

Happy Easter holydays!

miércoles, 10 de febrero de 2010

Extrusion - Video Tutorial

En este videotutorial se muestra cómo extruir una capa de polígonos en relación a un campo "ALTURA" que pertenece a la misma capa. Esta operación también podría aplicarse dando una altura fija a los polígonos extruidos.

La extrusión de geometrías se puede utilizar en muchos ámbitos, siendo una ayuda importante a la hora de categorizar los datos por parte del usuario. Para extruir polilíneas o puntos el proceso es muy parecido.

Esta vez el sistema operativo utilizado es MacOSX-SnowLeopard, con la versión para Mac con Sextante y navTable que sacó Agustín Díez de gvsigmac.blogspot.com




Y en nuestro próximo capítulo de esta serie de tutoriales veremos cómo georreferenciar modelos geométricos (3ds, obj, ive) en nuestra vista 3D.

lunes, 1 de febrero de 2010

Tutorial - exageración vertical en gvSIG3D

Cuando creamos una nueva vista en gvSIG3D, aparece un parámetro llamado exageración vertical que podemos modificar en ese mismo momento o a posteriori. La exageración vertical no es más que un factor de escala que se aplica sobre los datos de un modelo digital de terreno. Cuando este factor es igual a 1, obtenemos una representación fiel a los datos, sin embargo si el valor es mayor que 1, lo que hacemos es multiplicar este factor por cada dato para exagerar las elevaciones. Del mismo modo si aplicamos un valor menor que 1, lo que estamos haciendo es reducir las elevaciones.

Normalmente, este factor de escala se utiliza para crear vistas más espectulares de las zonas montañosas. Sin embargo, este factor también se puede utilizar para ajustar los valores de nuestros datos y obtener una representación fiel a la realidad. Veamos un ejemplo de como realizar esta operación.

Disponemos de un archivo .tif en escala de grises que representa una zona montañosa del norte de España. Al añadirlo como capa de elevación con una exageración vertical de 1.0 obtenemos el siguiente resultado:

Como se puede apreciar en la imagen, a pesar de poner un factor de escala igual a 1.0, las elevaciones que estamos visualizando no se corresponden con la realidad. Esto es debido a que al cargar un fichero tif como elevacion, gvSIG3D espera que cada unidad del gradiente de gris corresponda a una unidad en metros. Sin embargo, cuando cargamos datos de un archivo no siempre sabemos en que unidades están o que respresenta cada valor de gris, como sucede en este caso.

Para solucionar este problema, lo que vamos a realizar es tomar ciertos puntos de altura conocida como referencia y ajustar el valor de exageración vertical. En nuestro caso, hemos cargado una capa vectorial con datos de las poblaciones de España. En la siguiente imagen, vemos que hay varias ciudades que se situan sobre nuestra capa de datos de elevación:


Utilizando la herramienta Información de gvSIG podemos averiguar que valores tiene la capa raster que hemos utilizado como datos de elevación. Para ello, seleccionamos la herramienta Información y nuestra capa de elevaciones. Posteriormente pinchamos con el cursor sobre el punto de interés conocido, en nuestro caso la ciudad de Artigas. Inmediatamente, se nos mostrará una ventana con la información del raster en dicho punto:


El valor que se utiliza para representar la altura es el Band_Value. Como vemos en la tabla,el raster nos esta dando un valor de 1126 para la ciudad de Artigas, cuando en la realidad la ciudad se situa a tan solo 201m. Llegado este momento, solo tenemos que realizar una simple operación para calcular el factor de escala que debemos aplicar:

exageración vertical(0.1785) = altura_real(201) / Band_value(1126)

Por tanto, debemos aplicar una exageración vertical de 0.1785 a nuestra capa y obtendremos el resultado deseado:


martes, 26 de enero de 2010

Docking Skin - Video Tutorial

Hi all,

First of all is to say that we have decided to write some posts in english and some posts in spanish. We apologize for possible errors when writting in english.

One of the integration problems of the 3D extension in gvSIG was the windowing system. The 3D graphics windows are usually dependents on the operative system. So in Java/Swing and using JInternalFrame for the user interface, is not possible to merge correctly the system dependent windows and the Swing painted windows.

There exists various solutions:
  • GLJPanel: This is the adopted solution in JDialogSkin. JOGL (The java api used to create 3D windows), allows us to create a JPanel that merges correctly with swing and also allows to draw OpenGL. The problem is that under linux the performance of the system is really slow, and only is useful in parts where the view doesn't changes so much. The maximize buttons are not available in some platforms.
  • Docking System based on Swing: A docking windowing system fits all the application views inside a main window. Usually this systems allows the personalization of the views and even undock some windows. The gvSIG Docking skin is based on Infonode Docking Windows [1].
Currently most applications are designed in the same way, OpenOffice manage multiple documents but you can only work with the active in a specific window.

This first video tutorial is centered in how docking skin works. No layers are added but three different views are created and managed in different modes.






[1] http://www.infonode.net/index.html?idw