Welcome to Planet OSGeo

July 26, 2017

OSGeo News

Orfeo ToolBox Graduates Incubation

by jive at July 26, 2017 09:28 PM

Jackie Ng

Announcing: mapguide-react-layout 0.9.5

This was originally going to be versioned 0.9.2, but the volume of changes was too big to be a bugfix-level single patch version bump, but at the same time, it was also not enough to warrant a minor version bump, so I decided to go half way with 0.9.5.

Here's what's new in this release.

Toggle-able Layer Transparency

The viewer options UI is now fleshed out to allow you to toggle transparency of:

  • The MapGuide map (and any tiled layer groups)
  • The MapGuide selection overlay
  • External Base Layers
To illustrate this, here's a self-explanatory GIF



This allows one to easily compare the MapGuide map against its base layer backdrops without requiring actual visibility toggling.

And yes, this works even on IE (11, the only version I care to support)

Sprite Icon Support

This release now supports the standard Fusion icon sprite. This will no longer load the individual icons for commands and widgets if it is clear they are referencing the standard icon sprite.


Targeted Command Support

If a command or widget requires execution in a New Window or a specific frame, the viewer will now support it. Note that if a command or widget is set to execute in a New Window, we won't actually spawn a new physical browser window, we'll run it in an iframe inside a BlueprintJS dialog component instead.

Other Changes/Fixes
  • Added support for extension properties for Buffer, FeatureInfo, Query, Search, SelectWithin, Theme.
  • Fixed Fusion MapMessage bar emulation
  • Fixed tooltip queries not being sent with pixel-buffered polygon geometries
  • Fixed zoom requests not snapping the scale to the closest finite list if viewing a tiled map
  • Legend now properly renders layers with multiple geometry styles
  • Fix excessive BlueprintJS toaster components being created and not cleaned up
  • Fix flyout menus requiring double-click to re-open (after clicking a menu item inside the first time)

Project Home Page
Download
mapguide-react-layout on npm

by Jackie Ng (noreply@blogger.com) at July 26, 2017 06:08 PM

gvSIG Team

Camino a gvSIG 2.4: SpatiaLite

En la próxima versión de gvSIG Desktop vamos a encontrar un buen número de mejoras relacionadas con bases de datos. Una de ellas es el soporte de SpatiaLite.

SpatiaLite es un motor de base de datos SQLite al que se le han agregado funciones espaciales. SQLite es un Sistema Gestor de Bases de Datos (SGBD, DBMS por sus siglas en inglés) que es simple, robusto, fácil de usar y muy ligero.

Una de las ventajas que presenta es que cada base de datos SQLite es simplemente un archivo que se puede copiar, comprimir e intercambiar fácilmente.

Por otro lado, Geopaparazzi (y el próximo gvSIG Mobile) trabajan con esta base de datos, por lo que esta mejora va a permitir intercambiar de forma sencilla los datos de trabajo entre nuestro SIG de escritorio y móvil.

Os dejo con un pequeño vídeo en que vemos como se exporta un shapefile a SpatiaLite:


Filed under: Geopaparazzi, gvSIG Desktop, gvSIG Mobile, spanish Tagged: Base de datos espacial, geodb, SpatiaLite, SQLite

by Alvaro at July 26, 2017 11:35 AM

gvSIG Team

Towards gvSIG 2.4: Icon theme configuration

This utility, called “Icon theme configurator”, will allow the user to create its own icon sets, in order to customize the appearance of his own gvSIG Desktop, (for more information, check out the previous post about the new set of icons available in gvSIG 2.4).

These new tools will also allow the user to create a package with the icon theme created, so it is possible to share it and install it through the “Add-on Manager”.

What is an icon set?

gvSIG Desktop has internally an icon set which includes all the images that are used in the program interface such as the menu and button icons, cursors, document icons, TOC layer icons…

In addition to the default icon set that we have been using in gvSIG since some previous versions already, gvSIG is able to load other kind of icon sets. In this post we will show you how to do it.

The “Icon theme configurator” plugin can be installed from the ‘Add-on Manager’, as shown in the following video:

This functionality will allow the user:

  • To view the variety of icons that has already installed.
  • To apply as default a set of icons to the gvSIG Desktop interface.
  • To create a new set of icons.
  • To create packages with sets of icons.

How to work with the ‘Icon theme configurator’?

When installed, the ‘Icon theme configurator’ tool cannot be reachable through the toolbar of gvSIG or through the menus. The start must be done through the “script launcher” or directly from the “script editor”.
In this example we will open the “Icon theme configurator” through the “script launcher”:

Then, we select the “iconThemeConfigurator” script by clicking on it twice, as it is shown in the image:

And the following window will pop up:

Firstly, in the “View” tab, it will appear the list of icon sets that we have already installed. By selecting the icons it is possible to preview them, to see their name and the group they belong to.

Secondly, in the “Select” tab, we will see the full list of icon sets installed in gvSIG. We must select one set as default. This step can also be done from the “Preferences” side of the application, in the section “General / Icon Set”.

Then, in the “Create” tab we can export a folder located in “gvSIG / icon-theme” the internal gvSIG Desktop icon set. We must indicate a code, name, author and description. The most relevant fields are the code (which will be the name of the folder that will be created in the route gvSIG / icon-theme”) and name”. It is recommended that the code does not contain spaces or special characters (letters, numbers and hyphens only).

Once the theme is created, and the name and location of the file appear in subfolders, then it is possible to replace the “internal” icons with the new ones we have previously created, keeping the name and location.

In the following video the whole procedure is shown step by step:

When the replacing of the original icons with the new ones is done, the next step would be to create a package. The user will be able to share and install the Package from the “Add-on Manager”. This task can be performed on the “Package” tab:

First we will have to select the folder of our game of icons. Click “Next” and fill in the metadata of the package. It is important to fill in the fields that appear in red, as this information is the one that will be displayed in the “Add-on Manager”, when a user is going to install the plugin containing an icon set.

Press “Next” again and it will show the route and name of the package that will be created; By default it is saved in the “Install” folder located in the following route “gvSIG-desktop / gvSIG-desktop-2.4.0”. Then the user will have the package ready to work with.

Finally, in this video it is shown the process of creating a package from an icon set:

Following this procedure a game icons will be created in a format of 16 × 16 and 22 × 22 pixels, as presented in an earlier post of the gvSIG blog.

To sum up, in this article of the blog we have shown you the very simple steps needed to change an icon set in gvSIG from version 2.4 – on. We only have to redesign the game of icons that we want to apply to our favorite GIS.


Filed under: english, gvSIG Desktop Tagged: gvSIG-2.4, icon configuration, icon package, icon sets, icon theme configuration

by learozz at July 26, 2017 11:05 AM

July 25, 2017

gvSIG Team

Towards gvSIG 2.4: Changing gvSIG interface. A new set of icons

gvSIG has used the same set of icons for a good number of years. Therefore, we have made the decision to give the user the opportunity to change themes or icons set easily. To do that, we have created a plugin which we will describe in a post later. Here, we want to show the excellent set of icons that Mario Fèvre from the company TreCC S.A. has been created, as well as the instructions to work with them in gvSIG Desktop 2.4.

In addition to both tool sets, a complete guide for styles has been created. You can check this out here (now in Spanish).

There are two sets, one where the icons size is 16×16 and the other with 22×22. This second one meets the demands of part of the gvSIG community that asked to work with larger buttons.

The two sets can be downloaded in the following links:

Any of them can be installed, once downloaded, by using the “Set administrator > Using file”, so far (they will be also available in the official repository in the final version). You should select either “TreCC-icon-set” … 22×22 or 16×16, depending on your preferences.

Once it is installed, gvSIG Desktop must be restarted. Then, there´s one more step to indicate to the application in case one of the new set of icons wants to be used.

Go to “Preferences > General/Set of icons” and choose the icons set to be used as shown in the picture below:

Then, restart gvSIG Desktop to see the new interface of our favorite GIS. By the way, in the last builts there’s no option to go back and see the traditional set of icons (do not forget that we are in the test phase) although we expect to include this option in the future builts.

Here a short video that shows the new gvSIG Desktop:

Finally, we would like to mention that gvSIG Desktop 2.4 will be launched with the “traditional” set of icons. This is not just the one that most of the users are familiar with but also it is the one that all the existing documents are referred to. However, the new icons will be also at your disposal in the application. Eventually, in the next versions, we will consider the opposite: gvSIG will be able to be released with the new icons set, with the traditional one available.


Filed under: english, gvSIG Desktop Tagged: gvSIG-2.4, Set of icons, symbology

by martapacoret at July 25, 2017 09:51 AM

July 22, 2017

Free and Open Source GIS Ramblings

Dynamic styling expressions with aggregates & variables

In a recent post, we used aggregates for labeling purposes. This time, we will use them to create a dynamic data driven style, that is, a style that automatically adjusts to the minimum and maximum values of any numeric field … and that field will be specified in a variable!

But let’s look at this step by step. (This example uses climate.shp from the QGIS sample dataset.)

