Posts

Showing posts with the label gvsig

Nueva prueba Molodensky-Badekas con gvSIG 2.0.0 (Venezuela, de Canoa a Regven)

He comprobado que el resultado coincide con el de Cartogeo. Estas instrucciones son para Windows. Para Linux se deben usar enlaces de descarga diferentes (solo hay que explorar la carpeta desde la que se hacen las descargas): - Instalar gvSIG 2.0.0. Lo puedes descargar aquí . - Añadir el plugin de Molodensky-Badekas. Lo puedes descargar aquí . - Crear una subcarpeta llamada "molodensky-badekas" en la carpeta de usuario "gvSIG". En Windows 7, es así: C:\Usuarios\[usuario]\gvSIG\molodensky-badekas\ - En esa carpeta, debes copiar este archivo que tiene los parámetros Canoa-Regven. - Finalmente, haz lo mismo que se ve en este vídeo .

Computing on the fly a reasonable layout for map legends

Image
For a given vector layer legend and a user-defined rectangle (established with mouse events: mouse down + dragging + mouse up) we need to compute the location and size of the area for each legend sample item. Our goal is simply having a nice-looking legend box like this one: So the parameters whose values we must compute automatically are: Number of columns Width ( w ) and height ( h ) of each sample item (the same for all) How many items we are going to draw (not necessarily all items available in the legend) We'll start by stating the criteria that will guide our little algorithm: The w/h ratio will be 8 at most. If we need to truncate a label to achieve this, we'll do. The font size and number of columns will be chosen so that available room is used in the best way. If h is less than 3 mm, we'll reduce the number of items included, but we must include all items if the total number of items available in the legend is 20 or less. If we cannot achi...

Using a nice map from National Geographic in gvSIG

Image
In 1998, the Winkel Tripel projection replaced the Robinson projection as the standard projection for world maps made by the National Geographic Society , its OGC WKT being: PROJCS["World_Winkel_Tripel_NGS",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]],PROJECTION["Winkel_Tripel"], PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",40.0], UNIT["Meter",1.0]] Using that string to create a user-defined CRS in gvSIG, we can easily reproject a world shapefile and then georeference (with gvSIG's georeferencing tool) one of those nice JPG images the National Geographic provides. I found a large one here . The result in gvSIG looks like this: A closer look shows that the shapefile adheres...

Otra mejora urgente en gvSIG: evitar el ‘terremoto’ cuando entras/sales de edición

Image
Cuando se entra o sale del modo edición, la anchura de la parte superior (que contiene los iconos) suele variar y esto provoca un desplazamiento de la ventana de la vista, o bien un redimensionado si esta se encuentra en modo maximizado. Posibles soluciones: Añadir barras de herramientas flotantes cuando no quede espacio para añadirlas en la parte superior, es decir, cuando añadirlas de la manera habitual significase crear una nueva fila de botones. Colocar las barras de herramientas en un sub-panel que no afecte al resto de la ventana principal. Esto es lo que ocurre con el TOC: si despliego sus elementos no estoy empujando a las otras zonas de la ventana principal.

gvSIG 2.0.0: Adding EPSG:900913 to the Proj4j-based plugin

Image
Some WMS and WMTS servers offer their images in the popular coordinate reference system EPSG:900913 (also known as EPSG:3857, "Spherical Mercator", "The OpenStreetMap/Google Maps coordinate system", etc). The new Proj4j -based plugin for gvSIG 2.0.0 (which is not yet the recommended CRS plugin) supports EPSG:3857 but does not know about the alternative code EPSG:900913. With these steps, we can add EPSG:900913 to the original Proj4j library and therefore will be able to use it naturally within gvSIG 2.0.0. I am assuming you have set up an Eclipse gvSIG development workspace : Download the Proj4j library from its SVN repository and re-build it after adding this line to the epsg list (I have truncated the second line just to show it here): # OSM/Google Maps Spherical Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs Install the resulting jar file to your local repository: ...

El orden de los ejes en los CRS de EPSG

