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

7.3.09

Caveats when using OpenLayers consuming WMS services

OpenLayers is great API to build client side javascript map applications. It is now in the 2.7 release version an it is more than two years old. These two things makes it a good choice to build web map applications, since it has a thriving community of users and lots of success-cases alredy in use in many different environments. It also offers the possibility to add map services from different sources, such as Yahoo Maps, Microsoft Live Maps, Google Maps (of course) and, WMS servers. And here is when problems may arise if you don't have a clear idea about how WMS services work.

As every web map developer should know, WMS is an OpenGeospatial Consortium specification and according to the official definition, it allows to make requests to a WMS server and the "response to the request is one or more geo-registered map images (returned as JPEG, PNG, etc) that can be displayed in a browser application". In my opinion, here comes the confusion. A newcomer developer with a background in the usage of Google Maps may think that "onr or more" map images is something similar to a tiled service. That is not the case. Each WMS request produces just only one image (typically). Not a tiled set of images corresponding to the request. Actually, OGC is now in the process of discussion to provide an OGC standard specification to retrieve WMS tiled images. By the way, a little piece of technology patriotism here. One of the two organizations working on it is the CREAF, from the Autonomous University of Barcelona and the other being CubeWrex. WMS specification was first intented as a request - response protocol, before Google and other vendor started to provide fast tiled maps. Now, almost every customer or geoservices provider wants to add fast tiled maps to their applications.

What happen when you add a WMS service in OpenLayers? By default, OL internally prepares the request to make a sort of tiled requests to the server (you can easily see how it works using Firebug). This could be very dangeruous in terms of performance for your Map server application. Imagine 10 concurrent requests, divided into 10 tiles each one. We were demanding to the server to process 100 request at the very same moment. Obviously, the time needed to proccess the last ones would be considerable. Well, it also depends on your hardware and balancing architecture, but it is not reasonable to demand this kind of processing power when you can choose more efficient alternatives. Those alternatives could be:
  • use a single request option when adding WMS layers
    singleTile: true
  • use tiled services coming from TileCache or GeoWebCache
  • wait until the official WMS-cached specification is available (joking)
All of this is of special importance specially when consuming external or not owned WMS services, because it can heavily affects your map performance. Therefore, if you see out there a fast compelling application using just only WMS layers, it is almost sure that they are using any kind of tiling process in the background (unless they have a cloud computing farm of servers).

Side note: OL can now leverage the new ArcGIS Server REST API (clap, clap, clap)

Final question: Is it always mandatory to provide map services as WMS? Is WMS now the best protocol to deliver fast map applications?

Share/Save/Bookmark

4.9.07

El CNIG

El Centro Nacional de Información Geográfica de España, pone a disposición del público general en su web, tanto datos, como aplicaciones interesantes (de conversión de coordenadas), lo cual es una buena noticia. Sin embargo, al intentar utilizar estos datos, resulta que:
  1. El servicio de transformación de coordenadas tiene un error de javascript (form1 is not defined javascript:form1.submit() Line 1), que impide su uso en Firefox. Es un error muy tonto de corregir, basta con seguir la normativa W3C y usar: document.forms["form1"].submit().
  2. Los datos que nos podemos descargar, como la BCN2000, están en formato DGN. ¿Cómo los puedo leer o utilizar? Simplemente no puedo, debería tener Microstation para poder hacerlo. ¿Por qué no están en GML, shape, o DXF?
Una lástima que el centro de referencia de la información geográfica en España no cuide estos detalles.


Powered by ScribeFire.

Share/Save/Bookmark

28.8.07

Software imprescindible en el desarrollo de aplicaciones SIG

Durante el tiempo que llevo desarrollando aplicaciones SIG los siguientes programas me han resultado imprescindibles. Seguro que se me olvida alguno pero estos son IM PRES CIN DI BLES:
  1. Eclipse (http://www.eclipse.org) Versión Java for Enterprise Applications
  2. WinMerge (http://winmerge.org/) Para comparar archivos / Diff Meld (http://meld.sourceforge.net/) en Linux
  3. Notepad++ (http://notepad-plus.sourceforge.net/es/site.htm) Editor de textos / Geany (http://geany.uvena.de/) en Linux
  4. Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) para conectarse a equipos remotos Linux/UNIX / En linux basta con poner ssh -X usuario@host y ya estás conectado, el -X es por si quieres arrancar ventanas gráficas en tu sesión.
  5. WinSCP (http://winscp.net/eng/docs/lang:es) para subir/bajar archivos a equipos remotos / En Linux al instalar ssh se integra automáticamente con el nautilus
  6. Process Explorer (http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx) Sustituto al gestor tareas de windows / En Linux, ps -ef, o top, monitor del sistema, etc...
  7. Firefox (http://www.mozilla.org) el mejor navegador web
  8. Firebug (http://www.getfirebug.com/) extensión de Firefox para desarrollo web
  9. GVSIG (http://www.gvsig.gva.es/) Software SIG de la Generalitat Valenciana
  10. QGIS (http://www.qgis.org/) Otro SIG
  11. uDIG (http://udig.refractions.net/confluence/display/UDIG/Home) otro...
  12. KOSMO (http://www.saig.es/kosmo.php) y otro más...
  13. Apache Tomcat (http://tomcat.apache.org/) Contenedor de servlets
  14. Geoserver (http://geoserver.org/) Servidor de mapas
  15. Mapserver (http://mapserver.gis.umn.edu/) Servidor de mapas, otro


Powered by ScribeFire.

Share/Save/Bookmark

6.6.07

KML y OCG

Parece que el formato KML de Google y el OGC van a unir esfuerzos para intentar incorporar este formato como un estándar en una siguiente versión. El dinamismo de los de Google les puede venir muy bien a los del OGC. A ver qué pasa.





Powered by ScribeFire.

Share/Save/Bookmark