Changes between Version 9 and Version 10 of DevWikiDocNewFeature


Ignore:
Timestamp:
Aug 28, 2009, 5:12:21 AM (15 years ago)
Author:
robe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiDocNewFeature

    v9 v10  
    1717  5.  Name your xml file accordingly e.g. mysuperfunc.xml.
    1818  6.  Submit this file as part of your new function patch.
     19
     20
     21= Using the WKT image magick image generator to build images! =
     22
     23As of PostGIS 1.4 documentation we have an image autogenerator -- thanks to Kevin.  To use
     24it to generate images for your examples, do the following
     25
     261. 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
     282. For your query do an ST_AsText to generate the WKT output of it and save this in the image_src folder on
     29doc/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
     32You can have several wkts in your .wkt if you want them to be overlaid on top of each other
     33
     34Below is an example:
     35
     36{{{
     37Style1;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 )
     38Style2;POINT(60.3333333333333 77.6666666666667)
     39}}}
     40
     413.  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
     444. Add your new images to the doc/html/image_src/Makefile build script
     45