| 19 | |
| 20 | |
| 21 | = Using the WKT image magick image generator to build images! = |
| 22 | |
| 23 | As of PostGIS 1.4 documentation we have an image autogenerator -- thanks to Kevin. To use |
| 24 | it to generate images for your examples, do the following |
| 25 | |
| 26 | 1. Define queries using your new function or if you want to provide images for existing then do that and be carefull to make sure the generated geometries fit in a 200x200 grid. |
| 27 | |
| 28 | 2. For your query do an ST_AsText to generate the WKT output of it and save this in the image_src folder on |
| 29 | doc/html/image_src with a .wkt extension prefixed with a style for each geometry. There are lots of examples to look at in that folder. |
| 30 | |
| 31 | |
| 32 | You can have several wkts in your .wkt if you want them to be overlaid on top of each other |
| 33 | |
| 34 | Below is an example: |
| 35 | |
| 36 | {{{ |
| 37 | Style1;MULTIPOINT ( 8 24, 10 92, 12 154, 17 68, 28 10, 29 52, 29 84, 55 50, 56 24, 131 14, 160 180, 189 180 ) |
| 38 | Style2;POINT(60.3333333333333 77.6666666666667) |
| 39 | }}} |
| 40 | |
| 41 | 3. In the doc where you want the image placed, give it the same name as your file except instead of |
| 42 | .wkt extension use a .png. The files when generated will end in a .png extension and be placed in the images folder. |
| 43 | |
| 44 | 4. Add your new images to the doc/html/image_src/Makefile build script |
| 45 | |