map print module
TRANSCRIPT
![Page 1: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/1.jpg)
camptocamp / 9. septembre 2010 / www.camptocamp.com / [email protected]
Printing in a web mapping application
MapFish print module
![Page 2: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/2.jpg)
Outline- Camptocamp- Examples- Architecture- Supported Readers- Components- Typical Configuration- Future Work- Wrap up- Resources
![Page 3: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/3.jpg)
Chambéry
Lausanne
Open Source solutions provider as editor and integrator
Staff of 35 in Switzerland and France Camptocamp helps you move forward
with the latest Open Source technologies
![Page 4: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/4.jpg)
Camptocamp activity domains
Geospatial Solutions
Infrastructure Solutions
Business Solutions
CONSULTING, RESEARCH & DEVELOPMENT
ENGINEERING, IMPLEMENTATION
OPEN SOURCE SUPPORT
TRAINING
Webmapping GIS Geopspatial databases Spatial Data
Infrastructure OGC Web Services
ERP Business Intelligence ETL
Linux HTTP, Apache Load
balancing Cloud computing (AWS) VoIP
![Page 5: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/5.jpg)
Sightings- EPFL Plan
http://plan.epfl.ch/
- Swisstopo Geoadmin http://map.geo.admin.ch/
- Mapfish demo site http://demo.mapfish.org/mapfishsample/1.2/examples/print/
- GeoOrchestra (Not yet released)- Geoserver integration (No photos)
http://docs.geoserver.org/stable/en/user/community/printing/
![Page 6: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/6.jpg)
EPFL (Ecole Polytechnique Fédérale de Lausanne)
![Page 7: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/7.jpg)
EPFL Output
![Page 8: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/8.jpg)
Swisstopo Geoadmin
![Page 9: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/9.jpg)
Swisstopo Geoadmin Output
![Page 10: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/10.jpg)
GeoOrchestra(Not yet in production)
![Page 11: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/11.jpg)
Mapfish Demo Site
![Page 12: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/12.jpg)
Mapfish Demo Site
![Page 13: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/13.jpg)
Mapfish Demo Site Output
![Page 14: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/14.jpg)
Architecture
GeoExt print components
Java Print Server
Rest API
PageLayouts
DataReaders
PageComponents
![Page 15: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/15.jpg)
Outline of Rest API- GeoExt uses Rest API
info.json (GET) – get print parameters• Scales• DPIs• Layouts
print.pdf (GET) – create and obtain pdf create.json (POST) – create pdf and obtain URL for later download of PDF
![Page 16: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/16.jpg)
Layouts- YAML file describes layouts- Several layouts- info.json lists layouts- Layout components and maps- No restriction on number of components or page
![Page 17: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/17.jpg)
Layout Areas- Title Page
Optional
- Main Page Required
- Last Page Optional
- Header Optional
- Footer Optional
![Page 18: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/18.jpg)
Components- Map
Restrict DPI, Scale, servers Overview option
- Scalebar Text Graphic
- Legend- Text- Image- Dynamic Copyright- Attributes
Display table of attributes read from GeoJSON features
- Columns Table with arbitrary data
![Page 19: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/19.jpg)
Supported Readers- Web Map Server (WMS)- Google Maps- Tile Map Server (TMS)- Image- KaMap- KaMapCache- Open Street Map (OSM)- Tile Cache- GeoJSON
![Page 20: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/20.jpg)
Configuration Snippetlayouts: A4 landscape: mainPage: rotation: false pageSize: A4 landscape: true#---------------------------------------# header#---------------------------------------
header: height: 75 items: - !columns widths: [70, 30] items: - !text fontSize: 24 fontColor: #333333
![Page 21: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/21.jpg)
Future Direction- Plugin architecture
Components (Exists somewhat) Readers
- Embedded jetty solution for those who want scalability but not Java web-server configuration
- Print to image- Unlimited scales
![Page 22: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/22.jpg)
Wrap up- Nice, simple printing- Flexible- Standalone or Mapfish integration
![Page 23: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/23.jpg)
Resources- Camptocamp
http://www.camptocamp.com/
- Mapfish http://www.mapfish.org
- Print subproject http://www.mapfish.org/doc/print/
- Mapfish Print Examples http://demo.mapfish.org/mapfishsample/1.2/examples/print/
- Geoserver printing Module: http://docs.geoserver.org/stable/en/user/community/printing/
![Page 24: Map Print Module](https://reader035.vdocument.in/reader035/viewer/2022081717/54f68b3f4a7959123e8b4856/html5/thumbnails/24.jpg)
camptocamp SA / www.camptocamp.com / [email protected]
Thank you for your attention
Camptocamp SA
[email protected] +41 21 619 10 10 +33 4 79 44 44 94