Re: [mapserver-users] php Mapscript queryByAttributes

2017-10-11 Thread Carlos Ruiz
Regex worked as a LIKE workaround. The backend database is PostgreSQL 9.5.9. On Wednesday, October 11, 2017, 4:28:27 PM CDT, Lime, Steve D (MNIT) wrote: What’s the backend database – it’s possible the IN operator is screwy for that driver? For the LIKE operator

Re: [mapserver-users] Polygon border with marker line symbol

2017-10-11 Thread Håvard Tveite
If you duplicate the layer, one of the layers (type polygon) can provide the polygon fill and the other (type line) the styled boundary. Håvard On 11. okt. 2017 17:45, Anton Bakker wrote: Hi list, I am trying to create the following symbology in MapServer, a marker line symbol on the border

Re: [mapserver-users] php Mapscript queryByAttributes

2017-10-11 Thread Carlos Ruiz
Hey Steve, > the IN operator works off a delimited list, tryqueryByAttributes("gid", > "([gid] IN ‘100,101’)", MS_MULTIPLE);. Any whitespace > is considered part of > the tokens in a list. I have tried this and it doesn't work. There's a query error because Mapserver try to add the following:

Re: [mapserver-users] php Mapscript queryByAttributes

2017-10-11 Thread Lime, Steve D (MNIT)
Try: $qfield = 'gid'; $qstring = "([gid] IN '1,2,3')"; @$datQuery = $query_layer->queryByAttributes($qfield,$qstring,MS_MULTIPLE); I'm guessing the layer in question is PostGIS? In older versions of MapServer the query string could be given in the native SQL language of underlying

Re: [mapserver-users] php Mapscript queryByAttributes

2017-10-11 Thread Lime, Steve D (MNIT)
The query syntax is given in MapServer expression syntax. I think there’s a logical expression for why you’re seeing these results: queryByAttributes("gid", "gid > 100", MS_MULTIPLE) // does not found anything is evaluated as gid = “gid > 100”. Valid but not what you’re looking for. Your

Re: [mapserver-users] Polygon border with marker line symbol

2017-10-11 Thread lars . schylberg
Hi, I guess that your symbol definition of square says filled false,  it should be be filled true. Do another symbol. Next thing is that if You would like to do fancy borders symbols along a polygon you could set LAYER - TYPE  to line. The syntax becomes easier.  Last thing is to get the

[mapserver-users] php Mapscript queryByAttributes

2017-10-11 Thread Sven Schroeter
Hi, Old Server: PHP 5.4.36 with MS 6.4.1 (MS4W) New Server: PHP 5.6.31 with MS 7.0.6 (MS4W 3.2.2) My Test Script: $qfield = 'gid'; $qstring = "gid IN (1,2,3)"; @$datQuery = $query_layer->queryByAttributes($qfield,$qstring,MS_MULTIPLE); Works fine on the old Server, on the new Server no result.

[mapserver-users] Polygon border with marker line symbol

2017-10-11 Thread Anton Bakker
Hi list, I am trying to create the following symbology in MapServer, a marker line symbol on the border of a polygon, see the following ArcMap screenshot (https://i.imgur.com/9qN16tx.png ). I tried the two following options, but could not manage to recreate