The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Adopting OGC Standards in São Paulo Flood Alert System - FOSS4G 2014 - PDX
1. Case Report : Adopting OGC
Standards in São Paulo Flood
Alert System
Ivan Francolin Martinez
ivanfm@{saisp.br,ifsp.edu.br}
Engineer
Cristiane Pires Andrioli
cristiane@saisp.br
Meteorologist
Flavio Conde
conde@saisp.br
Engineer
2. São Paulo, SP, Brazil
Region Citizens Estimate
São Paulo State 44,0 248,222
São Paulo Metropolitan Area 20,8 8,500
São Paulo City 11,8 1,521
São Paulo State
IBGE 2014 (millions)
São Paulo City
Area (Km²)
Metropolitan Area
9. São Paulo Flood Alert System - SAISP
Telemetrical Stations: 322 (9 Inmarsat, 313 GPRS), Solar Powered
260 million records since 1991, 42 million records in 2013
13. Main Users
● São Paulo Emergency Management Center (CGE)
● Water and Energy Users
○ DAEE (state water and energy department)
○ SABESP (Water)
○ EMAE / AES Eletropaulo (Energy)
● Others
○ Civil Defense
○ Municipality
○ Civil Construction
14. CGE - São Paulo Emergency Center
http://www.cgesp.org
2013-01-08 20:48
15. Infrastructure
● Virtual Machines
○ VMWare ESXi
○ Amazon EC2 (backup)
● CENTOS
○ Varnish 3
○ Apache HTTP Server
● Java 7
○ Apache Tomcat 7
○ Geoserver 2.5
● IBM DB2 - Express C
○ XML and Geospatial Data
○ 260 million records
○ 47 GB
16. São Paulo Flood Alert System - SAISP
http://www.saisp.br
varnish httpd
tomcat
DB2
database
geoserver
only local users
have access to
geoserver requests
via varnish
WMS
WFS
All services run on virtual machines with redundancy.
17. What we use
● WMS / WFS (local and external)
● Geoserver / Geotools
○ Images and WFS
■ shapefiles, product data
○ ImageMaps (text/html output)
■ navigation in out application
■ data hints
18. What we use
CQL to split data in separate images
<wmsProductLayer description="CTR" productId="V2_PNOVA2_CTR-P030_" url="__WMS_GEO2__" public="1" latest="0"/>
<wmsProductLayer description="CTR - Passado" productId="V2_PNOVA2_CTR-P030_" url="__WMS_GEO2__" public="1"
latest="0">
<wmsParameter name="cql_filter">type = 'past'</wmsParameter>
</wmsProductLayer>
<wmsProductLayer description="CTR - Atual" productId="V2_PNOVA2_CTR-P030_" url="__WMS_GEO2__" public="1" latest="
0">
<wmsParameter name="cql_filter">type = 'current'</wmsParameter>
</wmsProductLayer>
<wmsProductLayer description="CTR - Previsão - 10 em 10 minutos" productId="V2_PNOVA2_CTR-P030_" url="
__WMS_GEO2__" public="1" latest="0">
<wmsParameter name="cql_filter">type = 'forecast'</wmsParameter>
</wmsProductLayer>
<wmsProductLayer description="CTR - +30minutos" productId="V2_PNOVA2_CTR-P030_" url="__WMS_GEO2__" public="1"
latest="0">
<wmsParameter name="cql_filter">type = 'last_forecast'</wmsParameter>
</wmsProductLayer>
19. What we use
SLD and CSS for styling
<Name>Current</Name>
<Title>Blue Line</Title>
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>type</ogc:PropertyName>
<ogc:Literal>current</ogc:Literal>
</ogc:PropertyIsEqualTo></ogc:Filter>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#0033CC</CssParameter>
<CssParameter name="stroke-width">1</CssParameter></Stroke></LineSymbolizer>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple" xlink:href="http://www.saisp.br/estaticos/images/bola_azul.svg" />
<Format>image/svg+xml</Format></ExternalGraphic>
<Size>6</Size></Graphic>
</PointSymbolizer>
30. Geotools - Development
● Our Implementation
○ Database Datastore
■ interface to our catalog on database
○ File Datastore
■ direct support for reading Radar files
● Using JMapFrame for basic testing
○ http://docs.geotools.org/latest/userguide/unsupported/swing/jmapframe.html
● Place your jars in the directory
○ geoserver/webapps/geoserver/WEB-INF/lib
31. Geotools - Data conversion
● Using polygons instead of raster for better control and
quality in presentation
● Some RADAR products have multiple types of data
● Two solutions
○ schema with multiple fields
○ two schemas using different DataStores to read same file
● All our data in EPSG 4326, geotools converts when
necessary
32. Next Steps
● Telemetrical Data
○ Implement SOS interface;
○ Implement in a DataStore with TIME support.
● Offer direct WMS access to external users
● MultiDimension support using ImageMosaic