FW: [Mapserver-users] Random Issues

Benjamin Wragg bwragg at tpg.com.au
Mon Feb 24 20:18:00 PST 2003


Will

Benjamin Wragg wrote:
> Hi Will,
> 
> For question 2 on Railroads, there was something recently on the list 
> regarding this. Check out 
> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0302/msg00317
> .h
> tml
> 
> Cheers,
> 
> Benjamin Wragg
> 
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of William 
> Carty
> Sent: Tuesday, 25 February 2003 11:54 AM
> To: Mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] Random Issues
> 
> 
> Hello,
> 
> I'm not a GIS person, but I'm trying my best :)
> 
> For the past few weeks, I've been working on getting the phpGIS
> (http://www.phpgis.org) application up & running for our county GIS 
> department.  This app uses mapscript as the backend.
> 
> In deploying & testing I've run across a few issues I'd like to bring 
> up
> 
> here.  I've done (or am doing) my best to find an answer on my own, 
> but
> obviously haven't in every case...
> 
> 1.  "MapServer Error in msDrawShape":
> 
>       I'm having a problem with one of my layers (roads).  The layer 
> is
> a line shape & does not work at the full extent of the map (zoomed all

> the way out).  When I try to view this layer at the full extent, I get

> the error: "Warning: MapServer Error in msDrawShape(): Only polygon or

> line shapes can be drawn using a line layer definition."  Now, if I
set 
> the MAXSCALE attribute in the map file so that the roads layer is only

> visible after zooming in, the layer works fine.  Also, if I change the

> layer to a point instead of line, it works fine at any extent.
> 
> Based on what I've read in the archives, it looks like others have had
> this problem.  The fix I've read about has been to "clean up" the 
> arcview shapefile.  I've had our GIS folks "clean it up" as much as
they
> 
> say they can, but the problem still exists.  Is there anything else I
> can do to get around this?  I really want to have the roads displayed
at
> 
> the full extent, but don't want to have to use a point layer.
> 
> 
> 2.  Railroads
> 
>      This may seem like a silly question, but what sort of symbols /
> images do you folks use to represent railroad tracks?  I've tried
making
> 
> a few symbols by hand, but nothing looks quite right :).  I'd rather 
> not
> 
> use a regular line, I'd rather have railroad tracks.
> 
> 
> 3.  Fonts / Labels
> 
>      I'm still reading the how-to's, but I thought I'd go ahead & 
> throw
> this one out.  So far as I can tell, there isn't much I need to do to 
> get fonts to work for text labels.  Basically copy them over, create
the
> 
> fontlist file & then create the pointer in the map file.  Is this
> basically correct, or are there any gotchas I should watch out for
when 
> setting this up?  (On a Linux box)
> 
> Think that's about it for now.
> 
> Thanks!
> 
> Will
> 
> William Carty
> Washington County Virginia
> Webmaster
> Department of Information Technology
> 
> 
> _______________________________________________
> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> ----------------------------------------------------------------------
> --
> 
> Subject:
> RE: [Mapserver-users] Train line
> From:
> "Lowther, David W" <dlowther at ou.edu>
> Date:
> Fri, 14 Feb 2003 01:57:06 +1030
> To:
> <mapserver-users at lists.gis.umn.edu>
> 
> 
> RE: [Mapserver-users] Train line
> I'd been needing a RR symbol (although not bad enough to mess with it)