Here is a basic expression for data defined symbol color using a color ramp:

Similarly, we can configure a data defined symbol size to create a style like this:

Temperatures in July

To stretch the color ramp from the attribute field’s minimum to maximum value, we can use aggregate functions:

That’s nice but if we want to be able to quickly switch to a different attribute field, we now have two expressions (one for color and one for size) to change. This can get repetitive and can be the source of errors if we miss an expression and don’t update it correctly …

To avoid these issues, we use a layer variable to store the name of the field that we want to use. Layer variables can be configured in layer properties:

Then we adjust our expression to use the layer variable. Here is where it gets a bit tricky. We cannot simply replace the field name “T_F_JUL” with our new layer variable @style_field, since this creates an invalid expression. Instead, we have to use the attribute function:

With this expression in place, we can now change the layer variable to T_M_JAN and the style automatically adjusts accordingly:

Temperatures in January

Note how the style also labels the point with the highest temperature? That’s because the style also defines an expression for the show labels option.

It is worth noting that, in most cases, temperature maps should not be styled using a color ramp that adjusts to a specific dataset’s min and max values. Instead, we would want a style with fixed value to color mapping that makes different datasets comparable. In many other use cases, however, it is very convenient to have a style that can automatically adapt to the data.


by underdark at July 22, 2017 06:56 PM

July 21, 2017

GIScussions

Pay it forward

Pocket Change

FOSS4G starts in Boston in just over 3 weeks time, there will be close on 1000 attendees (could go higher if you are one of the late registrations) learning, sharing, networking, having a bit of geofun, making new friends and building the Open Source Geo community. There will be hundreds of presentations, workshops, keynotes, lightning talks, birds of a feather, meet ups, loads of QGIS and lots of new stuff. So who wouldn’t want to be there?

Look at the map of delegate home countries

Not many delegates from the southern hemisphere are there? Most of the delegates are from the US and Western Europe, which is understandable – a week in Boston at FOSS4G will cost at least $1,500 plus the cost of flights, outside the budget of many people.

Thanks to some generous sponsorship we have been running a FOSS4G Travel Grant Programme to help some FOSS4G contributors and enthusiasts to join us in Boston, we have now made 10 awards to people from the lowest 3 World Bank income categories (that’s mainly incomes of less than $4,000 pa).

There were many more deserving applicants than we had funds to support, so we want to do a bit of crowdfunding to raise money to bring a few more to Boston

  • Every 60 people who donate $25 will enable 1 extra person to attend FOSS4G
  • If everyone who has registered for FOSS4G chipped in just $15 we could bring 10 more people to FOSS4G
  • If you or your company are feeling very generous, you could even sponsor 1 individual yourself
So why should you put your hand in your pocket? Do you remember the person who helped you to get started in geo? Do you remember the buzz from attending your first big geo conference, maybe it was a FOSS4G, maybe it was an ESRI UC, maybe it was an AGI GeoCommunity? Maybe, you don’t even do geo, but you still remember someone who helped you to get started on the path that you are following. Now is an opportunity to “Pay it forward” and help someone else to get started in geo and make a difference in their home country.

Go on, dig deep, dig a bit deeper, you will feel good about your donation and someone else will get the chance to experience the goodness of FOSS4G. So click on the donate button now (the money will go to OSGeo Foundation and PayPal waive credit card charges as they are a NFP)

May the FOSS be with you

 

by Steven at July 21, 2017 12:53 PM

Fernando Quadro

Geolocalização no Hipsters.tech

Esta semana foi a vez da Geoinformação ser abordada no podcast Hipsters.tech, promovido pela Alura. O episódio #53 foi um bate papo que contou com a presença de Roberto Marin (CTO da Maplink) e Fred Hohagen (CEO e fundador da Maplink) além dos hosts Paulo Silveira e Maurício Linhares.

O bate papo foi bastante interessante sendo discutidos assuntos como Geomarketing, Geolocation, Big data, logística, entre outros bastante relevantes.

Indico aqueles que tenham interesse ouvir o podcast, pois vale a pena. Se você quiser escutar pode iniciar agora mesmo clicando no play logo abaixo:

by Fernando Quadro at July 21, 2017 12:39 PM

OSGeo News

Help fund the OSGeo Travel Grant Programme

by jsanz at July 21, 2017 08:33 AM

July 20, 2017

Jackie Ng

So ... where's MapGuide Open Source 3.2?

Here's the story, since I gather not everyone reads the mapguide-users mailing list where I mentioned this subject many months ago.

I've decided (many months ago) to skip on making this release.

The differences between 3.1 and (a 3.2 release if I had decided to make one) is so small that it isn't worth investing the build resources on a 3.2 release cycle.

Since I'm skipping on a 3.2 release, it means that we have a good year-long window of solid development time to get some compelling features into the release after it (currently set as 3.3). Some of this development work is already starting to bear fruit.

Now that's not to say there isn't going to be a MapGuide release sometime between now and when 3.3 is out. I still do hope to put out the (hinted previously) patch releases for MGOS 2.6, 3.0 and 3.1 in between, but that requires me rebuilding my build infrastructure first and that is currently taking a back seat to landing some solid features into 3.3 first, so that's where things are at.

And as always. As these features land, you can expect this blog to talk about it.

by Jackie Ng (noreply@blogger.com) at July 20, 2017 03:25 PM

July 19, 2017

gvSIG Team

9as Jornadas da América Latina e do Caribe de gvSIG: “gvSIG: Geotecnologias livres e desenvolvimento sem fronteiras”

De 4 a 6 de outubro de 2017 serão realizadas as 9as Jornadas gvSIG da América Latina e do Caribe (LAC) em Santa Maria (Rio Grande do Sul – Brasil) sob o lema “gvSIG: Geotecnologias livres e desenvolvimento sem fronteiras”, a nova reunião de usuários e desenvolvedores ligados ao software gvSIG organizada no Brasil.


Já está aberto o período para  envio de propostas para comunicações. A partir de hoje as comunicações podem ser enviadas ao seguinte endereço eletrônico: jornadas.latinoamericanas@gvsig.org. Toda as informações sobre as normas para a apresentação de comunicações podem ser consultadas no tópico comunicações. O período de submissão de resumos se encerra no dia 26 de agosto.

O período de inscrições para as Jornadas LAC será aberto no dia 8 de agosto. As inscrições são gratuitas (vagas limitadas).


Filed under: community, events, portuguese, training Tagged: 9as Jornadas LAC

by Mario at July 19, 2017 06:23 AM

July 18, 2017

gvSIG Team

9as Jornadas de Latinoamérica y Caribe de gvSIG: “gvSIG: Geotecnologias livres e desenvolvimento sem fronteiras”

Del 4 al 6 de octubre de 2017 se celebrarán las 9as Jornadas de Latinoamérica y Caribe de gvSIG en Santa María (Rio Grande do Sul – Brasil) bajo el lema “gvSIG: Geotecnologias livres e desenvolvimento sem fronteiras”, un nuevo encuentro para el intercambio de experiencias en el uso y desarrollo de gvSIG.

Ya está abierto el periodo para el envío de propuestas para comunicaciones para las Jornadas. Desde hoy pueden enviarse las propuestas a la dirección de correo electrónico jornadas.latinoamericanas@gvsig.org, y serán valoradas por el comité científico de cara a su inclusión en el programa de las Jornadas. Toda la información sobre las normas para la presentación de comunicaciones puede consultarse en el apartado de Comunicaciones de la web. El periodo de recepción de resúmenes finalizará el próximo 26 de agosto.

El periodo de inscripción a las mismas se abrirá el próximo día 8 de agosto. La inscripción será gratuita.

¡Esperamos vuestras propuestas!


Filed under: community, events, portuguese, spanish, training Tagged: 9as Jornadas LAC

by Mario at July 18, 2017 03:44 PM

gvSIG Team

Learn GIS for free. Extra Module : GPS and Mobile GIS

Although “Learn GIS for free” course ended with the tenth module, today we offer you an extra module very interesting for those who are interested in using Mobile GIS to capture field data.

In this module you will know Geopaparazzi. It’s a tool developed to do fast qualitative technical and scientific surveys.

Note 1: We are working on a new version of gvSIG Mobile, based on Geopaparazzi and we hope to be able to give you news soon.

Note 2: It is also interesting that you know that there is a Geopaparazzi plugin in gvSIG Desktop that will be very useful for those who will work with these 2 applications of gvSIG Suite.

Extra 1. GPS System

Extra 2. GPS Survey

Extra 3. GPS to GIS

Enjoy and spread gvSIG Suite!

Giuliano Ramat made this course in the framework of a collaboration between the gvSIG Association and GISMAP.

Related posts:


Filed under: english, Geopaparazzi, gvSIG Desktop, training Tagged: course, free, GPS, survay, tutorial

by Alvaro at July 18, 2017 12:55 PM

July 17, 2017

Fernando Quadro

MBA em Geociências e Geotecnologias