Ojeando la web http://www.epsg-registry.org y las explicaciones de la especificación OGC WMS 1.3.0 , se deduce que las nuevas versiones de los protocolos y formatos de OGC (WMS, WFS, GML, etc) van a respetar rigurosamente las especificaciones de EPSG en lo que se refiere al orden en el que se colocan las coordenadas (es decir, si se coloca antes la X ó la Y, o bien si se coloca antes la longitud o la latitud). El resumen es este: Para CRS geográficos (coordenadas en grados) se usará siempre el orden [latitud, longitud]. Ejemplos: EPSG:4326 (datum WGS84), EPSG:4258 (datum ETRS89), EPSG:4230 (datum ED50). Para CRS proyectados (coordenadas generalmente en metros) se usará por lo general el orden [E, N], donde "E" significa "Eje en la dirección este-oeste" y "N" significa "Eje en la dirección norte-sur". Este orden es el "tradicional" que solemos llamar "X, Y". Ejemplos: EPSG:32630, EPSG:23030, etc. Excepcionalmente, algunos...

You don't need it every day but hey, looks nice!

Image
The 1,000-km buffer on a meridian in EPSG:4326 (WGS84) looks like this:

2011 OpenStreetMap year of edits video by Derick Rethans

Image
Derick Rethans has created this nice video showing last year's contributions to OpenStreetMap . It shows the Corine landcover import done in Spain in January 2011: OpenStreetMap (OSM) data You can access the OSM vector data using either its API or Xapi . You can download the OSM vector data in its original data format from here . Shapefiles and other formats can be downloaded from the CloudMade or the Geofabrik websites. You can also use lots of OSM-oriented applications such as osm2pgsql and combine them with gvSIG to do things like this:

Taller de gvSIG EIEL en las 7as Jornadas internacionales de gvSIG. Preparar la parte de MapSheets

Parte del taller de gvSIG EIEL que se va a desarrollar mañana jueves a las 15.45 aproximadamente se dedicará a realizar un ejemplo práctico de la extensión MapSheets (el módulo de impresión de gvSIG EIEL). Para quien quiera ir adelantando trabajo, desde esta carpeta se puede descargar el material a utilizar en esa parte del taller: http://tinyurl.com/taller-mapsheets El ejercicio consistirá aproximadamente en estos pasos: Crear una vista en EPSG:23030. Añadir los archivos ECW y SHP indicados. Cambiar el nombre a la capa SHP (puesto que así aparecerá en la leyenda del mapa). Cambiar la leyenda de la capa SHP. Se recomienda la opción por valores únicos basada en el tipo (tertiary, secondary, etc.). Establecer un grosor para las líneas entre 1 y 3 mm en el papel, por ejemplo. Realizar un zoom de manera que la vista abarque aproximadamente el 50% de la superfície del raster. Crear rejilla de MapSheets con escala 1:10.000 y tamaño 26 x 14 cm. Iniciar plantilla del mapa: papel...

Computing and applying an affine transformation to a vector layer using gvSIG and Quantum GIS

Image
Geomatics Supervisor and Egyptian Archaeology PhD student Anna Hodgkinson told me that she is trying to apply an affine transformation to a set of coordinates. These are originally in an unknown local coordinate system. She has provided 4 reference points for which both the local coordinates and the EPSG:32636 coordinates are known: ID ; EPSG_32636_X  ; EPSG_32636_Y   ; Local_X     ; Local_Y 1  ; 300646.885431 ; 3231905.223285 ; -144.333424 ; -50.678221 4  ; 300939.099675 ; 3232334.126771 ;  100.477740 ; 407.439814 7  ; 300519.458438 ; 3232235.904115 ; -304.216081 ; 262.236955 8  ; 300717.256565 ; 3232552.638076 ; -141.107317 ; 602.476276 First we need to compute which affine transformation takes the coordinates from the local grid to EPSG:32636. To achieve this, we can use the raster georeferencing tool in gvSIG since it lets you input by hand the source and target coordinates and then creates a WLD file whose 6 parameter...

