Showing posts with label QuantumGIS. Show all posts
Showing posts with label QuantumGIS. Show all posts

Wednesday, 2 April 2014

QGIS, oriental archaeology (basic tutorial 1)

Hi all,
today I start a new series of basic tutorial regarding the use of FLOSS (Free/Libre and Open Source Software) in archeology (oriental archeology, to be exact). One of the most difficult thing in doing tutorial is to understand what people needs (especially when the necessities are simple). For this reason, following what the software developers call the KISS principle, I'll take the occasion to record the videotutorial I am doing to help some friends in organizing a project in which we should participate.
The mission regards an archaeological expedition in the Hrazdan river valley (Kotayk region, Armenia) and it is a collaboration between the IsMEO (it: Istituto Italiano per il Medio e l'Estremo Oriente; en: Italian Institute for the Middle and Far East) and the ISMA-CNR (it: Istituto di Studi sul Mediterraneo Antico; en: Institute of Studies on Ancient Mediterranean See). The project is leaded by the Italian archaeologists Manuel Castelluccia, Roberto Dan, Riccardo La Farina e Mattia Raccidi.
I will record these tutorial answering the questions I receive day by day from the Italian team in order to meet their basic needs. The first problem regards how to create simple maps to illustrate the project using a GIS (instead of closed raster and vector image software). Obviously the series of tutorial will be inspired by the FLOSS philosophy, so, as I wrote, just this kind of tools will be used (in particular the operating system you see in the video is my testing version of ArcheOS 5, not yet released...), but this means also that will be used just open data. For example one of the first task to face will be to find open geographic data to trace our maps: normally it is not a good idea to present our works using Google Maps or Google Earth, due to the restrictions on this material, which I suggest to read carefully (quote from the Google Permission guidelines: "You may not use Google Maps or Google Earth as the basis for tracing your own maps or other geographic content").
For these reasons, the first videoturial shows how to use a simple GIS (Quantum GIS) to set up a fast project. Initially we will install the plugin OpenLayers to allow us to use open geographic data (like OpenCycleMap from OpenStreetMap) to trace our maps (in the Projected Coordinate System WGS84/Pseudo-Mercator). Than we will add a new vector layer (by now we will use a shapefile, but later, when a real database will be defined, we will introduce the SpatiaLite format), using some open data from the Innsbruck University projects in oriental archeology (Aramus and Khovle Gora, leaded by Walter Kuntner and Sandra Heinsch) and setting a very simple database schema. After we will fill the attributes of our two example sites and choose some graphic parameters (using for this purpose the same attributes). Finally we will do a very simple layout (the one you can see in the image below).

Just an example of a very basic layout

Like always I uploaded the videotutorial on the wiki of the DADP project, but you can see it also here:



I hope it can be useful!

Wednesday, 12 February 2014

QuantumGIS and OpenJump: Photomapping with more pictures (Corte Inferiore method)

Hi all,
i would like to share a new method to realize georeferenced 2D-photomosaic. Thanks to the new version of OpenJump (r3856), now it is possible to export the GIS-view to any kind of resolution (no more block to 3800 width-pixel). Just set in the oj_linux.sh file (OpenJump bin folder) the allowed memory in the line 24

JAVA_MAXMEM=${JAVA_MAXMEM--Xmx2048M}

with 2048M my computer can export GIS-view till the value of 6905 width-pixel. More memory gives more resolution.

This is the videotutorial:



and this an example:


Thursday, 5 December 2013

From drone-aerial pictures to DEM and ORTHOPHOTO: the case of Caldonazzo's castle

Hi all,
I would like to present the results we obtain in the Caldonazzo's castle project. Caldonazzo is a touristic village in Trentino (North Italy), famous for its lake and its mountains. Few people know about the medieval castle (XII-XIII century) whose tower is actually the arms of the town. Since 2006, the ruins are subject to a valorization project by the Soprintendenza Archeologica di Trento (dott.ssa Nicoletta Pisu). As Arc-Team we participated in the project with archaeological field work, historical study, digital documentation (SFM/IBM) and 3D modeling.
In this first post i will speak about the 3D documentation, the aerial photography campaign and the data elaboration.



1) The 3D documentation 