Na área de Geociências existem pouquíssimos cursos profissionalizantes, bem como de graduação, e esta é uma área que toma cada vez mais importância. Este curso promove uma visão ampla e traz temas extremamente novos, interessantes e totalmente aplicáveis. A aplicação prática dos módulos apresenta ao aluno uma usabilidade direta do que está sendo proposto aumentando assim as possibilidades profissionais tanto do mesmo como da empresa na qual ele trabalha.

O curso é promovido pelo IPOG – Instituto de Pós-graduação e Graduação, uma Instituição de Ensino Superior (IES) onde o diferencial competitivo tem se dado pelos surpreendentes e duradouros resultados conquistados pelos programas de especialização. Cursos que, na maioria, são inéditos e contam com projetos pedagógicos arrojados, ministrados por um corpo docente altamente qualificado em preparar o aluno com bases sólidas, transformando-o em um profissional de alta performance.

Se você ficou interessado, e quer ter mais informações do curso, como ementa, diferenciais, entre outras coisas, acesse o link abaixo:

https://www.ipog.edu.br/curso/engenharia-arquitetura/mba-geociencias-e-geotecnologias/

by Fernando Quadro at July 17, 2017 08:05 PM

July 14, 2017

gvSIG Team

Learn GIS for free. Module 10: Digital Elevation Model analysis

We finish this free GIS course with the tenth module, where we show you how to work with Digital Elevation Models.

Digital Elevation Models (DEMs) are raster files with elevation data for each raster cell. DEMs are popular for calculations, manipulations and further analysis of an area, and more specifically analysis based on the elevation.

To follow the course you need:

10.1 DEM analysis in gvSIG

10.2 DEM derived data

10.3 DEM Visibility

Enjoy and spread gvSIG Desktop!

Giuliano Ramat made this course in the framework of a collaboration between the gvSIG Association and GISMAP

Related posts:


Filed under: gvSIG Desktop Tagged: course, DEM, Elevation Model, free, gis, raster, tutorial

by Alvaro at July 14, 2017 10:35 AM

July 13, 2017

Fernando Quadro

Usando GeoServer com Docker

Na publicação de hoje vou falar um pouco sobre o uso do Docker com o GeoServer utilizando o Geodocker. As etapas abaixo foram testadas em um ambiente onde foi instalado o Ubuntu 17.04.

Para instalar o Docker veja a descrição em https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ na seção “Instalar usando o repositório”.

Em seguida, adicione o usuário atual ao grupo de usuários do docker (caso contrário, todos os comandos do docker devem ser prefixados com sudo):

$ sudo gpasswd -a $USER docker
$ newgrp docker

Para iniciar, tente executar a imagem de teste do “Olá Mundo”

$ docker run hello-world

Para entender um poucos mais sobre Docker e mais alguns conceitos básicos, consulte: https://github.com/docker/labs/blob/master/beginner/chapters/alpine.md

Você pode baixar o seu Geodocker, por exemplo, de https://quay.io/organization/geodocker da seguinte maneira:

$ sudo docker pull quay.io/geodocker/base
$ sudo docker pull quay.io/geodocker/geoserver

Para obter uma lista de imagens que já foram baixadas você pode executar o seguinte comando:

$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/geodocker/geoserver latest c60753e05956 8 months ago 904MB
quay.io/geodocker/base latest 293209905a47 8 months ago 646MB

Agora tente executar a imagem base do Geodocker quay.io/geodocker/base

$ docker run -it --rm quay.io/geodocker/base:latest java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Feito isso, execute então a imagem do GeoServer através de quay.io/geodocker/geoserver

$ docker run --name geoserver -e AUTHOR="Anita" \
 -d -P quay.io/geodocker/geoserver

As opções importantes são:

-d … Executar em background e apresentar o ID do container

-P … Publique todas as portas expostas a portas aleatórias

Agora que você já subiu seu docker, verifique se ele está em execução:

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
684598b57868 quay.io/geodocker/geoserver "/opt/tomcat/bin/c..." 
2 hours ago Up 2 hours 0.0.0.0:32772->9090/tcp geoserver

Você também pode verificar quais portas estão abertas para acesso através do comando abaixo:

$ docker port geoserver
9090/tcp -> 0.0.0.0:32772

Parabéns, o seu Docker Geoserver agora está sendo executado em http://localhost:32772/geoserver/ (user = admin, password = geoserver).

Fonte: Free and Open Source GIS Ramblings

by Fernando Quadro at July 13, 2017 10:30 AM

Petr Pridal

GeoPackage in MapTiler 8.0



MapTiler 8.0 is here - and it can generate map tiles in OGC GeoPackage format. The standardized OGC GeoPackage can store the tiles in the most popular mercator profile as well as in the coordinate systems specific for your country.

For the standard tile profile in Mercator - the generated GeoPackage file (.gpkg) is also compliant to MBTiles format in the same moment - which makes it very versatile and compatible with many viewers and software tools.

Our utility for direct fast uploading of the map tiles to the most popular cloud hostings (such as Google Cloud Storage or Amazon S3 buckets) now supports the GeoPackage format too - for all profiles generated by MapTiler. This means you can push any tiles to a reliable hosting which costs a few cents - and you get a web viewer and WMTS compatible with ArcGIS and QGIS. This including map tiles in a local coordinate system - and available for batch processing and automation as `cloudpush` command in the terminal.

It is possible to drop 16-bit raster input files into MapTiler - and they are automatically scaled into 8-bit RGBA output tiles - which eliminates the need for extra preprocessing in some cases. 

MapTiler graphic interface now allows to visually pick a colour for transparency from the input file.
There is no need to use 3rd party software to select  required background colour of your map.

We have updated the internal Proj4 library with the latest database of the coordinate systems and projections.

MapTiler 8.0 also includes the following features:

 - QuadKey tiling scheme output in the folder (known from Microsoft Bing Maps)
 - Online preview of the bounding box for the input file
 - The GUI remembers Amazon S3 / Google Cloud Storage credentials
 - Global projected cutline applicable on more input files [Pro command line]

The updated version is now available at http://www.maptiler.com/. Try it out for free now!

by Dalibor Janák (noreply@blogger.com) at July 13, 2017 10:14 AM

July 12, 2017

gvSIG Team

“Learning GIS with Game of Thrones” free book

Have you decided to learn to work with a Geographic Information System and you don’t know how to start? Now that the premiere of the new season of Game of Thrones series will be in a few days, we recommend you do it using the book that we have just published: “Learning GIS with Game of Thrones“.

This book compiles a series of post with practical exercises that have been published in the gvSIG project blog previously. The objective is that anyone, without previous knowledge and through a series of practical exercises, learn to handle a GIS in an entertaining and funny way.

Everything necessary to follow the course is available free of charge, including gvSIG Desktop software – a free GIS used in more than 160 countries – as well as the data (download links are available in the book) and this tutorial, distributed with a Creative Commons license.

At the end of the book we have added a section with a series of links for those who want to delve into the learning of a Geographic Information System.

You can download it from: http://downloads.gvsig.org/download/documents/books/GoT_book_GIS_gvSIG.pdf

Enjoy it!


Filed under: english, gvSIG Desktop, training Tagged: free book, Game of Thrones, training

by Mario at July 12, 2017 04:54 PM

Free and Open Source GIS Ramblings

Docker basics with Geodocker GeoServer

Today’s post is mostly notes-to-self about using Docker. These steps were tested on a fresh Ubuntu 17.04 install.

Install Docker as described in https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/ “Install using the repository” section.

Then add the current user to the docker user group (otherwise, all docker commands have to be prefixed with sudo)

$ sudo gpasswd -a $USER docker
$ newgrp docker

Test run the hello world image

$ docker run hello-world

For some more Docker basics, see https://github.com/docker/labs/blob/master/beginner/chapters/alpine.md.

Pull Geodocker images, for example from https://quay.io/organization/geodocker

$ docker pull quay.io/geodocker/base
$ docker pull quay.io/geodocker/geoserver

Get a list of pulled images

$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
quay.io/geodocker/geoserver latest c60753e05956 8 months ago 904MB
quay.io/geodocker/base latest 293209905a47 8 months ago 646MB

Test run quay.io/geodocker/base

$ docker run -it --rm quay.io/geodocker/base:latest java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Run quay.io/geodocker/geoserver

$ docker run --name geoserver -e AUTHOR="Anita" \
 -d -P quay.io/geodocker/geoserver

The important options are:

-d … Run container in background and print container ID

-P … Publish all exposed ports to random ports

Check if the image is running

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
684598b57868 quay.io/geodocker/geoserver "/opt/tomcat/bin/c..." 
2 hours ago Up 2 hours 0.0.0.0:32772->9090/tcp geoserver

You can also check which ports to access using

$ docker port geoserver
9090/tcp -> 0.0.0.0:32772

Geoserver should now run on http://localhost:32772/geoserver/ (user=admin, password=geoserver)

For more tests, let’s connect to Geoserver from QGIS

All default example layers are listed

and can be loaded into QGIS


by underdark at July 12, 2017 01:22 PM

Fernando Quadro

A História do Open Source GIS

