[mapserver-users] Feature points not drawn by 5.7DEV drawmap.exe

Anzel, Phil - Fort Collins, CO Phil.Anzel at ftc.usda.gov
Thu Dec 30 06:21:08 PST 2010


Tamas, thank you; I'll submit a bug ticket. - Phil

From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Wednesday, December 29, 2010 5:29 PM
To: Anzel, Phil - Fort Collins, CO
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Feature points not drawn by 5.7DEV drawmap.exe

Phil,

I suspect there is a problem with the default symbol initialization which doesn't work with the new rendering code. You could work around the problem by specifying a custom symbol as follows:



MAP
 OUTPUTFORMAT
   NAME 'pnga'
   MIMETYPE 'image/pnga'
   DRIVER 'AGG/PNG'
   EXTENSION 'png'
   IMAGEMODE 'RGBA'
   TRANSPARENT TRUE
   FORMATOPTION 'INTERLACE=OFF'
 END
 SYMBOL
  NAME "default-marker"
  TYPE ELLIPSE
  POINTS
    1 1
  END
  FILLED TRUE
 END

 STATUS ON
 SIZE 827 511
 EXTENT -7908630.38 5546155.24 -7903127.77 5548526.51
 UNITS METERS
 IMAGECOLOR 255 255 255
 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' 'north' 'no_defs' END
LAYER
 layer
   name 'Corner_points'
   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' 'north' 'no_defs' END   # Web Mercator
   status on
   type point
   feature
     points
       -7905423.21336607 5547493.76482495
       -7905423.21336607 5546270.77237239
       -7904200.22091351 5547493.76482495
       -7904200.22091351 5546270.77237239
     end  # end of points
   end  # end of feature
   class
     style
       color 255 0 0
       size 7
       SYMBOL 'default-marker'
     end  # end of style
   end  #end of class
 end  # end of layer
 layer
   name 'grid-WM'
   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' 'north' 'no_defs' END   # Web Mercator
   status on
   type line
   class
     color 0 0 0
   end # of class
   grid
     labelformat '%9.0f'  minarcs 2   maxarcs 6
   end  # of grid
 end # of layer 'grid-WM'
END  # end of MAP


A new ticket would also be sufficient in order to have this symbol initialization problem fixed.


Best regards,

Tamas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101230/4ffec5fb/attachment.htm>


More information about the MapServer-users mailing list