One of the final aims of the project will be the virtual reconstruction of the castle. To achieve that goal we need (as starting point) an accurate 3D model of the ruins and a DEM of the hill. The first model was realized in just two days of field-work and four days of computer-work (most of the time without a direct contribution of the human operator). The castle's walls were documented using Computer Vision (Structure from Motion and Image-Based Modeling); we use Pyhon Photogrammetry Toolbox to elaborate 350 pictures (Nikon D5000) divided in 12 groups (external walls, tower-inside, tower-outside, palace walls, fireplace, ...).


The different point clouds were rectified thanks to some ground control point. Using a Trimble 5700 GPS the GCPs were connected to the Universal Transverse Mercator coordinate system. The rectification process was lead by GRASS GIS using the Ply Importer Add-on.


To avoid some problems encountered using universal coordinate system in mesh editing software, we preferred, in this first step, to work just with only three numbers before the dot.



2) The aerial photography campaign 

After walls documentation we started a new campaign to acquire the data needed for modeling the surface of the hill (DEM) where the ruins lie. The best solution to take zenithal pictures was to pilot an electric drone equipped whit a video platform. Thank to Walter Gilli, an expert pilot and builder of aerial vehicles, we had the possibility to use two DIY drones (an hexacopter and a xcopter) mounting Naza DJI technology (Naza-M V2 control platform).


Both the drones had a video platform. The hexacopter mount a Sony Nex-7; the xcopter a GoPro HD Hero3. The table below shows the differences between the two cameras.


As you can see the Sony Nex-7 was the best choice: it has a big sensor size, an high image resolution and a perfect focal lenght (16mm digital = 24 mm compare to a 35mm film). The unique disadvantage is the greater weight and dimension than the GoPro, that's why we mounted the Sony on an hexacopter (more propellers = more lifting capability). The main problem of the GoPro is the ultra-wide-angle of the lens that distorts the reality in the border of the pictures.
The flight plan (image below) allowed to take zenithal pictures of the entire surface of the hill (one day of field-work).


The best 48 images were processed by Python Photogrammetry Toolbox (one day of computer-work). The image below shows the camera position in the upper part, the point cloud, the mesh and the texture in the lower part.


At first the point cloud of the hill was rectified to the same local coordinate system of the walls' point cloud. The gaps of the zenithal view were filled by the point clouds realized on the ground (image below).


After the data acquisition and data elaboration phases, we sent the final 3D model to Cicero Moraes to start the virtual reconstruction phase.


3) The Orthophoto

The orthophoto was realized using the texture of the SFM's 3D model. We exported out from MeshLab an high quality orthogonal image of the top view which we just rectified using the Georeferencer plugin of QuantumGIS.
As experiment we tried also to rectified an original picture using the same method and the same GCPs. The image below shows the difference between the two images. As you can see the orthophoto matches very well with the data of the GPS (red lines and red crosses), while the original picture has some discrepancies in the left part (the area most far away from the drone position, which was zenithal on the tower's ruin).



4) The DEM

The DEM was realized importing (and rectifying) the point cloud of the hill inside GRASS 7.0svn using the Ply Importer Add-on. The text file containing the transformation's info was built using the relatives coordinates extracted from Cloud Compare (Point list picking tool) and the UTM coordinates of the GPS' GCPs.




After data importing, we use the v.surf.rst command (Regularized spline tension) to transform the point cloud into a surface (DEM). The images below show the final result in 2D and 3D visualization.



Finally we imported the orthophoto into GRASS.



That's all.
BlogItalia - La directory italiana dei blog Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.