Japan's main island shifted by 2.4 meters according to USGS

Image
The U.S. Geological Survey (USGS) says Japan's main island (Honshu, comprising ~60% of Japan's area and ~80% of its population) has moved about 8 feet (or 2.4 meters) during the tragic earthquake on 11 March 2011: http://www.worldnewsco.com/4303/usgs-earthquake-japan-moves-honshu-island-2-4-meters/ If this is true, all the Japanese large scale maps will have to be updated. They say the human eye can distinguish objects on a map if their length is bigger than 0.1 mm, so in which scale the 2.4 meter shift is visible? So 1:24,000 maps and bigger (1:10,000 etc) will have to be corrected. It will also be interesting to see if this change is visible in the Google Maps satellite layer. I have made a screenshot of level 21 where the change should be visible within a few weeks or months, when Google updates its imagery: Coordinates are: 35.6821332,139.752048

Fondos de escritorio de iluminación nocturna - Night light wallpapers

Image
Origen de los datos: http://www.lightpollution.it SRS: EPSG:32631 (Europa), EPSG:32630 (España), EPSG:32720 (Sudamérica) Georreferenciado con gvSIG Reproyectado con GDAL Tamaño: 1600 x 1200 pixels Data source: http://www.lightpollution.it SRS: EPSG:32631 (Europe), EPSG:32630 (Spain), EPSG:32720 (South America) Georeferenced with gvSIG Reprojected with GDAL Size: 1600 x 1200 pixels Santiago-Buenos Aires Brazil Spain Europe Escala constante - Fixed scale (1:2500000, 96 DPI) Buenos Aires & Paris    London & Sao Paolo    Madrid & New York (Philadelphia in SW)   

Europe & Arab World: population & purchasing power

Image
Done with gvSIG 1.10 Data source: wikipedia.org SRS: EPSG:32632

WGS84 vs NAD83: a little GPS simulation in gvSIG Mobile

Image
According to this article , the difference between the WGS84 and the NAD83 datums is in the order of 1 meter. Unless one is in a context where highly-accurate coordinates are needed, it should be feasible to consider them equivalent. I have done a little test to see if that is actually the case using gvSIG Mobile 0.3 . From this nice American website I have downloaded and cropped an aerial image of the city of St Paul, MN (keeping the original SRS, which is EPSG:26915 ), and then I have created a NMEA simulation file, which contains the NMEA messages a GPS device would create during a little walk in the center of that city. Keep in mind that: EPSG:26915 = NAD83, UTM, zone 15N EPSG:32615 = WGS84, UTM, zone 15N If we set the SRS to EPSG:32615 in gvSIG Mobile, then add the ECW image (EPSG:26915) and then perform a GPS simulation, the result is this: As we can see, there is not a visible offset between the GPS track and the narrow path we can see in that park. You can downlo...

Funny mention of gvSIG Mobile

gvSIG Mobile is suggested in this interesting document as a technical solution: http://www.unon.org/ssse/documents/EOI_STDM_Phase2_18Aug.pdf As for the data upload, I wonder if they know the Tellus project

Descarga de datos vectoriales de Catastro

Image
Por su interés, reproduzco literalmente un email de Enrique Lorenzo Herrero enviado a la lista de correo de gvSIG: Bueno, como dirían los británicos, "this is embarrassing"... :-) Lo digo porque creo que en demasiadas ocasiones hay que buscar alternativas un poco raras para resolver cosas que muchos pensamos que deberían estar fácilmente a disposición de todas y todos. En este caso me refiero exclusivamente a la descarga de archivos de cartografía vectorial parcelaria. La cartografía parcelaria no son datos personales ni datos protegidos, sino que se trata de una infraestructura cartográfica básica, que habría que independizar claramente de los datos protegidos, cuya disponibilidad pública puede incentivar el desarrollo (más en tiempos de crisis), y a la que algunas personas tienen acceso gracias a que cuentan con información difícil de encontrar, y otros no consiguen acceder porque quizá no están claramente establecidas las condiciones o las formas de acces...