O advento do mapeamento digital e dos sistemas de informação geoespacial (SIG) mudou completamente a maneira como os humanos pensam e interagem com o mundo ao seu redor. O conceito de sobreposição de camadas discretas de informações de localização para tomada de decisão foi introduzido pela primeira vez por Ian McHarg, um arquiteto paisagista, na década de 1960. Ao mesmo tempo, Roger Tomlinson – conhecido universalmente como o “Pai do SIG” – completou sua tese de doutorado focada no uso de métodos de computação para a sobreposição de informações geoespaciais. Roger então trabalhou para criar o primeiro SIG computarizado, o Sistema de Informações Geográficas do Canadá, que foi usado principalmente para pesquisa.

As raízes do SIG de código aberto remontam o U.S. Department of the Interior em 1978. Desde então, o SIG de fonte aberta permeou muitas indústrias, tanto governamentais como comerciais e, naturalmente, teve uma trajetória e impacto diferentes do que a sua propriedade, contrapartida baseada em licença. O U.S. Department of Labor denominou a tecnologia geoespacial como uma das três maiores indústrias de alto crescimento no século XXI. A evolução do SIG de código aberto nas últimas quatro décadas levou a suas inúmeras aplicações inovadoras e impactantes hoje em dia.

1. O início do SIG: MOSS e GRASS

Em 1978, o Departamento do Interior dos EUA criou o Sistema de Sobreposição e Estatística do Mapa (MOSS). O MOSS foi criado com o objetivo de rastrear e avaliar o impacto do desenvolvimento do meio ambiente, na vida selvagem e nos padrões de migração. Foi o primeiro GIS interativo amplamente implantado, baseado em vetores, bem como o primeiro GIS a ser implantado para uso de produção em minicomputadores.

GRASS (Sistema de Suporte à Análise de Recursos Geográficos) seguiu logo depois, com mais de 350 módulos para processar raster, vetor, processamento de imagem e dados gráficos. O software foi originalmente criado para ser usado pelos militares dos EUA para auxiliar na gestão da terra e no planejamento ambiental. O GRASS é amplamente utilizado hoje em ambas as áreas científicas e comerciais para gerenciamento e análise de dados geoespaciais, processamento de imagem, modelagem espacial e temporal e criação de gráficos e mapas.

2. GeoTools, GDAL, PostGIS e GeoServer

Em 1996, a Universidade de Leeds estabeleceu um projeto para criar uma biblioteca GIS baseada em Java que poderia ser incorporada em diferentes aplicativos conforme necessário. O resultado final, GeoTools, serve como uma biblioteca de código aberto para a manipulação de dados geoespaciais e hoje é amplamente utilizado em servidores de recursos geoespaciais na Web, servidores de mapas da Web e aplicativos desktop.

Quatro anos depois, uma biblioteca geoespacial chamada Biblioteca de Abstração de Dados Geoespaciais (GDAL) surgiu em cena. O GDAL torna possível o uso de aplicativos GIS para suportar os diferentes formatos de dados que existem em todo o mundo SIG. Além disso, vem com uma variedade de úteis utilitários de linha de comando para processamento e tradução de dados em vários formatos. Com suporte para mais de 50 formatos raster e 20 formatos de dados vetoriais, é a biblioteca de acesso a dados geoespaciais mais utilizada no mundo, suportando aplicativos como o Google Earth, o Sistema de Suporte de Análise de Recursos Geográficos (GRASS), QGIS, o Feature Manipulation Engine (FME) E ArcGIS.

Em 2001, a Refractions Research desenvolveu o programa de código aberto PostGIS para habilitar espacialmente os dados armazenados no banco de dados do Postgres. No mesmo ano, o GeoServer, um aplicativo Java para publicação de dados como serviços web baseados nos padrões OGC, também foi criado. Tanto o PostGIS como o GeoServer foram projetos incrivelmente bem-sucedidos e são conhecidos hoje como o banco de dados GIS de código aberto e o servidor de mapas mais amplamente utilizados.

3. Projetos de código aberto impulsionam a inovação e a educação

O QGIS é amplamente considerado como o novo SIG de desktop de código aberto. Lançado em 2002, incorpora funções analíticas do GRASS, juntamente com o suporte ao formato de dados do GDAL, em uma aplicação de desktop amigável para realizar a edição de dados, a cartografia e a análise. O QGIS é interoperável com outras aplicações GIS de código aberto, por exemplo; Gerenciamento de dados do banco de dados PostGIS e publicação de dados no GeoServer como serviços da Web.

Como o SIG de código aberto continuou a ganhar força no início dos anos 2000, OSGeo e LocationTech foram criados para incubar projetos de código aberto. O OSGeo, lançado em 2006, foi projetado para apoiar o desenvolvimento colaborativo de software geoespacial de código aberto, bem como para promover o seu uso generalizado. O LocationTech, um grupo de trabalho dentro da Fundação Eclipse , foi criado para facilitar a colaboração SIG entre acadêmicos, indústria e comunidade.

Em 2011, Geo for All , o programa de divulgação educacional da Open Source Geospatial Foundation, foi fundado com o objetivo de tornar a educação e oportunidades geoespaciais acessíveis a todos. Como resultado do trabalho da fundação, muitos recursos educacionais para SIG de código aberto agora estão disponíveis gratuitamente na internet, incluindo a Academia FOSS4G e a GeoAcademy. O Geo for All eventualmente leva ao estabelecimento de laboratórios geoespaciais de código aberto e centros de pesquisa em todo o mundo para apoiar o desenvolvimento de tecnologias, treinamento e expertise de software de geoespacial de código aberto.

4. Suporte comercial de um SIG de código aberto

Em 2013, a Boundless, tornou-se a primeira empresa a fornecer suporte comercial e manutenção para os aplicativos GIS de código aberto mais populares do mundo nos níveis de banco de dados, servidor, desktop, web, celular e nuvem. O pacote de produtos Boundless “garante que as organizações que utilizam SIG de código aberto em configurações operacionais tenham o suporte técnico de que precisam para ter sucesso”. A empresa oferece aprimoramentos contínuos e manutenção para os softwares GIS open source mais popular.

5. O futuro e além

Os modernos desafios de computação exigem que o software funcione na nuvem e dê suporte as demandas apresentadas pelos enormes volumes de dados que estão sendo criados. Duas soluções de software GIS de código aberto projetadas para atender a esses desafios incluem GeoMesa, um banco de dados de fonte aberta, distribuído e espaço temporal, e o GeoTrellis, um mecanismo de processamento de dados geográficos para aplicações de alto desempenho.

Ambas as soluções, introduzidas em 2014, permitem o processamento de grandes dados geoespaciais na nuvem. Uma vez que eles são criados em frameworks de código aberto e não requerem licenças, e os usuários podem escalar o máximo que for necessário sem serem penalizados.

O SIG de código aberto é uma grande promessa e potencial, pois permite uma maior colaboração, compartilhamento de dados valiosos e acesso a recursos-chave. Com suas muitas aplicações ambientais, governamentais, de segurança pública e de saúde, o SIG de código aberto e os projetos que eleva tem potencial para mudar o mundo.

Este texto foi escrito originalmente em inglês por Anthony Calamito. Esta é uma tradução livre com algumas adaptações realizadas por mim.

Fonte: The New stack

by Fernando Quadro at July 12, 2017 11:29 AM

gvSIG Team

Learning GIS with Game of Thrones (XV and last): Add-ons installing

We are going to dedicate this last post to the “Add-ons manager”, a tool that every gvSIG Desktop user should know.

The add-ons manager is a tool that allows to customize gvSIG, installing new extensions, functional ones as well as other types (symbol libraries). It can be run from the “Tools/Add-ons manager” menu, although it can be accessed during the installing process.

Thanks to the “Add-ons manager” you can access to the plugins not installed by default as well as to the new tools that are published after a final version.

At the window that appears firstly you have to select the add-ons installation source:

The add-ons can have 3 sources:

  • The own installation binary. The file that we have downloaded has a lot of plugins and add-ons, and some of them are not installed by default, but they are available to install. It allows to customize gvSIG without an internet connection.

  • Installation from file. We can have a file with a set of extensions to be installed on gvSIG.

  • From URL. Through an internet connection we can access to all the add-ons available at the gvSIG server and install those that we need. It’s the recommended option when we want to consult all the add-ons available.

Once the installation source is selected you have to press “Next”, and it will show the list of plugins available.

The add-ons manager interface is divided in 4 parts:

  1. List of available add-ons. The plug-in name, version, and type are indicated. The verifcation check boxes allow to distiguish between available (white) or already installed add-ons (green). You also can see the meaning of the icons.

  2. Information area concerning the plug-in selected in “1”.

  3. Area that shows the “Categories” and “Types” in which the plug-in is classified. When we choose a category or type from the list, a filter that runs on “1” shows only the plug-ins related to this category or type.

  4. Fast filter. Enables a filter from a text string entered by the user.

In our case we are going to install a new symbol library. For that we will select “Symbols” category, that will filter by “symbol libraries” plugins:

Now we will mark “G-Maps” library:

