From 84eb0efe211dcf8a28876a25007d2ea252a88afb Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 11 Dec 2011 11:20:15 -0800 Subject: [PATCH] remove all old trac link break oddities --- BuildingSymbolizer.md | 3 ++- DebuggingMapnik.md | 3 ++- GettingStartedInXML.md | 3 ++- HaitiStyles.md | 3 ++- HomeOld.md | 6 ++++-- MacInstallation_Source.md | 3 ++- MapnikCodeSprint.md | 6 ++++-- MapnikTutorials.md | 9 ++++++--- MapnikViewer.md | 3 ++- MarkersSymbolizer.md | 6 ++++-- MetaWriter.md | 6 ++++-- Nik2Img.md | 3 ++- OsmPlugin.md | 21 ++++++++++++++------- PointSymbolizer.md | 15 ++++++++++----- PolygonPatternSymbolizer.md | 3 ++- PolygonSymbolizer.md | 9 ++++++--- ScaleAndPpi.md | 3 ++- ShieldSymbolizer.md | 12 ++++++++---- Troubleshooting.md | 9 ++++++--- WindowsInstallation.md | 6 ++++-- XMLConfigReference.md | 6 ++++-- 21 files changed, 92 insertions(+), 46 deletions(-) diff --git a/BuildingSymbolizer.md b/BuildingSymbolizer.md index 98b13da..9a7a1e6 100644 --- a/BuildingSymbolizer.md +++ b/BuildingSymbolizer.md @@ -40,5 +40,6 @@ A BuildingSymbolizer is used to create a pseudo 3D effect on polygons. Example output: - [[BR]] + + [[Image(BuildingSymbolizer.png)]] diff --git a/DebuggingMapnik.md b/DebuggingMapnik.md index f7ee435..0826496 100644 --- a/DebuggingMapnik.md +++ b/DebuggingMapnik.md @@ -13,7 +13,8 @@ Currently I have these questions: ## Eclipse Here I try to describe my setup. I'm sure there are better ways but this works for me: - * Checkout the newest trunk version of the repository: `svn checkout http://svn.mapnik.org/trunk mapnik_trunk`[[BR]] + * Checkout the newest trunk version of the repository: `svn checkout http://svn.mapnik.org/trunk mapnik_trunk` + This has the advantages that * you always have the newest version (`svn update`) * you can quickly add test code and remove it again (`svn revert`) diff --git a/GettingStartedInXML.md b/GettingStartedInXML.md index fe5e874..1c33e2f 100644 --- a/GettingStartedInXML.md +++ b/GettingStartedInXML.md @@ -95,7 +95,8 @@ Note: you will need to download the [modified world borders shapefile](http://tr * Note: this file is originally from [Thematic Mapping Blog](http://thematicmapping.org/downloads/world_borders.php). The version attached here is the simpler shapefile provided there with some modification made to avoid problems that occur when displaying the map in projections such as 900913/3785 (this tutorial does not use this projection so you can use the original shapefiles as well). See [ticket 308](http://trac.mapnik.org/ticket/308) for details. This script should result in a graphic like this: - [[BR]] + + [[Image(world_population_minimized.png)]] diff --git a/HaitiStyles.md b/HaitiStyles.md index 678dadd..6005758 100644 --- a/HaitiStyles.md +++ b/HaitiStyles.md @@ -6,7 +6,8 @@ Sandbox for keeping haiti specific style renderings. - [[BR]] + + [[Image(fgdc_and_osm.png)]] diff --git a/HomeOld.md b/HomeOld.md index 3c5c1bf..92507b3 100644 --- a/HomeOld.md +++ b/HomeOld.md @@ -19,7 +19,8 @@ High-level Python bindings (boost.python) facilitate rapid application developme -Have fun! [[BR]] +Have fun! + _The Mapnik Team_ @@ -27,7 +28,8 @@ _The Mapnik Team_ * *What is Mapnik?* * MapnikOverview | DemoGallery | [mapnik.org](http://mapnik.org/) - * Commit Timeline at [Ohloh](https://www.ohloh.net/projects/mapnik): [[BR]] [[Image(http://www.ohloh.net/p/mapnik/analyses/latest/commits_spark.png)]] + * Commit Timeline at [Ohloh](https://www.ohloh.net/projects/mapnik): + [[Image(http://www.ohloh.net/p/mapnik/analyses/latest/commits_spark.png)]] * *Installing Mapnik* * MapnikInstallation - Guides for installing Mapnik diff --git a/MacInstallation_Source.md b/MacInstallation_Source.md index ef9c30d..20d6acb 100644 --- a/MacInstallation_Source.md +++ b/MacInstallation_Source.md @@ -26,7 +26,8 @@ There are *three main routes* for getting Mapnik installed on Mac OS X. * /System/... means you are using the python pre-installed by Apple * /Library/... means you are likely using MacPython from http://python.org - [[BR]] + + [[Image(http://trac.mapnik.org/raw-attachment/wiki/MacInstallation/mapnik_on_mac_os.png)]] # Step 1: Install Xcode diff --git a/MapnikCodeSprint.md b/MapnikCodeSprint.md index a6f1193..06679a4 100644 --- a/MapnikCodeSprint.md +++ b/MapnikCodeSprint.md @@ -9,12 +9,14 @@ us approach complex topics with immediate feedback. ## Upcoming Mapnik Code Sprints ### [Mapnik Code Sprint 02](/wiki:MapnikCodeSprint/MCS02/) -*Date* To Be Determined, early 2011[[BR]] +*Date* To Be Determined, early 2011 + *Location* To Be Determined ## Previous Mapnik Code Sprints ### [Mapnik Code Sprint 01 - Committers and Cartographers](/wiki:MapnikCodeSprint/MCS01/) -*Date* Friday, 24 September 2010 - Sunday, 26 September 2010 [[BR]] +*Date* Friday, 24 September 2010 - Sunday, 26 September 2010 + *Location* London, England and San Francisco, USA diff --git a/MapnikTutorials.md b/MapnikTutorials.md index 84092ac..fad9e93 100644 --- a/MapnikTutorials.md +++ b/MapnikTutorials.md @@ -10,19 +10,22 @@ Make sure to see LearningMapnik for more topics GettingStarted - 'Hello,world!' using the Python bindings. -[[BR]] + + [[Image(hello.png)]] ## World Population [[XMLGettingStarted]] - Python and XML styling -[[BR]] + + [[Image(population.png)]] ## Advanced Resources -[[BR]] + + [[Image(14__5531__9871.png)]] * MapsFromScratch - http://mapsfromscratch.com/ diff --git a/MapnikViewer.md b/MapnikViewer.md index d2c9733..b0a947b 100644 --- a/MapnikViewer.md +++ b/MapnikViewer.md @@ -7,7 +7,8 @@ The Mapnik Viewer is a GUI tool for rendering and viewing maps based on Mapnik X It's available under source:trunk/demo/viewer and needs to be compiled after manually modifying the build settings. ---- - [[BR]] + + [[Image(mapnik_viewer.png)]] ---- diff --git a/MarkersSymbolizer.md b/MarkersSymbolizer.md index 74401e9..e251f9c 100644 --- a/MarkersSymbolizer.md +++ b/MarkersSymbolizer.md @@ -23,8 +23,10 @@ It can be added to a Rule with line features like: [[Image(http://trac.mapnik.org/raw-attachment/ticket/180/offsets_directions.png)]] -The MarkersSymbolizer should draw blue directional arrows *in the direction of the geometry* (for things like one-way streets).[[BR]] -In case you notice arrows pointing the wrong direction, this means that the segment has been coded in the wrong way.[[BR]] +The MarkersSymbolizer should draw blue directional arrows *in the direction of the geometry* (for things like one-way streets). + +In case you notice arrows pointing the wrong direction, this means that the segment has been coded in the wrong way. + The ST_reverse function of Postgis can fix this (The problem will then be to identify the geometries that need to be updated). ### SVG markers diff --git a/MetaWriter.md b/MetaWriter.md index 63f8178..bdd0e58 100644 --- a/MetaWriter.md +++ b/MetaWriter.md @@ -14,9 +14,11 @@ Slides from State of the Map Europe 2011 are [available](http://trac.mapnik.org/ See also Herm's demo, which highlights both visible and invisible features: http://r2d2.stefanm.com/mapnik/demo.html -[[BR]] + + [[Image(metawriter_bbox_around_width_plus_stroke.png)]] -[[BR]] + + The above graphic highlights output (geojson) representing the clickable area of a MarkersSymbolizer rendered circle. This circle can change size dynamically depending on the width/height of the shape plus the thickness of the stroke and the bbox output by the MetaWriter will be intelligent to all rendering parameters. ## MetaWriter Configuration diff --git a/Nik2Img.md b/Nik2Img.md index 5324f57..f8e8ee8 100644 --- a/Nik2Img.md +++ b/Nik2Img.md @@ -22,7 +22,8 @@ To Install: *Note:* These instructions are for the nik2img 0.3.0 release or above. - [[BR]] + + [[Image(states.png)]] ### If you want to render your XML mapfile just do: diff --git a/OsmPlugin.md b/OsmPlugin.md index 3eb7e84..e878f0c 100644 --- a/OsmPlugin.md +++ b/OsmPlugin.md @@ -100,13 +100,20 @@ Styling the output is done in the same way as for other data sources, with tests Polygon support is not yet very sophisticated. A few pre-defined tag/value combinations are assumed to be polygons; all others are assumed to be linear ways. Currently these tag/values are assumed to be polygons: -- natural=wood[[BR]] -- natural=water[[BR]] -- natural=heath[[BR]] -- natural=marsh[[BR]] -- military=danger_area[[BR]] -- landuse=forest[[BR]] -- landuse=industrial.[[BR]] +- natural=wood + +- natural=water + +- natural=heath + +- natural=marsh + +- military=danger_area + +- landuse=forest + +- landuse=industrial. + These are defined in the polygon_types class in the source file osm.h, so if you want to add others for your own use, that's the place to go. diff --git a/PointSymbolizer.md b/PointSymbolizer.md index 365a33c..bab874e 100644 --- a/PointSymbolizer.md +++ b/PointSymbolizer.md @@ -4,8 +4,10 @@ # PointSymbolizer -A PointSymbolizer specifies the rendering of a "graphic symbol" at a point.[[BR]] -If you want to draw a graphic symbol and a text you would better use a ShieldSymbolizer.[[BR]] +A PointSymbolizer specifies the rendering of a "graphic symbol" at a point. + +If you want to draw a graphic symbol and a text you would better use a ShieldSymbolizer. + Staring from r1793 PointSymbolizer supports [Scalable Vector Graphics (SVG)](http://www.w3.org/TR/SVG/) as input images, see examples below. @@ -24,11 +26,13 @@ see examples below. === Default === -[[BR]] + + [[Image(htdocs:/images/point_symbolizer_1.png)]] -[[BR]] + + [[Image(http://media.mapnik.org/images/streets2.png)]] #### XML @@ -49,7 +53,8 @@ see examples below. }}} === Image label === - [[BR]] + + [[Image(htdocs:/images/point_symbolizer_2.png)]] ==== XML ==== diff --git a/PolygonPatternSymbolizer.md b/PolygonPatternSymbolizer.md index f286e45..0c5a877 100644 --- a/PolygonPatternSymbolizer.md +++ b/PolygonPatternSymbolizer.md @@ -13,7 +13,8 @@ ## Examples -[[BR]] + + [[Image(http://media.mapnik.org/images/polygon_pattern.png)]] diff --git a/PolygonSymbolizer.md b/PolygonSymbolizer.md index 279eb2d..3bf2c29 100644 --- a/PolygonSymbolizer.md +++ b/PolygonSymbolizer.md @@ -18,7 +18,8 @@ A PolygonSymbolizer is often used to render the area enclosed by a [polygon](htt ### Default -[[BR]] + + [[Image(default_polygon_symbolizer.png)]] @@ -26,7 +27,8 @@ A PolygonSymbolizer is often used to render the area enclosed by a [polygon](htt ### Default fill with Gamma correction -[[BR]] + + [[Image(gamma65_polygon_symbolizer.png)]] @@ -61,5 +63,6 @@ A PolygonSymbolizer is often used to render the area enclosed by a [polygon](htt Example output of the `rundemo.py` utilizing the PolygonSymbolizer for provinces and water bodies: - [[BR]] + + [[Image(demo256.png)]] diff --git a/ScaleAndPpi.md b/ScaleAndPpi.md index 1082dca..a63c673 100644 --- a/ScaleAndPpi.md +++ b/ScaleAndPpi.md @@ -63,7 +63,8 @@ If you want to figure out a pixel <-> real world meter correspondence, you there Apart from the scale, there's also the scale denominator, which plays a further role if you print your maps. ### Scale denominator -[[Image(scale.png)]][[BR]] +[[Image(scale.png)]] + The above image illustrates how scale dependent rendering and resolution interact. Each map has the same extent and proportions. The large map was printed at 1000px by 1000px and the smaller inset at 250px250px, these were both reduced by 50% for display here. What you should notice is that resolution matters for scale. Each of these maps, made with [[Nik2Img]], have different levels of detail, because they are at different scales, even though the extents are the same. diff --git a/ShieldSymbolizer.md b/ShieldSymbolizer.md index b148243..0b6c54f 100644 --- a/ShieldSymbolizer.md +++ b/ShieldSymbolizer.md @@ -48,14 +48,18 @@ see examples below. ## Good to know -ShieldSymbolizer can be used to label points.[[BR]] -E.G. If you want to place points on cities and their name above it. If you try to use a TextSymbolizer and a PointSymbolizer separated you will often see points without texts and/or texts without points.[[BR]] -To draw labeled points configure your shield symbolizer with placement = point and custom value for dx/dy to move the text around the point[[BR]] +ShieldSymbolizer can be used to label points. + +E.G. If you want to place points on cities and their name above it. If you try to use a TextSymbolizer and a PointSymbolizer separated you will often see points without texts and/or texts without points. + +To draw labeled points configure your shield symbolizer with placement = point and custom value for dx/dy to move the text around the point + ## Examples -[[BR]] + + [[Image(http://wiki.openstreetmap.org/images/thumb/6/63/Mapnik-highway-motorway.png/120px-Mapnik-highway-motorway.png)]] diff --git a/Troubleshooting.md b/Troubleshooting.md index 49d6bf0..a4ae450 100644 --- a/Troubleshooting.md +++ b/Troubleshooting.md @@ -12,7 +12,8 @@ Make sure to check out LearningMapnik for tips on certain topics, and ExampleCod ## Global data has odd lines wrapping across it * *Description*: You get a shapefile in WGS84 and try to display it on a map in Google Mercator projection. But, the data has coordinates that wrap the dateline (180˚ meridan) in the wrong way. -[[BR]] + + [[Image(bogus_lines.png)]] * *Solution*: This shapefile is bogus, and you need to fix it. *Usually* this problem can be fixed by clipping the extents of the shapefile before rendering with Mapnik. An easy way to do this is using the new clipping feature in GDAL 1.7. So, assuming a shapefile in WGS 84/EPS:4326 called 'sketchy_natural_earth.shp', fix it by doing: @@ -62,13 +63,15 @@ A bit more advanced version of this converted to a script can be found at https: If this does not work, then go back to the person that gave you this shapefile and return it. Or check out http://trac.osgeo.org/postgis/wiki/UsersWikiCleanPolygons and see if any gurus have added new scripts. -[[BR]] + + ## OGCServer Fails to Load External Entities * *Description*: OGCServer won't start after installation and configuration when using XML styling with external entities, but nik2img can still parse the files OK. Error message in server log: "I/O warning : failed to load external entity %entities;^" -[[BR]] + + * *Solution*: Change all the paths in the XML style files AND external entity files from relative to absolute. Ensure line endings are the correct format for your operating system. I encountered this problem when porting my code from windows to mac. The source of the problem was found by commenting out most of the layers and scrutinising the file paths, it turned out that some of them were incorrect. diff --git a/WindowsInstallation.md b/WindowsInstallation.md index cf51ef3..ba5c4dc 100644 --- a/WindowsInstallation.md +++ b/WindowsInstallation.md @@ -71,7 +71,8 @@ To download and manually configure the Mapnik 0.7.1, please follow the instructi This Guide will walk you through installing Mapnik and then running a test script to generate the sample map below: - [[BR]] + + [[Image(demo.png)]] ## Manual Instructions @@ -132,7 +133,8 @@ To download and manually configure the Mapnik 0.6.1, please follow the instructi This Guide will walk you through installing Mapnik and then running a test script to generate the sample map below: - [[BR]] + + [[Image(demo.png)]] ## Manual Instructions diff --git a/XMLConfigReference.md b/XMLConfigReference.md index 896caf9..5efa156 100644 --- a/XMLConfigReference.md +++ b/XMLConfigReference.md @@ -157,8 +157,10 @@ A Style object defines the way objects can be rendered. A Mapnik configuration Also see SymbologySupport for more info on Symbolizers -> v.0.7.1: Please note that some Symbolizers require attributes while others require -elements.[[BR]] -> Refer to the examples given on the individual pages for the correct syntax.[[BR]] +> v.0.7.1: Please note that some Symbolizers require attributes while others require -elements. + +> Refer to the examples given on the individual pages for the correct syntax. + > This has been fixed in Mapnik 2.0 ## Include