French RGF93 - Lambert 93 will be available in gvSIG Mobile

Image
Thanks to Hervé Quinquenel (from the French Ecole Nationale des Sciences Géographiques , ENSG, http://www.ensg.eu and the Institut Géographique National , IGN, http://www.ign.fr ) we now have the official formulas for the conversion between WGS84 coordinates (EPSG:4326, used by the GNSS systems such as GPS) and the new official French projection (RGF93 - Lambert 93, EPSG:2154). You can see the formulas in the source code SVN repository, searching for the tag "AJOUT HERVE" in this file . Of course this conversion will also be available in the upcoming gvSIG Mobile 1.0. To check the correctness of this new Java code, we can use the coordinates of the Point zéro des routes de France (France road system zero point): EPSG:2154 X = 652215.52 m Y = 6861681.77 m EPSG:4326 48º 51' 12.24845'' N (48.8534023472) 2º 20' 55.62563'' E (2.3487848972) If we use those EPSG:4326 coordinates as the input for the formulas sent by Hervé, we get: X = 6522...

Little internet miracles we surely do not deserve

I have incidentally found these two nice things that might interest the GIS community: A huge shapefile with all the municipalities of France (+30,000 polygons), and their names and population. Very accurate, a vertex every few meters. About 7 million edges in one SHP file: http://sandre.eaufrance.fr/ftp/incoming/ONEMA/ADCO_France/ (EPSG:2154, I think) NTv2 grid files to transform from/to the OSGB36 and ETRS89 datums (United Kingdom): http://lists.maptools.org/pipermail/proj/2006-November/002658.html I'm almost sure those grids have been derived by intensively querying Ordnance Survey's conversion service: http://gps.ordnancesurvey.co.uk/etrs89geo_natgrid.asp Have not tested, but I also believe that the accuracy of that grid is not significantly worse than that of the web service itself, so that gives you an error below 10 cm (if I understood it well) for the whole country.

NTv2 grids: CANOA to WGS84 and more

Some interesting NTv2 transformation grids can be downloaded from here (bottom of page): http://www.killetsoft.de/p_trdn_e.htm Following a previous post , here is the Canoa to WGS84 transformation grid (download as a ZIP file and uncompress to get the GSB file which can be used in gvSIG and other GIS applications): [Download Canoa to WGS84 transformation grid] It's made up of 65136 nodes located across Venezuela and computed using the Molodensky-Badekas formulae with the ten official parameters. Therefore, this grid imitates the M-B transformation method. The average offset d (and its standard deviation s ) between the result provided by this grid and the result of the formulae is approximately: d = 0.00093 m = 0.93 mm s = 0.00023 m = 0.23 mm Official parameters can be seen here: http://www.sirgas.org/fileadmin/docs/regvenPDVSA.pdf Special thanks to: Hermógenes Suárez (PDVSA, Venezuela) José Nicolás Pérez Duin (PDVSA, Venezuela)

Transformación de CANOA (Venezuela) a WGS84 en gvSIG mediante una rejilla que simula el método Molodensky-Badekas

Image
Puesto que gvSIG 1.9 no permite utilizar la transformación Molodensky-Badekas de 10 parámetros , una alternativa consiste en crear una rejilla o grilla de transformación en formato NTv2 utilizando los resultados de la transformación en un gran número de puntos de control repartidos por todo el territorio (en este caso, Venezuela). Hermógenes Suárez y José Nicolás Pérez Duin han publicado en la lista de usuarios de gvSIG una hoja de cálculo con las fórmulas y los parámetros necesarios para realizar la transformación. Para realizar la rejilla de transformación, partimos del rectángulo mínimo que contiene a todo el territorio de Venezuela: Longitud: [-73.5, -59.75] Latitud: [0.5, 12.25] La distancia entre los nodos de la rejilla debe, por un lado, ser lo suficientemente pequeña como para proporcionar una precisión adecuada, pero por otro lado no debemos generar una rejilla con un número desorbitado de nodos. En el primer intento, generaremos una rejilla con una distancia entre nodos de ...