Re: [mapserver-users] Attribute based symbol
You can bind a style symbol to an attribute. The value needs to be the name of a system already loaded by MapServer or the name of a local image. You cannot reference a image url. Steve On 5/27/2009 at 12:26 PM, in message a3cc80ca0905271026p141e3f92mf817e0e596f7...@mail.gmail.com, Adam Eskreis aeskr...@gmail.com wrote: I am trying to create a layer that has a symbol, however, I want the symbol for each geometry to be based on a field from the database. For instance, I am trying to make a layer that would look something like this: LAYER GROUP symbol_layer TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION connection string DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo using unique id using SRID=-1 CLASS STYLE SYMBOL [symbol_img_url] END END END Is something like this possible? If not, what part of the source would I have to edit in order to make it possible? Thank you -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Attribute based symbol
It doesn't seem to be working for me I get the following error from apache: [MapServer Error]: msAddImageSymbol(): Error opening image file /var/www/htdocs/maps/[symbol]. I am using the symbol as: SYMBOL [symbol] I also tried SYMBOL [symbol] neitehr works Is this only possible with mapserver 5? I believe I am using 4.10 Thank you -Adam On Wed, May 27, 2009 at 2:26 PM, Steve Lime steve.l...@dnr.state.mn.uswrote: You can bind a style symbol to an attribute. The value needs to be the name of a system already loaded by MapServer or the name of a local image. You cannot reference a image url. Steve On 5/27/2009 at 12:26 PM, in message a3cc80ca0905271026p141e3f92mf817e0e596f7...@mail.gmail.com, Adam Eskreis aeskr...@gmail.com wrote: I am trying to create a layer that has a symbol, however, I want the symbol for each geometry to be based on a field from the database. For instance, I am trying to make a layer that would look something like this: LAYER GROUP symbol_layer TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION connection string DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo using unique id using SRID=-1 CLASS STYLE SYMBOL [symbol_img_url] END END END Is something like this possible? If not, what part of the source would I have to edit in order to make it possible? Thank you -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Attribute based symbol
Yup, this is a 5.0+ function. Steve On 5/27/2009 at 1:59 PM, in message a3cc80ca0905271159w2f5863f7ueda9f601a8849...@mail.gmail.com, Adam Eskreis aeskr...@gmail.com wrote: It doesn't seem to be working for me I get the following error from apache: [MapServer Error]: msAddImageSymbol(): Error opening image file /var/www/htdocs/maps/[symbol]. I am using the symbol as: SYMBOL [symbol] I also tried SYMBOL [symbol] neitehr works Is this only possible with mapserver 5? I believe I am using 4.10 Thank you -Adam On Wed, May 27, 2009 at 2:26 PM, Steve Lime steve.l...@dnr.state.mn.uswrote: You can bind a style symbol to an attribute. The value needs to be the name of a system already loaded by MapServer or the name of a local image. You cannot reference a image url. Steve On 5/27/2009 at 12:26 PM, in message a3cc80ca0905271026p141e3f92mf817e0e596f7...@mail.gmail.com, Adam Eskreis aeskr...@gmail.com wrote: I am trying to create a layer that has a symbol, however, I want the symbol for each geometry to be based on a field from the database. For instance, I am trying to make a layer that would look something like this: LAYER GROUP symbol_layer TYPE point STATUS on CONNECTIONTYPE postgis CONNECTION connection string DATA the_geom from (SELECT the_geom, symbol_img_url from foo) as foo using unique id using SRID=-1 CLASS STYLE SYMBOL [symbol_img_url] END END END Is something like this possible? If not, what part of the source would I have to edit in order to make it possible? Thank you -Adam ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users