Then we press “Next” button and once it’s installed we press “Finish”. A message will indicate that we have to restart gvSIG, but it’s not necessary for symbol libraries. We would have to do it for functional plugins only.

Now, if we are going to change the symbology of any of our layers, for example “Locations”, we will see that we have the new symbols available:

You can see the symbol libraries available in the gvSIG documentation.

And with this last post we finish this atypical course about introduction to GIS. We expect that you have learnt, and besides it has been as much funny as for us to do it.

From this point you are prepared to go more deeply into the application and discover all its power. 

And a last advice… you can use the mailing lists to consult any doubt or tell us any problem that you find:

http://www.gvsig.com/en/community/mailing-lists


Filed under: english, gvSIG Desktop, training Tagged: Add-ons manager, Game of Thrones, symbology

by Mario at July 12, 2017 11:28 AM

gvSIG Team

Learning GIS with Game of Thrones (XIV): Layouts

At this second-to-last post of the course to learn the base of the Geographic Information Systems through practical exercises with Game of Thrones data we are going to work with the “Map” document.

A Layout document is a set of design elements of a map, organized in a virtual page, the objective of which is its graphical output (printing or exporting to PDF file). The elements that we see in the design are the elements that are printed or exported to the PDF file, being in the same paper size that we have selected on the screen. We can add two different type of elements in a Layout: Cartographic elements and design ones.

In our case we are going to create a map with the path followed by Greyjoy brothers, that we drew in the post about “Graphical editing“. 

Once we have our project open in gvSIG, firstly we are going to open the “Project manager” window. A fast way to do it is through the “Show/Project manager” menu. We select the “Map” type of document and we press “New”. A new window will be opened, where we can define the characteristics of the Map page. 

In our case we are going to select “A4” for the page size, then “Horizontal”, and we will select the View where we had our layers loaded instead of “Create new View” option. If you have more than one View in your project you will see a list with all of them.

You will see that a new map is created where the indicated View is added with a full extent at the page:

Pressing on the “black squares” that appear in the borders and medium points of the rectangle that defines the View extension we can change its size. At this way we are defining the design of our map. Clicking on the View element inserted and dragging it we can move it. In our case we resize the View inserted and we move it, and now we will insert other cartographic elements.

Most of the cartographic elements are closely linked to a View document, so that when making changes to the View, they can be reflected in the map (changes of zoom, displacements, legend changes, organization of layers, etc.). These tools are available from the “Map / Insert” menu and the corresponding button bar.

Let’s start by inserting the legend. This tool is available from the menu “Map / Insert / Legend” or from its button:

The legend is always associated with a View inserted in the Map and allows to represent the symbology of the different layers of that View. Once the tool is selected, we will indicate the first end of the rectangle defining the space to be filled by the legend. It will be indicated by clicking on the Map area at the desired location, and dragging until released at the opposite end. A dialog box will appear where you can define the graphic properties of the inserted legend:

In this window we can mark which layers (its symbology) we want to show in the legend..

Next we insert a North symbol. This tool is available from the  “Map / Insert / North” menu and from its corresponding button:

Once the tool is selected, the first end of the rectangle that defines the space to be occupied by the north symbol will be indicated by clicking on the Map area at the desired location, and dragging until released at the opposite end. A dialog box will appear where you can define the graphic properties of the inserted north:

And our Map will be like this one:

Finally, we will insert a title using the “Insert Text” tool (in the Map / Insert / Text menu or its corresponding button). The operation is similar to the other elements, and in this case we will indicate the text that we want to write: “Greyjoy Brothers”.

From here, to avoid extending this post, we recommend you to review the documentation related to the Map document where you will be able to see how to add graphic scales, boxes, etc. With practice you can create really well designed maps.

Once you have your map you can export it to a PDF file from this button:

You can send your PDF file to all your contacts already.

As it’s said, practice makes perfect.

To finish the course there’s only one post pending… don’t miss it.


Filed under: english, gvSIG Desktop, training Tagged: Game of Thrones, layout, map, pdf, print

by Mario at July 12, 2017 11:27 AM

gvSIG Team

Learn GIS for free. Module 9: Raster reclassification and raster calculator

We continue with the ninth module of the free GIS course, where we continue to show you how to work with gvSIG Desktop, in this case working with raster reclassification and rasterization tools, and learning what can we do with raster calculator.

To follow the course you need:

9.1 Raster reclassification

9.2 Raster calculator

Enjoy!

Giuliano Ramat made this course in the framework of a collaboration between the gvSIG Association and GISMAP

Related posts:


Filed under: english, gvSIG Desktop, training Tagged: calculator, course, free, gis, raster, rasterization, reclassification, tutorial, video

by Alvaro at July 12, 2017 09:58 AM

July 11, 2017

gvSIG Team

Libro gratuito “Aprendiendo SIG con Juego de Tronos”

¿Te has propuesto aprender a trabajar con un Sistema de Información Geográfica y no sabes por dónde empezar?. Ahora que quedan días para el estreno de la nueva temporada de la serie Juego de Tronos te recomendamos que lo hagas utilizando el libro que acabamos de poner disponible “Aprendiendo SIG con Juego de Tronos”.

Este libro recopila una serie de post con ejercicios prácticos publicados previamente en el blog del proyecto gvSIG. El objetivo es que cualquier persona, sin conocimientos previos y mediante una serie de ejercicios prácticos, aprenda a manejar un SIG de una forma amena y divertida.

Todo lo necesario para seguir el curso está disponible de forma libre y gratuita, tanto el software gvSIG Desktop – un SIG libre utilizado en más de 160 países – como los datos (tenéis los enlaces de descarga en el libro) y este propio tutorial que se distribuye con licencia Creative Commons.

Al final del libro hemos añadido un apartado con una serie de enlaces para los que quieran profundizar en su aprendizaje de un Sistema de Información Geográfica.

Podéis descargarlo en: http://downloads.gvsig.org/download/documents/books/Libro_GoT_SIG_gvSIG.pdf

¡Qué lo disfrutéis!


Filed under: gvSIG Desktop, spanish Tagged: curso, ejercicios, gratis, iniciación, Juego de tronos, mapas, sig, Sistemas de Información Geográfica, tutorial

by Alvaro at July 11, 2017 12:24 PM

gvSIG Team

Crear gráficas en gvSIG Desktop. Vídeo-tutorial disponible

Os traemos un nuevo vídeo-tutorial en el que os enseñamos a trabajar con gráficas en gvSIG Desktop, y enmarcado en la colaboración con la UMH en torno al Máster de Valoración, Catastro y Sistemas de Información Territorial.


Filed under: gvSIG Desktop, spanish Tagged: gráficas, gráficos, tutorial, vídeo-tutorial

by Alvaro at July 11, 2017 07:16 AM

July 10, 2017

OSGeo News

Azavea 2017 Sponsorship

by jive at July 10, 2017 11:24 PM

gvSIG Team

Towards gvSIG 2.4: Functionalities improved in gvpy

As you may know, gvpy is a  gvsig library that help us with the execution of geoprocesses. Thus, geoprocesses added in our gvSIG Toolbox can be executed from a script with a single line of code.

For the new gvSIG 2.4, we introduced a small change is this geoprocess execution that will allow us to work with objects in a way that before it wasn’t possible. For example, some geoprocesses (like “profile”) have a graphical output, a object created from the library jfreechart. With this new functionality, is possible capture this object and process it.

An example: we have the task to create a big cuantity of profiles located around a road, as it  appears in the next image.

We want to save all this profiles in a folder so we have to use the profile geoprocesses multiple times, one for each profile. This is a basic script just for one line.

# encoding: utf-8

import gvsig
from gvsig.libs import gvpy
reload(gvpy)
from org.jfree.chart import ChartUtilities
    
def main(*args):

    #Remove this lines and add here your code
    route = gvsig.currentView().getLayer("perfil_huesca")
    dem = gvsig.currentView().getLayer("MDTHuesca")
    r = gvpy.runalg( "profile",route,dem,"",False,"")

    aJFreeChart = r[0].getChart()
    from java.io import FileOutputStream
    out = FileOutputStream("C:/temp/imagen1.png")

    ChartUtilities.writeChartAsPNG(out,
            aJFreeChart,
            500, #aChartPanel.getWidth(),
            200)#aChartPanel.getHeight());

Now, we want to repeat this process for each profile (a different selected line feature in the initial layer) and saving the graphical output in a folder.

The script would be like this:

# encoding: utf-8

import gvsig
from gvsig.libs import gvpy

from org.jfree.chart import ChartUtilities
from java.io import FileOutputStream
import os

def main(*args):

    route = gvsig.currentView().getLayer("Secciones transversales")
    dem = gvsig.currentView().getLayer("MDTHuesca")

    features = route.features()
    selection = route.getSelection()
    idfeature = 0
    for i in features:
        idfeature+=1
        selection.select(i)
        r = gvpy.runalg( "profile",route,dem,"",False,"",ADDLAYER=False)
        aJFreeChart = r[0].getChart()

        filename = gvsig.getTempFile("imagen_"+str(idfeature),".png", "C:\\temp")
        #filename = os.path.join("C:\\temp", "imagen_"+str(n)+".png")
        
        out = FileOutputStream(filename)
        ChartUtilities.writeChartAsPNG(out,
                aJFreeChart,
                500, #aChartPanel.getWidth(),
                200)#aChartPanel.getHeight());
        out.close()
        selection.deselectAll()
    return

