As some of you might know already, some time ago we started to migrate all our tools (JGrasstools and Geopaparazzi, as well as the Nettools) to gvSIG. We are quite young in this community and we joined as an official member the gvSIG Association only at the begin of this year.
In the meanwhile we brought geopaparazzi support, the JGrasstools based Spatial Toolbox and the Epanet part of the Nettools into gvSIG.
Recently we were involved by one of the other association members, the Spanish Company DISIS, to develop with them the extrusion part for the 3D vector viewer integrated in gvSIG.
I am really thrilled by this cooperation, which brings us one more step towards the core of the community and also shows that there is movement in the gvSIG related Open Source Market.
The 3d properties of a vector layer can be accessed by right clicking on the layer and accessing the Properties entry in the context menu. By default the 3D tab will show up like this:
At the current time there are 3 different loading modes for vector layers:
The altitude of the features can be defined by two factors (and also be the sum of both):
There are 3 available elevation modes, which will consider the altitude differently:
For example this is how the clamp to ground option would look like:
We can see that the very coarse default terrain model in many parts covers the vectors. In this case it is possible to set the mode to relative to ground and apply a constant height to solve it:
In this case the altitude of the features can be defined by four factors:
There are 2 available elevation modes, which will consider the altitude differently:
Again we can apply a constant height to elevate the features over the terrain. Let's also try to use the number of the floors of the buildings instead of the altitude. In this cas we can apply a vertical exaggeration of 3 meters to simulate the correct building altitude:
The same layer and parameters, but without extrusion:
An example of points layer that do not have 3rd coordinates, but an absolute elevation in the attributes table. In this case the extrusion was picked and the absolute height taken from the elevation field in the attributes table:
Since the elevation is the one of the terrain, it is not possible to appreciate the extrusion effect. By adding a constant height to add as an offset, this is solved:
There is also a short video that shows 3D extrusion in gvSIG live here.
It has been great fun to implement this and also helped me know a new piece of the gvSIG internals, which is quite important right now.
So thanks to DISID for this, since our involvement in gvSIG they have always been very supportive to involve us and teach us to get up and running as fast as possible.
In the meanwhile we brought geopaparazzi support, the JGrasstools based Spatial Toolbox and the Epanet part of the Nettools into gvSIG.
Recently we were involved by one of the other association members, the Spanish Company DISIS, to develop with them the extrusion part for the 3D vector viewer integrated in gvSIG.
I am really thrilled by this cooperation, which brings us one more step towards the core of the community and also shows that there is movement in the gvSIG related Open Source Market.
A few notes about the extrusion plugin
From the version 2.3 of gvSIG on (well, right now the official release is not yet out), a 3d is available which allows the user to visualize layers in a Nasa World Wind 3d view. The user can select several loading modes for the layers.The 3d properties of a vector layer can be accessed by right clicking on the layer and accessing the Properties entry in the context menu. By default the 3D tab will show up like this:
At the current time there are 3 different loading modes for vector layers:
- Rasterized vector: the gvSIG vector layer will be rasterized as an image over the 3d view
- Vector: the features from the gvSIG vector layer will be transformed into 3d vectors and loaded in the 3d view
- Extruded Vector: the features from the gvSIG vector layer will be transformed into 3d vectors and loaded in the 3d view, with an applied extrusion, in order to obtain an effect of volume.
Vector
The Vector loading mode presents the following user interface:
The altitude of the features can be defined by two factors (and also be the sum of both):
- the 3rd dimension of the geometry, if available (3d shapefiles for example)
- the Constant Height parameter
There are 3 available elevation modes, which will consider the altitude differently:
- clamp to ground: in this case the features are clamped to the elevation model currently used in the 3d view. In this case the altitude definition will not be considered.
- absolute: in this case the elevation of the vector is given by the altitude, defined as absolute elevation over the sea level.
- relative to ground: in this case the elevation of the vector is given by the altitude, defined as relative elevation over the terrain.
For example this is how the clamp to ground option would look like:
We can see that the very coarse default terrain model in many parts covers the vectors. In this case it is possible to set the mode to relative to ground and apply a constant height to solve it:
Extruded Vector
The extruded vector loading mode adds a couple of parameters to the user interface:
In this case the altitude of the features can be defined by four factors:
- the 3rd dimension of the geometry, if available (3d shapefiles for example)
- a Height Field from the attributes table
- the Constant Height parameter
- the Vertical Exaggeration, which is a multiplication factor applied to the height
There are 2 available elevation modes, which will consider the altitude differently:
- absolute: in this case the elevation of the vector is given by the altitude, defined as absolute elevation over the sea level.
- relative to ground: in this case the elevation of the vector is given by the altitude, defined as relative elevation over the terrain.
Again we can apply a constant height to elevate the features over the terrain. Let's also try to use the number of the floors of the buildings instead of the altitude. In this cas we can apply a vertical exaggeration of 3 meters to simulate the correct building altitude:
Other examples
Example of a lines layer of isolines that have 3d coordinates. Here the extruded mode was selected and the absolute elevation mode was picked adding also a constant height of 50 additional meters:The same layer and parameters, but without extrusion:
An example of points layer that do not have 3rd coordinates, but an absolute elevation in the attributes table. In this case the extrusion was picked and the absolute height taken from the elevation field in the attributes table:
Since the elevation is the one of the terrain, it is not possible to appreciate the extrusion effect. By adding a constant height to add as an offset, this is solved:
There is also a short video that shows 3D extrusion in gvSIG live here.
Acknowledgements
It has been great fun to implement this and also helped me know a new piece of the gvSIG internals, which is quite important right now.
So thanks to DISID for this, since our involvement in gvSIG they have always been very supportive to involve us and teach us to get up and running as fast as possible.
1 comment:
Did you hear there is a 12 word sentence you can tell your crush... that will induce intense feelings of love and impulsive appeal for you buried within his heart?
Because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, adore and look after you with his entire heart...
12 Words That Trigger A Man's Desire Impulse
This instinct is so built-in to a man's genetics that it will make him try better than before to build your relationship stronger.
Matter-of-fact, triggering this powerful instinct is so essential to having the best possible relationship with your man that once you send your man one of the "Secret Signals"...
...You'll instantly find him open his mind and heart for you in a way he's never experienced before and he'll recognize you as the one and only woman in the world who has ever truly fascinated him.
Post a Comment