[Qgis-user] Grid in print layout
John C. Tull
jctull at gmail.com
Fri Jul 31 19:15:56 PDT 2009
You can also use mapserver to do this. I would recommend looking at
that before trying GMT. You can use the mapserver export plugin to get
a template to work from for your finish maps. The grid then becomes
something as simple as adding a few lines manually to the mapserver
template. You can output the mapserver to an image format using the
commandline shp2img.
Here is an example of some code I have used for UTM grids in mapserver
files.
LAYER
NAME "grid"
METADATA
"DESCRIPTION" "Grid"
END
TYPE LINE
STATUS default
CLASS
NAME "Graticule"
COLOR 0 114 255
LABEL
COLOR 0 114 255
FONT 'arial'
TYPE truetype
SIZE 20
POSITION AUTO
PARTIALS FALSE
BUFFER 5
OUTLINECOLOR 255 255 255
END
END
PROJECTION
"init=epsg:26911"
END
GRID
# LABELFORMAT DDMM
# LABELFORMAT '%gÂș' # dec degrees with symbol
# MAXARCS 10
# MAXINTERVAL 10
# MAXSUBDIVIDE 2
LABELFORMAT '%7.0f m' # nice if a projected SRS used
MININTERVAL 1000
# MAXSUBDIVIDE 2
END
END # Layer
FWIW, I have switched to using the map composer in qgis. Although not
perfect, Marco has done an incredible job developing this part of
qgis, and I find I can produce very good print-quality maps. I am
pleased to hear that he will be adding the grid overlay soon!
Regards,
John
On Jul 27, 2009, at 1:24 PM, Ricardo Filipe Soares Garcia da wrote:
> Hi
> I'm also begging for such a tool. Like you, I've been manually
> creating these grids for printing purposes only. It gets painful when
> I want to display the coordinates in the bottom and right of the grid,
> having to create several layers... In fact I've been looking for a
> quick way to add them in various open source gis tools and came up
> short. So far GRASS is the only that I've seen that allows one to
> create a such a grid in an easy way (I've tried Qgis, gvSIG, uDIG,
> OpenJUMP, Kosmo and GRASS). On the downside, with GRASS I have to
> create a new region and mapset and import my files, which is also time
> consuming.
>
> I am considering learning gmt, mainly to be able to draw these grids
> on top of my maps... (though I am sure it will be useful for other
> things as well)
>
> So, to conclude, it would be really cool if Qgis had such a feature!
>
>
>
> On Mon, Jul 27, 2009 at 5:57 PM, Martin Bolte<mail at silico.net> wrote:
>> Hello,
>> I have to make lots of maps as PDF-files and need to put a grid
>> overlay
>> on each map. Creating all these with the plugin "graticule creator"
>> or
>> making them via ftools - research tools - vector grid is a tedious
>> task
>> as I need to do a lot of steps in order to have the correct
>> coordinates
>> of the grid lines displayed in the map layout.
>>
>> Has anybody a clue on how to speed this up?
>> There should be some development on a tool allowing to insert such a
>> grid directly within the print composer dialogue.
>>
>> Kind regards
>>
>>
>> Martin
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
>
> --
> ___________________________ ___ __
> Ricardo Garcia Silva
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
More information about the Qgis-user
mailing list