If you change the parameter ADDLAYER to True, for each process execution the new created layer will be added to the View.

Now, we can check in our folder the output of all the profile geoprocess executed during the script.

This script is just a small example and it could be improved. If you make any improvement don’t hesitate and contact with us so we could publish the new example in the blog for share it with the community.

Hope you find useful this post!


Filed under: development, english, gvSIG Desktop, scripting Tagged: gvPy

by Óscar Martínez at July 10, 2017 04:07 PM

gvSIG Team

Learn GIS for free. Module 8: Vegetation index and unsupervised classification

We continue with the eighth module of the free GIS course, where we continue to show you how to work with raster data in gvSIG Desktop, in this case calculating several parameters (NDVI, CTVI,…) related to vegetation index and learning to work with unsupervised classification tools.

To follow the course you need:

8.1 Vegetation index

8.2 Unsupervised classification

Arrived at this point of the course, we want to introduce you to your teacher Giuliano Ramat, who made this course in the framework of a collaboration between the gvSIG Association and GISMAP.

Related post:


Filed under: english, gvSIG Desktop, training Tagged: CTVI, NDVI, NRVI, raster, remote sensing, TTVI, TVI, unsupervised classification, vegetation index

by Alvaro at July 10, 2017 10:17 AM

July 08, 2017

Jackie Ng

React-ing to the need for a modern MapGuide viewer (Part 17): Reason number 5537485 why react was the right choice

An issue cropped up where the legend was not properly rendering a given layer that has multiple geometry styles. This issue was easily reproducible with the Redline widget.

We were expecting to see this after creating a redline layer and drawing some objects.


But we got this instead


Because this legend is a react component, we can inspect it (and the problem layer node) with the React developer tools


Remember the important React motto: The UI is a function of props and state. The HTML content of the LayerNode should be reflective of the props and state given to it. We should've seen something that resembled 3 style icons. But nothing's there.

So let's just check that the layer model for this LayerNode component is indeed a layer with multiple geometry styles


Indeed it is, so that means that the LayerNode component is the culprit. It is not handling the case of multiple geometry styles properly.

As we've already set up our test infrastructure to make it easy to write and run tests, it should be easy to write up an enzyme unit test that shows what we were actually expecting to see when a LayerNode renders a layer that has multiple geometry styles

component.legend.spec.tsx


 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import * as React from "react";
import { shallow, mount, render } from "enzyme";
import { MapLayer } from "../src/api/contracts/runtime-map";
import { LayerNode } from "../src/components/legend";
import { ILegendContext } from "../src/components/context";

// Mocks the ILegendContext needed by LayerNode and other legend sub-components
function mockContext(): ILegendContext {
return {
getIconMimeType: () => "image/png",
getStdIcon: (path: string) => path,
getChildren: (id) => [],
getCurrentScale: () => this.props.currentScale,
getTree: () => {},
getGroupVisibility: (group) => group.ActuallyVisible,
getLayerVisibility: (layer) => layer.ActuallyVisible,
setGroupVisibility: () => {},
setLayerVisibility: () => {},
getLayerSelectability: (layer) => true,
setLayerSelectability: () => {},
getGroupExpanded: (group) => true,
setGroupExpanded: () => {},
getLayerExpanded: (layer) => true,
setLayerExpanded: () => {}
};
}

describe("components/legend", () => {
it("renders a multi-geom-style layer with a rule for each geom style", () => {
const layer: MapLayer = {
Type: 1,
Selectable: true,
LayerDefinition: "Session:841258e8-63f9-11e7-8000-0a002700000f_en_MTI3LjAuMC4x0AFC0AFB0AFA//testing.LayerDefinition",
Name: "_testing",
LegendLabel: "testing",
ObjectId: "abcd12345",
DisplayInLegend: true,
ExpandInLegend: true,
Visible: true,
ActuallyVisible: true,
ScaleRange: [
{
MinScale: 0,
MaxScale: 10000,
FeatureStyle: [
{
Type: 4,
Rule: [
{
Icon: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAB1JREFUOI1j/M/A8J+BAsBEieZRA0YNGDVgMBkAAFhtAh6Zl924AAAAAElFTkSuQmCC"
}
]
},
{
Type: 4,
Rule: [
{
Icon: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAACVJREFUOI1jYBgFwwAwMjD8bcAjL8rAwKCNR56LibruGQVDFAAACkEBy4yPOpAAAAAASUVORK5CYII="
}
]
},
{
Type: 4,
Rule: [
{
Icon: "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAFhJREFUOI3t0D0OQFAUROHPIwoNS7ZJe5BoKJR+OpVH4jUkTjv3TDI3w6Z2zooNeSSfKNQYIwd3NISH6sFfQLCkFmQJdkVIGlG+44mfLyjMaCPpgO7C7tkBAXgKXzBhmUQAAAAASUVORK5CYII="
}
]
}
]
}
]
};
const wrapper = shallow(<LayerNode layer={layer} />, {
context: mockContext()
});
const rules = wrapper.find("RuleNode");
expect(rules.length).toBe(3); //One for each geom style
});
});

Running this in jest confirms our expectations were not met:

Summary of all failing tests
FAIL test\component.legend.spec.tsx (6.75s)
● components/legend › renders a multi-geom-style layer with a rule for each geom style

expect(received).toBe(expected)

Expected value to be (using ===):
3
Received:
0

at Object. (test/component.legend.spec.tsx:149:30)
at Promise.resolve.then.el (node_modules/p-map/index.js:42:16)
at process._tickCallback (internal/process/next_tick.js:103:7)


Test Suites: 1 failed, 22 passed, 23 total
Tests: 1 failed, 94 passed, 95 total
Snapshots: 0 total
Time: 14.532s
Ran all test suites.

We expected 3 RuleNode components (one for each geometry style) to have been rendered, but we only got nothing.

A look at the LayerNode rendering shows why. It only considered the first feature style of any layer's scale range.

So once that was fixed, not only does our test pass, but we have visual confirmation that multi-geometry-style layers now render like they did in the Fusion and AJAX viewers.


So the reason for writing this post was just a re-affirmation of my choice for using React to build this viewer.

  • The top-quality developer/debugging experience.
  • The react way of thinking about UIs that allowed me to easily identify the culprit (the LayerNode component)
  • The top-quality testing ecosystem around React (Jest, enzyme) that allowed me to easily write a unit test on this component to confirm and verify my expectations

by Jackie Ng (noreply@blogger.com) at July 08, 2017 06:11 PM

gvSIG Team

Towards gvSIG 2.4: New OSM map services

In the next gvSIG Desktop version we will find new OpenStreetMap tile/map services.

We have added these services to the existing ones:

  • Open Sea Map, the free nautical chart that offers us a layer to add on any other background cartography (another OSM service for example) and which adds information about nautical-recreational tourism. It includes sea lights, buoys and other navigation signals, port information, repair shops, boat supplies and much more. Other associated services such as shops, restaurants and places of interest are also included. This service offers the black background, so using the transparency by pixel tool we will get a much more interesting visualization of the information to cross it with other layers. Here you have a video about it:

  • Open Railway Map. It is a service that offers us a layer of worldwide railway infrastructure. It includes infrastructures of all types of vehicles that run on rails, like train, metro, tram and funicular. Like the previous service the background colour of the layer is black, so we can use the transparency by pixel to cross it with other layers visually. Here you have a video:

  • Carto Dark and Carto Light, offered by Carto company under CC BY 3.0 license, with the OSM cartography in dark and light tones.
  • HOT Style. Style applied on the OSM base, focused in humanitarian emergency projects.

If you don’t want to wait for gvSIG 2.4 to use these services, you can add them manually from the “OSM” tab of the “Add layer” window. Here you have the data that you have to fill in for it:


Filed under: english, gvSIG Desktop, testing Tagged: carto dark, carto light, HOT, HOTOSM, nautical chart, open railway map, open sea map, OpenStreetMap, OSM, tile services, Webmaps

by Mario at July 08, 2017 03:58 PM

July 07, 2017

gvSIG Team

Learn GIS for free. Module 7: Raster GIS. Working with Raster Data

We continue with the seventh module of the free GIS course, where we are going to show you how to work with raster data in gvSIG Desktop.

With this module we start the second part of the course, focused on raster data. Through three video-tutorials we will see an overview of raster GIS concepts and capabilities, available open satellite images, and you will be able to learn to work with raster data, filters and masks….

To follow the course you need:

7.1 Available satellite images and data

7.2 RGB Colour composite

7.3 RGB Filters and masks

Enjoy!

Related post:


Filed under: english, gvSIG Desktop Tagged: course, free, landsat, open data, raster, remote sensing, satellite images, tutorial, video