> and this takes care of me. Next time someone looks in the archives 
> (unless this is already there) I think they will be pleased. Thanks
> Dave
> 
>>-----Original Message-----
>>From: Paul Ramsey [
> 
> mailto:pramsey at refractions.net
> ]
> 
>>Sent: Wednesday, February 12, 2003 3:17 PM
>>To: Martin, Daniel
>>Cc: 'Juanse'; mapserver-users at lists.gis.umn.edu
>>Subject: Re: [Mapserver-users] Train line
>>
>>
>>Daniel is correct. There is no way to get the actual hatched-line rail
>>symbol.
>>
>>However.
>>
>>Here is a half-assed approximation. By overlaying a 3-pixel dot on a 
>>one-pixel line every 7 pixels you get something which looks somewhat 
>>like the classic train symbology.
>>
>>CLASS
>>   NAME "Rail Lines"
>>   COLOR 0 0 0
>>   OVERLAYSYMBOL dashed2
>>   OVERLAYCOLOR 0 0 0
>>   OVERLAYSIZE 3
>>END
>>
>>SYMBOL
>>   NAME "dashed2"
>>   TYPE ellipse
>>   POINTS
>>    1 1
>>   END
>>   STYLE
>>    1 7
>>   END
>>END
>>
>>Martin, Daniel wrote:
>>
>>>Not to shirk you off, but I would suggest searching the
>>
>>mail archives
>>
>>>for the word "train".  The subject has been discussed several times 
>>>before, and several attempted solutions were mentioned.
>>
>>Though, I'm
>>
>>>quite sure the answer has come back every time as "no".  I believe 
>>>that with the current version of MapServer there is no good way to 
>>>achieve the classic train symbology.
>>>
>>>-Dan Martin
>>>
>>>
>>>-----Original Message-----
>>>From: Juanse [
> 
> mailto:georef at tie.cl
> ]
> 
>>>Sent: Wednesday, February 12, 2003 2:38 PM
>>>To: mapserver-users at lists.gis.umn.edu
>>>Subject: [Mapserver-users] Train line
>>>
>>>
>>>Any one have drawn a train line? the clasical black
>>>----+----+---+---+---+ more or less? or a better one? can you share
>>>the symbol? is there a url to see posibilities?
>>>
>>>juanse
>>>temuko-Chile
>>>
>>>
>>>
>>>---
>>>Outgoing mail is certified Virus Free.
>>>Checked by AVG anti-virus system (
> 
> http://www.grisoft.com
> ).
> 
>>>Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 
>>>_______________________________________________
>>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
>>>
> 
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
>>
>>--
>>        __
>>       /
>>       | Paul Ramsey
>>       | Refractions Research
>>       | Email: pramsey at refractions.net
>>       | Phone: (250) 885-0632
>>       \_
>>
>>_______________________________________________
>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
>>
> 
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> _______________________________________________
> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> 
> ----------------------------------------------------------------------
> --
> 
> Subject:
> Re: [Mapserver-users] Train line
> From:
> "Paul Ramsey" <pramsey at refractions.net>
> Date:
> Thu, 13 Feb 2003 07:46:42 +1030
> To:
> "Martin, Daniel" <DMartin at erac.com>
> 
> 
> Re: [Mapserver-users] Train line
> Daniel is correct. There is no way to get the actual hatched-line rail

> symbol. However.
> Here is a half-assed approximation. By overlaying a 3-pixel dot on a
> one-pixel line every 7 pixels you get something which looks somewhat
> like the classic train symbology.
> CLASS
>   NAME "Rail Lines"
>   COLOR 0 0 0
>   OVERLAYSYMBOL dashed2
>   OVERLAYCOLOR 0 0 0
>   OVERLAYSIZE 3
> END
> SYMBOL
>   NAME "dashed2"
>   TYPE ellipse
>   POINTS
>    1 1
>   END
>   STYLE
>    1 7
>   END
> END
> Martin, Daniel wrote:
> 
>>Not to shirk you off, but I would suggest searching the mail archives 
>>for the word "train".  The subject has been discussed several times 
>>before, and several attempted solutions were mentioned.  Though, I'm 
>>quite sure the answer has come back every time as "no".  I believe 
>>that with the current version of MapServer there is no good way to 
>>achieve the classic train symbology.
>>
>>-Dan Martin
>>
>>
>>-----Original Message-----
>>From: Juanse [
> 
> mailto:georef at tie.cl
> ]
> 
>>Sent: Wednesday, February 12, 2003 2:38 PM
>>To: mapserver-users at lists.gis.umn.edu
>>Subject: [Mapserver-users] Train line
>>
>>
>>Any one have drawn a train line? the clasical black 
>>----+----+---+---+---+ more or less? or a better one? can you share 
>>the symbol? is there a url to see posibilities?
>>
>>juanse
>>temuko-Chile
>>
>>
>>
>>---
>>Outgoing mail is certified Virus Free.
>>Checked by AVG anti-virus system (
> 
> http://www.grisoft.com
> ).
> 
>>Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/03 
>>_______________________________________________
>>Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
>>
> 
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> --
>        __
>       /
>       | Paul Ramsey
>       | Refractions Research
>       | Email: pramsey at refractions.net
>       | Phone: (250) 885-0632
>       \_
> _______________________________________________
> Mapserver-users mailing list Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 






More information about the MapServer-users mailing list