[Geomoose-users] Printing

Brent Fraser bfraser at geoanalytic.com
Fri Jul 9 16:19:10 EDT 2010


I've had some success with printing OpenStreetMap tiles.  Basically, you need to add

	PROCESSING "OVERSAMPLE_RATIO=1"
	PROCESSING "LOAD_FULL_RES_IMAGE=NO"

to the layer definition in the map file. So the mapfile would look like:

LAYER
     DATA "frmt_wms_openstreetmap_tms.xml"
     NAME "frmt_wms_openstreetmap_tms"
     PROJECTION
        "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" 
"y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs"
     END
     STATUS ON
     TYPE RASTER
     PROCESSING "OVERSAMPLE_RATIO=1"
     PROCESSING "LOAD_FULL_RES_IMAGE=NO"
     UNITS METERS
END # LAYER

Best Regards,
Brent Fraser

Brent Fraser wrote:
> Dan (and others),
> 
>    While searching for TMS tiling information, I can across:
> http://www.gdal.org/frmt_wms.html
> 
> and created a map file with a layer:
> 
> LAYER
>      DATA "frmt_wms_openstreetmap_tms.xml"
>      NAME "frmt_wms_openstreetmap_tms"
>      PROJECTION
>        "proj=merc" "a=6378137" "b=6378137" "lat_ts=0.0" "lon_0=0.0" "x_0=0.0" 
> "y_0=0" "k=1.0" "units=m" "nadgrids=@null" "no_defs"
>      END
>      STATUS ON
>      TYPE RASTER
>      UNITS METERS
> END # LAYER
> 
> It works, but is much slower than delivering tiles to the browser, seems to be 
> flakey, and the image produced is poorer due to resampling (the annotation is 
> un-readable).
> 
> But it does "work" for printing (unless it times-out).
> 
> Brent
> 
> 
> Dan Little wrote:
>> Printing with tiles is not currently supported.
>>
>>
>> ----- Original Message ----
>>> From: Fik <fik at ifik.eu>
>>> To: geomoose-users at lists.sourceforge.net
>>> Sent: Fri, June 4, 2010 2:13:55 AM
>>> Subject: [Geomoose-users] Printing
>>>
>>> Hello,
>> i would like to ask you if is posible to print or export map with 
>> openstreetmap base layer ?
>>
>> Thanks 
>>> Filip
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
> 





More information about the Geomoose-users mailing list