[Geomoose-users] Curved labels and libgd or gd.

Brent Fraser bfraser at geoanalytic.com
Tue Nov 24 09:45:39 EST 2009


You left out the "-o".  The command should be:

shp2img -m demoroads.map -o demoroads.png

Brent

FRANZ OKYERE wrote:
> Hi all,
>  
> Its it a behaviour for the shp2img to produce some weird characters a@ 
> command prompt when I type
>  
> shp2img -m demoroads.map demoroads.png
> 
> or is there a problem with my syntax? Cheers
>  
>  
> Franz Okyere
>  
> GIS Specialist
>  
>>  Date: Mon, 23 Nov 2009 18:01:48 -0700
>>  Subject: Re: [Geomoose-users] Curved labels and libgd or gd.
>>  From: bfraser at geoanalytic.com
>>  To: franzzoa at hotmail.com
>>  CC: geomoose-users at lists.sourceforge.net
>>
>>  Try copying shp2img into the cgi-bin dir and run it from the command line
>>
>>  > When I try to run shp2img an error message which says libmap.dll is
>>  > missing shows up, but thats not true- libmap.dll exists in 
> apache/cgi-bin.
>>  > I guess may need to reinstall? Cheers.
>>  >
>>  >> Date: Mon, 23 Nov 2009 14:20:02 -0700
>>  >> Subject: Re: [Geomoose-users] Curved labels and libgd or gd.
>>  >> From: bfraser at geoanalytic.com
>>  >> To: franzzoa at hotmail.com
>>  >> CC: geomoose-users at lists.sourceforge.net
>>  >>
>>  >> Yikes! That usually means mapserver crashed. Try using the mapserver's
>>  >> shp2img.exe on the command line with your map file to see if the
>>  >> operating
>>  >> system gives any more information (like missing DLLs).
>>  >>
>>  >>
>>  >> > I've managed to check both error reports but the message in them is
>>  >> not
>>  >> > specific. Eg- from the mozilla tools, internal server error, and from
>>  >> use
>>  >> > error log, premature end of script headers (not sure what this means
>>  >> > though). Any ideas why my label will not follow the line direction?
>>  >> > Thanks.
>>  >> >
>>  >> > Date: Mon, 23 Nov 2009 08:37:57 -0800
>>  >> > From: danlittle at yahoo.com
>>  >> > Subject: Re: [Geomoose-users] Curved labels and libgd or gd.
>>  >> > To: franzzoa at hotmail.com; geomoose-users at lists.sourceforge.net
>>  >> >
>>  >> >
>>  >> >
>>  >> > I find using Firefox's "Tools" -> "page Info" menu then looking 
> in the
>>  >> > media tab to be the easiest way to go.
>>  >> >
>>  >> > You'll scroll down the list until you see the URL that refers to the
>>  >> image
>>  >> > (which should be in italics to indicate it is "broken"), then 
> copy the
>>  >> url
>>  >> > and open it up in a new tab/window.
>>  >> >
>>  >> > From: FRANZ OKYERE <franzzoa at hotmail.com>
>>  >> > To: geomoose-users at lists.sourceforge.net
>>  >> > Sent: Mon, November 23, 2009 7:07:46 AM
>>  >> > Subject: Re: [Geomoose-users] Curved labels and libgd or gd.
>>  >> >
>>  >> >
>>  >> >
>>  >> >
>>  >> > I'll try that and see how it goes. Thanks.
>>  >> >
>>  >> >> Date: Sun, 22 Nov 2009 20:43:50 -0700
>>  >> >> Subject: Re: [Geomoose-users] Curved labels and libgd or gd.
>>  >> >> From: bfraser at geoanalytic.com
>>  >> >> To: franzzoa at hotmail.com
>>  >> >> CC: geomoose-users at lists.sourceforge.net
>>  >> >>
>>  >> >> That means Mapserver is not sending back an image (but is likely
>>  >> sending
>>  >> >> back an error message). You could turn set DEBUG 5 in the LAYER (and
>>  >> >> you'll likely need to set the MAP's CONFIG MS_ERRORFILE
>>  >> >> "\ms4w\tmp\mserror.txt") to see if it reports a error. Or you could
>>  >> use
>>  >> >> an HTTP sniffer like smartsniff to view the conversation between
>>  >> >> Geomoose
>>  >> >> and mapserver.
>>  >> >>
>>  >> >> Brent
>>  >> >>
>>  >> >>
>>  >> >> > Yes I use vera_sans which happens to be in the fontset.list but
>>  >> then
>>  >> >> the
>>  >> >> > background goes pinkish, you know.
>>  >> >> >
>>  >> >> >> Date: Sun, 22 Nov 2009 14:44:27 -0700
>>  >> >>
>>  >> > >> Subject: RE: [Geomoose-users] Curved labels and libgd or gd.
>>  >> >> >> From: bfraser at geoanalytic.com
>>  >> >> >> To: franzzoa at hotmail.com
>>  >> >> >>
>>  >> >> >> Sounds like the problem is with TrueType fonts. What do you
>>  >> specify
>>  >> >> for
>>  >> >> >> the font name? Is it in the fonts\fontset.list? What is your MAP
>>  >> ->
>>  >> >> >> FONTSET pointing to?
>>  >> >> >>
>>  >> >> >> >
>>  >> >> >> > Yes Brent Here is portion of my map file that is supposed to do
>>  >> the
>>  >> >> >> lines
>>  >> >> >> > and the labels. The shapefile is of a line type.
>>  >> >> >> >
>>  >> >> >> > LAYER
>>  >> >> >> > NAME 'demoroads2'
>>  >> >> >> > TYPE LINE
>>  >> >> >> > DATA
>>  >> >> 'C:\ms4w\apps\geomoose2\maps\demo\countydata\demoroads.shp'
>>  >> >> >> > METADATA
>>  >> >> >> > 'wms_title' 'demoroads'
>>  >> >> >> > END
>>  >> >>
>>  >> > >> > STATUS DEFAULT
>>  >> >> >> > TRANSPARENCY 100
>>  >> >> >> > PROJECTION
>>  >> >> >> > 'proj=longlat'
>>  >> >> >> > 'ellps=WGS84'
>>  >> >> >> > 'datum=WGS84'
>>  >> >> >> > 'no_defs'
>>  >> >> >> > END
>>  >> >> >> > CLASS
>>  >> >> >> > EXPRESSION ('[ROADCLASS]' eq 'C')
>>  >> >> >> >
>>  >> >> >> > STYLE
>>  >> >> >> > COLOR 255 0 0
>>  >> >> >> > SYMBOL 'plainline'
>>  >> >> >> > SIZE 2
>>  >> >> >> > MINSIZE 1
>>  >> >> >> > MAXSIZE 4
>>  >> >> >> > END
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> > END
>>  >> >> >> > END
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> > #and then I use an annotation layer to add the labels
>>  >> >> >> >
>>  >> >> >> > LAYER # Road layer
>>  >> >> >> >
>>  >> > NAME road_labels
>>  >> >> >> > DATA
>>  >> >> >> 'C:\ms4w\apps\geomoose2\maps\demo\countydata\demoroads.shp'
>>  >> >> >> > STATUS ON
>>  >> >> >> > TYPE annotation
>>  >> >> >> > MAXSCALEDENOM 2834
>>  >> >> >> > MINSCALEDENOM 1400
>>  >> >> >> > LABELITEM 'ROAD_NAME'
>>  >> >> >> > LABELCACHE ON
>>  >> >> >> >
>>  >> >> >> > CLASS
>>  >> >> >> > LABEL
>>  >> >> >> >
>>  >> >> >> > COLOR 144 250 0
>>  >> >> >> >
>>  >> >> >> > BUFFER 4
>>  >> >> >> > ANGLE AUTO
>>  >> >> >> > END
>>  >> >> >> > END
>>  >> >> >> > END # End of Road layer
>>  >> >> >> >
>>  >> >> >> > Now,
>>  >> >> >> > the above works fine and shows the lines and labels but once I
>>  >> add
>>  >> >> >> > ANGLE FOLLOW
>>  >> > and/or TYPE TRUETYPE everything disappears. So what can I
>>  >> >> >> > do to see the labels whowing and following the line direction?
>>  >> >> >> >
>>  >> >> >> > Cheers.
>>  >> >> >> >
>>  >> >> >> > Franz Okyere.
>>  >> >> >> > GIS Specialist
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> >
>>  >> >> >> >> Date: Sun, 22 Nov 2009 11:36:55 -0700
>>  >> >> >> >> Subject: Re: [Geomoose-users] Curved labels and libgd or gd.
>>  >> >> >> >> From: bfraser at geoanalytic.com
>>  >> >> >> >> To: franzzoa at hotmail.com
>>  >> >> >> >> CC: geomoose-users at lists.sourceforge.net
>>  >> >> >> >>
>>  >> >> >> >> libgd is not important to ANGLE FOLLOW (at least not that I'm
>>  >> >> aware
>>  >> >> >> of).
>>  >> >> >> >> Are your labels using a
>>  >> > TrueType font (not bitmapped)? When you say
>>  >> >> >> >> they
>>  >> >> >> >> don't align, does that mean they are only horizontal? Are the
>>  >> >> layers
>>  >> >> >> >> you
>>  >> >> >> >> are trying to label TYPE LINE?
>>  >> >> >> >>
>>  >> >> >> >> Best Regards,
>>  >> >> >> >> Brent Fraser
>>  >> >> >> >>
>>  >> >> >> >> > Hi All, I need to find out whether I have libgd with my
>>  >> >> mapserver
>>  >> >> >> >> > installation- I'm using gm2 on ms2.3.1. as my labels don't
>>  >> align
>>  >> >> >> with
>>  >> >> >> >> my
>>  >> >> >> >> > line feature even after I have used angle follow in my
>>  >> mapfile.
>>  >> >> >> I've
>>  >> >> >> >> > downloaded the gd-2.0.33-1 binaries but honestly i'm not 
> sure
>>  >> >> what
>>  >> >> >> i'm
>>  >> >> >> >> > doing with them. Can anyone help! Thanks. Franz Okyere.
>>  >> > GIS
>>  >> >> >> >> SPECIALIST.
>>  >> >> >> >> >
>>  >> >> >> >> > 
> _________________________________________________________________
>>  >> >> >> >> > Got more than one Hotmail account? Save time by linking them
>>  >> >> >> together
>>  >> >> >> >> > http://clk.atdmt.com/UKM/go/186394591/direct/01/
>>  >> >> >> >> > 
> ------------------------------------------------------------------------------
>>  >> >> >> >> > Let Crystal Reports handle the reporting - Free Crystal
>>  >> Reports
>>  >> >> >> 2008
>>  >> >> >> >> > 30-Day
>>  >> >> >> >> > trial. Simplify your report design, integration and
>>  >> deployment -
>>  >> >> >> and
>>  >> >> >> >> focus
>>  >> >> >> >> > on
>>  >> >> >> >> > what you do best, core
>>  >> > application coding. Discover what's new with
>>  >> >> >> >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>  >> >> >> >> > _______________________________________________
>>  >> >> >> >> > Geomoose-users mailing list
>>  >> >> >> >> > Geomoose-users at lists.sourceforge.net
>>  >> >> >> >> > https://lists.sourceforge.net/lists/listinfo/geomoose-users
>>  >> >> >> >> >
>>  >> >> >> >> >
>>  >> >> >> >>
>>  >> >> >> > 
> _________________________________________________________________
>>  >> >> >> > Use Hotmail to send and receive mail from your different email
>>  >> >> >> accounts
>>  >> >> >> > http://clk.atdmt.com/UKM/go/186394592/direct/01/
>>  >> >> >> >
>>  >> >> >>
>>  >> >> >>
>>  >> >> >
>>  >> >> > _________________________________________________________________
>>  >> >> > Got more than one Hotmail account? Save time by linking them
>>  >> together
>>  >> >> > http://clk.atdmt.com/UKM/go/186394591/direct/01/
>>  >> >> > 
> ------------------------------------------------------------------------------
>>  >> >> > Let Crystal Reports handle the reporting - Free Crystal Reports
>>  >> 2008
>>  >> >> > 30-Day
>>  >> >> > trial. Simplify your report design, integration and deployment -
>>  >> and
>>  >> >> focus
>>  >> >> > on
>>  >> >> > what you do best, core application coding. Discover what's new 
> with
>>  >> >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>  >> >> > _______________________________________________
>>  >> >> > Geomoose-users mailing list
>>  >> >> > Geomoose-users at lists.sourceforge.net
>>  >> >> > https://lists.sourceforge.net/lists/listinfo/geomoose-users
>>  >> >> >
>>  >> >> >
>>  >> >>
>>  >> >>
>>  >> >
>>  >> > View your other email accounts from your Hotmail inbox. Add them now.
>>  >> >
>>  >> >
>>  >> >
>>  >> >
>>  >> >
>>  >> > _________________________________________________________________
>>  >> > Use Hotmail to send and receive mail from your different email
>>  >> accounts
>>  >> > http://clk.atdmt.com/UKM/go/186394592/direct/01/
>>  >> > 
> ------------------------------------------------------------------------------
>>  >> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>  >> > 30-Day
>>  >> > trial. Simplify your report design, integration and deployment - and
>>  >> focus
>>  >> > on
>>  >> > what you do best, core application coding. Discover what's new with
>>  >> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>  >> > _______________________________________________
>>  >> > Geomoose-users mailing list
>>  >> > Geomoose-users at lists.sourceforge.net
>>  >> > https://lists.sourceforge.net/lists/listinfo/geomoose-users
>>  >> >
>>  >> >
>>  >>
>>  >>
>>  >
>>  > _________________________________________________________________
>>  > Have more than one Hotmail account? Link them together to easily access
>>  > both
>>  > http://clk.atdmt.com/UKM/go/186394591/direct/01/
>>  > 
> ------------------------------------------------------------------------------
>>  > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>>  > 30-Day
>>  > trial. Simplify your report design, integration and deployment - and 
> focus
>>  > on
>>  > what you do best, core application coding. Discover what's new with
>>  > Crystal Reports now. http://p.sf.net/sfu/bobj-july
>>  > _______________________________________________
>>  > Geomoose-users mailing list
>>  > Geomoose-users at lists.sourceforge.net
>>  > https://lists.sourceforge.net/lists/listinfo/geomoose-users
>>  >
>>  >
>>
>>
> 
> ------------------------------------------------------------------------
> New! Receive and respond to mail from other email accounts from within 
> Hotmail Find out how. <http://clk.atdmt.com/UKM/go/186394593/direct/01/ >




More information about the Geomoose-users mailing list