[Geomoose-users] Re: printing in geomoose

Brent Fraser bfraser at geoanalytic.com
Thu Jan 19 09:38:00 EST 2012


Have a look at the Geomoose email list; there are some recent messages 
about printing.

Best Regards,
Brent Fraser


On 1/19/2012 4:54 AM, Radoslav Melicher wrote:
> Now I deleted the TRANSPARENCY ON in OSM_TAH.map file and then some symbol errors come out... I don't know what that means but, I commented all STYLE lines in symbol.sym and it worked... and now I can view openstreet maps through this file, but I still cannot print them.. my printed html, image and pdf are all blank...
> anyway, thank you very much! I really appreciate any help, especially when it gets me somewhere, like yours :)
>
> If you know how to work these things and errors out, be sure I will try anything. And if there is a way to print
>
>
> ----- Original Message -----
> From: "Radoslav Melicher"<melicherr at kolektory.cz>
> To: "Brent Fraser"<bfraser at geoanalytic.com>
> Sent: Thursday, 19 January, 2012 12:25:21 PM
> Subject: Re: printing in geomoose
>
> Hi, Brent.
>
> Sorry for delayed responding. I was working on other things and now I got back to mapserver and geomoose... I still have a problem with printing, but anyway, I need to make small steps to get it all work to my satisfaction.
> I tried your command:
>        shp2img  -all_debug 5 -m OSM_TAH.map -o test.png
>
> First time I tried it, I got these messages
>        getIntegerOrSymbol(): Symbol definition error. Parsing error near (ON):(line 27)<br>
>        msOutputFormatValidate(): General error message. OUTPUTFORMAT GD_PNG has IMAGEMODE RGB/RGBA, which is not supported for GD drivers.<br>
>
> but then, I commented out third to last line in outputtype.lyr file that you had sent me
>        #      IMAGEMODE RGB #PC256
>
> and now I get just this one
>        getIntegerOrSymbol(): Symbol definition error. Parsing error near (ON):(line 27)<br>
>
> I think, it is from OSM_TAH.map file, on line 27 there is this:
>        TRANSPARENCY ON
>
> so I don't know what to do about it.
>
> Don't you have an idea, please?
> One of the problems I have solved was, that outputtype.lyr file was in lowercase letters and in OSM_TAH.map you included it but you had used uppercase letters.
> And I am still not sure about PROJ_LIB location in outputtype.lyr, I set it to "/usr/local/share/proj" because there I found some files called nad*
>
> I attached my ms_error.txt file...
> Hope, you can help me.
> Thanks in advance
>
>
> ----- Original Message -----
> From: "Brent Fraser"<bfraser at geoanalytic.com>
> To: "Radoslav Melicher"<melicherr at kolektory.cz>
> Sent: Tuesday, 20 December, 2011 1:18:08 PM
> Subject: Re: printing in geomoose
>
> Try to use Mapserver's shp2img command line to see any error messages:
>
> shp2img  -all_debug 5 -m mapfile.map -o test.png
>
> Best Regards,
> Brent Fraser
>
>
> On 12/20/2011 2:15 AM, Radoslav Melicher wrote:
>> Hi, Brent.
>>
>> Sorry for disturbing.
>> I tried the files you sent me, but now I get pink screen. I can view other layers and I can see them upon the pink base layer.
>> I edited temp_directory.map to store temp images to /var/www/tmp/ instead of /tmp/www/... I put the three files you sent me into "maps" directory. And I pointed mapfile to the OSM_TAH.map file to layer TilesAtHome. I also edited outputtype.lyr to point to FONTSET and SYMBOLSET you define, there were '../fontset/fontset.list', I changed it to './fonts/fontset.list' because fonts dir is a subdir of maps directory. And it was the same with symbolset.
>>
>> I added to mapfile's map sources this:
>>
>>           <map-source name="OSM_tiles" type="mapserver">
>>                   <file>./OSM_TAH.map</file>
>>                   <layer name="TilesAtHome"/>
>>           </map-source>
>>
>> and to catalog:
>>
>>           <layer title="PRG" src="OSM_tiles/TilesAtHome" status="off"/>
>>
>> I don't know where I made mistake(s) but I have checked everything. In outputtype.lyr there are lines 2 and 3 about CONFIG, you are using ms4w path but, I don't have ms4w version. I tried to comment these lines, but to no success.
>>
>> Thanks for your big patience with me and another possible help with solving the problem
>> Have a nice day
>>
>> Best Regards,
>> Radoslav Melicher
>>
>>
>> ----- Original Message -----
>> From: "Brent Fraser"<bfraser at geoanalytic.com>
>> To: melicherr at kolektory.cz
>> Sent: Monday, 19 December, 2011 4:58:16 PM
>> Subject: Re: printing in geomoose
>>
>> see attached files...
>>
>> Best Regards,
>> Brent Fraser
>>
>>
>> On 12/19/2011 8:55 AM, melicherr at kolektory.cz wrote:
>>> Hi there. You replied to my post about problems with printing. I have hardly ever used a map file, so what you are suggesting here (http://www.osgeo.org/pipermail/geomoose-users/2010-July/002435.html) is a little bit problematic for me. I tried to write a map file with layer of openstreetmap tiles. I wanted to use it as a base layer with possibility to print. But i wasn't successful.
>>> Can you send me a map file or some template how it looks like for this purpose?
>>> thank you very much
>>>
>



More information about the Geomoose-users mailing list