by Alvaro at July 07, 2017 10:11 AM

July 06, 2017

gvSIG Team

Palabras a los alumnos de la IV Promoción de Grado en Ing. Geomática y II del Máster en Ing. Geomática y Geoinformación

Hoy he tenido el tremendo honor de ejercer de Padrino de la IV Promoción de Grado de Ingenieros en Geomática y Topografía y II Promoción del Máster Universitario en Ingeniería en Geomática y Geoinformación.

Algún alumno me ha comentado si podía publicar el pequeño discurso que he dedicado a los ya titulados. Creo que no hay mejor sitio que este blog. Aquí lo tenéis (y enhorabuena)…

Excelentísimo Sr. Rector, autoridades académicas, profesores, alumnos, familiares y compañeros. Es un honor haber sido elegido Padrino de esta promoción. Y como persona que os acompaña en este acto de graduación, aunque probablemente tengáis en estos momentos la cabeza llena de recuerdos, pensamientos y sensaciones de todo tipo, tengo la responsabilidad de dedicaros unas palabras que espero os sirvan de consejo y estimulo.

Lo primero que os quiero decir es que tenéis que estar orgullosos de haber llegado hasta aquí, orgullosos de haber alcanzado una de las metas de vuestra vida en una universidad pública. Y aunque no hace falta decirlo, pues se les ve en la cara a todos y cada uno de ellos, vuestros familiares deben estar orgullosos de vosotros. Aún con la incertidumbre de qué nos encontraremos mañana, es en estos años universitarios donde en gran parte maduramos intelectual y personalmente.

Creedme si os digo que con el paso del tiempo, no somos pocos los que pensamos que nuestros años de estudiantes universitarios son una de las mejores etapas de la vida, llenos de experiencias que van mucho más allá de los libros.

Y con la satisfacción de un objetivo cumplido suele venir el vértigo de qué vendrá a continuación. ¿Hacia dónde irán vuestras vidas laborales?

Un consejo: No dudéis, estáis preparados para afrontar las dificultades del camino. Lo más importante que se aprende en la universidad no son fórmulas que se olvidan, o tecnologías que antes o después quedaran obsoletas. Se aprender a ser capaz de afrontar cualquier dificultad, a progresar, individualmente y junto a los compañeros. No es tan importante lo que nos enseñan, como lo que aprendemos.

Se dice que la universidad es el templo de la ciencia, y sin duda la búsqueda del conocimiento es el mayor proyecto cooperativo que ha emprendido la humanidad. Y esta acumulación de conocimiento no tiene más objetivo que mejorar la vida de las personas. No os olvidéis de eso.

No os descubro nada si os digo que no es el mejor momento, que ahí fuera las cosas están difíciles y que estos años de estudio y sacrificio no os aseguran nada. Pero también estoy plenamente convencido de que vuestro futuro depende en su mayor parte de vosotros mismos.

Mi consejo es que no creáis a los que dicen que todo está escrito, a aquellos que dicen que esto y aquello es imposible. Pelead por vuestros sueños. Confiad en vosotros, en vuestras posibilidades.

No tengáis miedo a fracasar, que eso no os impida intentarlo. Que las dificultades no os hagan abandonar vuestros sueños. Nunca, nunca, dejéis de estar orgullosos de vosotros mismos.


Filed under: spanish

by Alvaro at July 06, 2017 09:10 PM

gvSIG Team

Vídeo-tutorial para aprender a crear un mapa temático con gvSIG

Hoy os traemos un nuevo vídeo-tutorial para que podáis aprender en pocos minutos a crear vuestros mapas en gvSIG Desktop. Siguiendo los ejercicios que se presentan en el vídeo, y que podéis replicar pues los datos están disponibles para descarga, veréis lo sencillo que es diseñar vuestros propios mapas.

Para acceder al vídeo y datos, seguid leyendo…


Filed under: gvSIG Desktop, spanish

by Alvaro at July 06, 2017 11:44 AM

July 05, 2017

gvSIG Team

I encuentro de Geobloggers. De qué hemos hablado…

Hoy se ha celebrado el I encuentro de Geobloggers, en el que he participado representando a este blog. Los ponentes teníamos 2 intervenciones, una para contestar una serie de preguntas predefinidas y otra para presentar a la organización -en nuestro caso la Asociación gvSIG-. Para los que no hayan podido asistir o seguir por streaming la charla, os dejo aquí el texto de mi intervención.

¿Qué has estudiado, a qué te dedicas y de qué habla tu blog?

Ingeniero Técnico en Topografía. Director General de la Asociación gvSIG, que es una entidad bajo la cual se ha constituido una red internacional de empresas y entidades que apuesta por tecnologías geo en la que los usuarios son propietarios de las mismas.

En el blog de gvSIG hablamos de todo lo que rodea al proyecto gvSIG, a su suite o catálogo de soluciones, a la Asociación y a la Comunidad gvSIG, tocando todo tipo de aspectos: técnicos (usuario y desarrollo), casos de éxito, de opinión, divulgación, eventos…

…Resalto el hablamos, porque el blog de gvSIG no es un blog personal, sino que pertenece a toda la comunidad. Aunque la estructura profesional es la más activa a nivel de publicación de post, cosa natural por formar parte de nuestro día a día…Revisando, hay post de 50 autores diferentes de más de 10 países. Idiomas: principalmente español e inglés, pero se pueden encontrar post en unos cuantos idiomas. Y bueno, me siento muy honrado de representar a todos estos autores y compañeros de blog en este evento.

¿Geoego? Marca personal, entre la autosuficiencia y la colaboración

gvSIG es un proyecto colaborativo. Y como tal el blog es un reflejo de ello. En nuestro caso el blog no es más (ni menos) que un mecanismo (quizá el más importante) de mantener un contacto con la comunidad e informarla de todo lo que rodea a la marca gvSIG.

Por la propia naturaleza del proyecto, la práctica totalidad de lo que hacemos se basa en la colaboración. El propio blog, como ya he comentado, pero también todo lo que en él se reseña (nuevos desarrollos, eventos que organizan las comunidades, documentación que comparte una determinada entidad, etc.).

Al respecto de la colaboración desde gvSIG apostamos por reivindicar la sociedad del conocimiento frente a la sociedad de la información, reivindicar un carácter activo y colaborativo, sin usos condicionados de la tecnología, frente a un carácter pasivo, meramente de consumo. Creo que algo de todo esto también se refleja en nuestro blog.

¿El tamaño importa? Seguidores, entre la cantidad y la calidad

En cuanto a números, un dato interesante es que el crecimiento de seguidores está siendo exponencial y se ha notado principalmente en los 2 últimos años, donde gvSIG pasó de ser un proyecto de SIG de escritorio a una suite de soluciones. El año pasado tuvimos más de 140.000 visitas, con lectores de la práctica totalidad de países. En 2017, a mitad de año, llevamos unas 80.000 visitas por lo que la progresión continua a buen ritmo.

El blog, como tal, ha recibido un par de nominaciones a distintos premios en este año, lo que supongo es otro indicativo a tener en cuenta.

¿Endogamia? Colaborar para divulgar

Uno de los apartados a responder en este bloque nos indicaba que habláramos de “Colaborar para divulgar”. En nuestro caso creo que sería más adecuado cambiar el orden de los factores, para ser más acordes a nuestro producto y lo dejaría en un “Divulgar para colaborar”. Ese es uno de los objetivos en todo lo que hacemos, sumar más y más gente al proyecto. En un proyecto de conocimiento compartido, y no sólo, por sus características también de economía social, la fuerza de la comunidad es más que relevante.

Divulgar por divulgar, sin un fin detrás, o divulgar con unos objetivos meramente mercantiles es algo ajeno a nuestra forma de entender el desarrollo de software. Y, por tanto, de entender una herramienta de divulgación como es un blog.

¿Qué herramientas usas?

Básicamente utilizamos WordPress como herramienta y su conexión con las redes sociales para divulgar todo lo que publicamos.

Parte 2. Asociación gvSIG

La Asociación gvSIG es una entidad que se creó por dos motivos principales, por un lado establecer un marco en el que pymes se pudieran organizar, complementar y colaborar para poner en marcha un modelo de negocio basado en el conocimiento compartido y en la colaboración -en toda la cadena de producción, no sólo en el área técnica.

Por otro asegurar el mantenimiento del catálogo de tecnologías que se fueran materializando en el marco de ese modelo de desarrollo. Lo que empezó como un SIG de escritorio, hoy es una suite que incluye también software para móviles y plataformas para Infraestructura de Datos Espaciales, e incorpora una serie de soluciones verticales, como gvSIG Roads -conservación de carreteras-, gvSIG Educa -educación- o el que esperamos anunciar en breve gvSIG Crime -seguridad ciudadana y análisis del delito-.

La idea es sencilla de enunciar, parte de los beneficios, de la riqueza que genera el desarrollo de estas tecnologías revierte en la sostenibilidad del proyecto.

