Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread Andrea Peri
I create a ticket, and a package for sample. https://github.com/mapserver/mapserver/issues/4733 Thx, Andrea. 2013/8/14 thomas bonfort > Andrea, > - what GEOS version do you have installed ? > - please open a ticket for this. If you want me to look into it, > please prepare a self-contained t

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread Andrea Peri
(sorry, my previous response was cancelled , so I resend after remove the unuseful parts) It work without any error. This is the layer I try to use: LAYER NAME "multiline" TYPE LINE STATUS OFF EXTENT 1660351.00 4458445.22 1866743.13 4960849.91 FEATURE WKT "MULTILINESTRI

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread thomas bonfort
Andrea, - what GEOS version do you have installed ? - please open a ticket for this. If you want me to look into it, please prepare a self-contained test case (including a spatialite db and mapfile) and mail it to me or link to it from the ticket. -- thomas On 14 August 2013 11:17, Andrea Peri w

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread thomas bonfort
what happens if you use an inline wkt feature of type MULTILINESTRING ? On 14 August 2013 10:47, Andrea Peri wrote: > Hi, > > I do other tests. > > Using instead of a spatialite, a shapefile. > And accessing it using ogr or using ogr driver. > > I see the error trigger when use spatialite or shap

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread Andrea Peri
Hi, I do other tests. Using instead of a spatialite, a shapefile. And accessing it using ogr or using ogr driver. I see the error trigger when use spatialite or shapefile accessed using the OGR driver. Instead it don't trigger when use a directly defined Feature or the mapserver direct shapefil

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread Andrea Peri
Yes. Is the OFFSET ! Yes Thomas when I remove the offset the angle follow will work without error. I have other informations: he error trigger on spatialite but don't in a simpe FEATURE text definet dataset. Infact with this dataset: LAYER NAME "line" TYPE LINE STATUS DEFAULT E

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread thomas bonfort
Andrea, can you confirm if you are having the error when you remove the label offset ? On 14 August 2013 09:37, Andrea Peri wrote: > Hi, > > My theory is not true. > > I was able to create a featureset that like my image that will work when > the visible box clip it creating a multilinestring..

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-14 Thread Andrea Peri
Hi, My theory is not true. I was able to create a featureset that like my image that will work when the visible box clip it creating a multilinestring.. sorry for noise, My quest still go on. Regards, 2013/8/13 Andrea Peri > Hi, > Perhaps I found the explanation. > > The "angle follow"

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
Hi, Perhaps I found the explanation. The "angle follow" with OGR is using the BufferBuilder::bufferLineSingleSided That function seem don't work with a MultiLinestring . It necessary need a simple linestring. The question is that sometime the simple linestirng when is clipped from the visible bbo

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
ok, thx. I change to multiple scale. However I do a rapid check removing a label component, but the problem is still here. Now I rewrite a more exact mapfile using two classes. Andrea. 2013/8/13 thomas bonfort > yes, that's incompatible. use multiple scale-dependant classes for now > > On

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread thomas bonfort
yes, that's incompatible. use multiple scale-dependant classes for now On 13 August 2013 18:26, Andrea Peri wrote: > The two label are at different max/min scaledenominator. > The goal is to have little label size at low scales and bigger font size at > bigger scales. > > However only one lable i

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
The two label are at different max/min scaledenominator. The goal is to have little label size at low scales and bigger font size at bigger scales. However only one lable is active at one scale level. Is this incompatible with "follow" ? 2013/8/13 thomas bonfort > why the double label? they

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
Hi Jukka, I check for this critical questions: unfortunately none of all them is in the dataset. No invalid geometry, neither null geometry, neither Empty geometry. :( Andrea. 2013/8/13 Rahkonen Jukka > Hi, > > What if there happens to be empty/null geometries in your source data? I > guess

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread thomas bonfort
why the double label? they seem to be the same, but in any case multiple labels are not supported for FOLLOW. On 13 August 2013 18:08, Andrea Peri wrote: > I'm using spatialite 4.1.1, > so use ogr to access the db. > > LAYER > NAME "rt_topogr.50k.etichette.topon_idro_50k" > STATUS OFF >

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Rahkonen Jukka
Hi, What if there happens to be empty/null geometries in your source data? I guess you can add "AND geometry in not NULL" and perhaps even "AND IsValid(geometry)=1" to your DATA line. -Jukka Rahkonen- Andrea Peri wrote: > I'm using spatialite 4.1.1, > so use o

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
I'm using spatialite 4.1.1, so use ogr to access the db. LAYER NAME "rt_topogr.50k.etichette.topon_idro_50k" STATUS OFF EXTENT 1554750.74 4678325.52 1771722.76 4924791.90 TYPE LINE CONNECTIONTYPE OGR CONNECTION "/path-to-spatialite/zz_topografica.sqlite" DATA "select

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
Hi, I tested trasforming the multilinestring dataset in a linestring dataset but the error is still here. msDrawMap(): Image handling error. Failed to draw layer named 'rt_topogr.50k.etichette.topon_idro_50k'. msOGRFileNextShape(): OGR error. IllegalArgumentException: BufferBuilder::bufferLineSin

Re: [mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread thomas bonfort
there's something strange in your error message... the singleSidedBuffer stuff is in GEOS, and should have nothing to do in msOGRFileNextShape. post your whole mapfile layer. On 13 August 2013 17:42, Andrea Peri wrote: > Hi, > > I tested trasforming the multilinestring dataset in a linestring dat

[mapserver-users] Angle Follow will accept only simple linestring don't MultiLinestring ?

2013-08-13 Thread Andrea Peri
Hi, Try.ing to set a label on a MULTILINESTRING dataset. I set a label with Follow capability. ANGLE FOLLOW But I'm having this error: msOGRFileNextShape(): OGR error. IllegalArgumentException: BufferBuilder::bufferLineSingleSided only accept linestrings Is the Follow compatible with