remove all old trac link break oddities

Dane Springmeyer 2011-12-11 11:20:15 -08:00
parent e9d957d089
commit 84eb0efe21
21 changed files with 92 additions and 46 deletions

@ -40,5 +40,6 @@ A BuildingSymbolizer is used to create a pseudo 3D effect on polygons.
Example output:
[[BR]]
[[Image(BuildingSymbolizer.png)]]

@ -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`)

@ -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)]]

@ -6,7 +6,8 @@
Sandbox for keeping haiti specific style renderings.
[[BR]]
[[Image(fgdc_and_osm.png)]]

@ -19,7 +19,8 @@ High-level Python bindings (boost.python) facilitate rapid application developme
<a href="http://teczno.com/cascadenik-openstreetmap-II/"><img style="float: right; border: 1px gray solid;" src="http://teczno.com/cascadenik-openstreetmap-II/osm-15-r12662-c5254.png" /></a>
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

@ -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

@ -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

@ -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/

@ -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)]]
----

@ -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

@ -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

@ -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:

@ -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.

@ -4,8 +4,10 @@
<!-- Author: Ldp -->
# 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 ====

@ -13,7 +13,8 @@
## Examples
[[BR]]
[[Image(http://media.mapnik.org/images/polygon_pattern.png)]]

@ -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
<PolygonSymbolizer />
### 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)]]

@ -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.

@ -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)]]

@ -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.

@ -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

@ -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 <CssParameter>-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 <CssParameter>-elements.
> Refer to the examples given on the individual pages for the correct syntax.
> This has been fixed in Mapnik 2.0
## Include