Me gustaría hacer un paréntesis para resaltar algo que quizá en este marco no sea necesario: la creciente importancia que está adquiriendo lo Geo. Por otro lado es lógico: La realidad se manifiesta en el territorio. Herramientas que nos permitan gestionar el territorio nos permitirán gestionar de forma más eficiente la realidad.

Por tanto, estamos en un momento muy interesante, en el que más allá del típico SIG, los Sistemas de Información -en su sentido más amplio- empiezan a incorporar la capacidad de integrar la dimensión geográfica. Hablamos de geolocalización de las TIC.

Tecnológicamente estas necesidades se pueden solventar con dos enfoques. En ningún caso el problema es de cumplir o no un determinado requisito tecnológico. Creo que la principal innovación que aportamos es ofrecer soluciones a uno de los dos enfoques u opciones que tiene cualquier organización con necesidades geo.

O el usuario se convierte en propietario de la solución y adquiere independencia tecnológica o se perpetua el viejo modelo donde la libertad queda condicionada por las licencias de uso.

Creo que es importante, principalmente cuando hablamos de nuestras administraciones públicas, pagadas por todos, que existan ambas opciones. Que quién quiera tener la tranquilidad de evitar la dependencia de un determinado proveedor o software cerrado, encuentre alternativas profesionales con soluciones libres.


Filed under: gvSIG Desktop, spanish

by Alvaro at July 05, 2017 11:25 AM

gvSIG Team

Learn GIS for free. Module 6: Geoprocessing

We continue with the sixth module of the free GIS course, where we are going to show you how to work with the framework and set of tools for processing geographic and related data in gvSIG Desktop.

To follow the course you need:

6.1 Geoprocessing part 1

6.2 Geoprocessing part 2

6.3 Geoprocessing part 3

Enjoy!

Related post:


Filed under: english, gvSIG Desktop, training Tagged: course, Geoprocessing, tutorial, videos

by Alvaro at July 05, 2017 07:29 AM

July 04, 2017

OSGeo News

Website and Branding June Update

by jive at July 04, 2017 07:06 AM

July 03, 2017

gvSIG Team

Camino a gvSIG 2.4: Mayor funcionalidad usando gvpy desde Scripting

Como muchos ya conoceréis, gvpy es una librería que facilita la ejecución de geoprocesos desde scripting. De esta forma, es posible ejecutar geoprocesos de nuestra toolbox (incluido algunos que añadamos nosotros desde otros scripts) con una línea de código.

Para la nueva versión de gvSIG 2.4, se ha realizado un pequeño cambio en esta librería para gestionar objetos que antes no era posible capturar desde scripting. Por ejemplo, algunos geoprocesos como el de Perfiles, “profile”, tenían como salida una gráfica (un objeto creado por la librería jfreechart). Con esta nueva funcionalidad, es posible capturar este objeto, y procesarlo como si fuera otro más.

Por ejemplo, tenemos la tarea de generar una gran cantidad de perfiles correspondientes a las secciones de una carretera, tal y como aparece en la imagen en rojo.

Queremos guardar las imágenes de todos esos perfiles en una carpeta. Para ello podemos usar el geoproceso “profile”. El geoproceso “profile” genera un único perfil correspondiente a una línea, siendo un script básico así para una única línea:

# encoding: utf-8

import gvsig
from gvsig.libs import gvpy
reload(gvpy)
from org.jfree.chart import ChartUtilities
    
def main(*args):

    #Remove this lines and add here your code
    route = gvsig.currentView().getLayer("perfil_huesca")
    dem = gvsig.currentView().getLayer("MDTHuesca")
    r = gvpy.runalg( "profile",route,dem,"",False,"")

    aJFreeChart = r[0].getChart()
    from java.io import FileOutputStream
    out = FileOutputStream("C:/temp/imagen1.png")

    ChartUtilities.writeChartAsPNG(out,
            aJFreeChart,
            500, #aChartPanel.getWidth(),
            200)#aChartPanel.getHeight());

Por tanto, lo que nosotros haremos es repetir este geoproceso cada vez con una línea diferente de sección (cambiando la línea seleccionada en la capa) y grabando la gráfica de salida en una carpeta.

El script quedaría algo así:

# encoding: utf-8

import gvsig
from gvsig.libs import gvpy

from org.jfree.chart import ChartUtilities
from java.io import FileOutputStream
import os

def main(*args):

    route = gvsig.currentView().getLayer("Secciones transversales")
    dem = gvsig.currentView().getLayer("MDTHuesca")

    features = route.features()
    selection = route.getSelection()
    idfeature = 0
    for i in features:
        idfeature+=1
        selection.select(i)
        r = gvpy.runalg( "profile",route,dem,"",False,"",ADDLAYER=False)
        aJFreeChart = r[0].getChart()

        filename = gvsig.getTempFile("imagen_"+str(idfeature),".png", "C:\\temp")
        #filename = os.path.join("C:\\temp", "imagen_"+str(n)+".png")
        
        out = FileOutputStream(filename)
        ChartUtilities.writeChartAsPNG(out,
                aJFreeChart,
                500, #aChartPanel.getWidth(),
                200)#aChartPanel.getHeight());
        out.close()
        selection.deselectAll()
    return

Si cambiáis ADDLAYER por True, por cada ejecución del geoproceso se añadirá la capa correspondiente al perfil creado.

De esta forma, tendríamos en nuestra carpeta de salida todas estas imágenes de los perfiles, cada una correspondiente a una ejecución del geoproceso “Perfiles” con una entidad diferente seleccionada:

Este script es solo un pequeño ejemplo que se podría mejorar. Si realizas alguna mejora no dudes en ponerte en contacto con nosotros y procederemos a su publicación en el blog para compartirla con todos.

Saludos y espero que os sea de utilidad.


Filed under: development, gvSIG Desktop, scripting, spanish Tagged: gvPy

by Óscar Martínez at July 03, 2017 02:28 PM

gvSIG Team

Learn GIS for free. Module 5: Create and editing vectorial layers

We continue with the fifth module of the free GIS course, where we are going to show you how to create and editing vectorial layers.

Through three video-tutorials you will be able to learn to create point, line and polygon layers, and the varios commands you will need to edit your data.

To follow the course you need:

5.1 Create vectorial layers

5.2 Editing part 1

5.3 Editing part 2

Enjoy!

Related post:


Filed under: english, gvSIG Desktop, training Tagged: course, create layers, editing, tutorial

by Alvaro at July 03, 2017 06:52 AM

July 02, 2017

OSGeo News

Sol Katz Award for Geospatial Free and Open Source Software - Call for Nominations

by jsanz at July 02, 2017 04:54 PM

July 01, 2017

GIScussions

Sales & Marketing 101 at FOSS4G

For almost a year now, Marc Vloemans (Eclipse Foundation) and I have been thinking/talking/planning a workshop on Sales & Marketing for SMEs that we are presenting at FOSS4G in Boston in August. It is coming together well, or at least we think so, and we are excited about it’s first airing. We both have a background in sales and marketing and have spent the last decade or more in geospatial, however the workshop is not geo-specific, it is applicable to any small tech business or start up, even a one man band, whether they are a product/service business or a consulting firm. We call this workshop Sales and Marketing 101 (we were going to call it S&M 101 until my daughter pointed out that not everyone connected S&M with sales and marketing!) it’s aimed at small business managers and owners who do not have a background in sales and marketing.

A lot of tech businesses, including open source geo businesses, start from a strong technical foundation. They are often founded by talented developers or consultants who decide to do their own thing and rapidly discover that they need to acquire a range of skills that take them outside of their comfort zone – finance, management, HR, legal stuff and of course sales and marketing. Early successes start to tail off, despite the business growing in size (revenues and employees) significant profitability always seems to be just around the corner. If that is your business then you might benefit from spending a day with Marc and me in Boston in August (I hope to run the workshop in London later in the year and I am open to suggestions to run it  elsewhere in Europe as well).

This 1 day workshop is targeted at SMEs in the tech space, they may have a sales executive and/or a marketing person (mainly focussed on outbound marketing comms) but they would recognise themselves as being product or service driven as opposed to sales and marketing lead. Delegates will learn some key elements of strategic marketing and high level sales   including Strategic Positioning, Value Propositions, the Pain Chain, Asking the Right Questions and Pricing for Profit. The content is based on proven methods and approaches used by enterprise technology businesses, what makes this workshop different is the way we have adapted these elements to be easily adopted and relevant to small tech businesses and in particular to their leaders. The workshop is very participative, delegates will be required to do some preparation/homework before attending.

If you are a freelance technical consultant or you run a small open source geo business and you are attending FOSS4G in Boston you should consider signing up for our workshop on Tuesday 15th August. I know that you will come away with at least one new tool or technique to help you increase your sales and profitability. Thanks to the generosity of the FOSS4G Organisers you will also get a free pass (worth $40) to the B2B session and networking reception at the end of the day. if you have any questions about the workshop, contact us here.

If you aren’t going to Boston and are interested in attending our Sales & Marketing 101 workshop in London in November get in touch.

by Steven at July 01, 2017 04:04 PM