Re: [mapserver-users] connect label to features

2021-06-25 Thread Basques, Bob (CI-StPaul)
All,

My original need for the label lines was for labeling point clusters, I wanted 
to see a label for each point.  Having said that I understand the reasoning 
behind the logic we're seeing.  I would suggest that  along with "FORCE TRUE" 
that some sort of related min-distance (MINLEADERDISTANCE?) type of variable be 
added directly related to leader lines and when they come on/off by scale, or 
MINDISTANCE working inside s separate STYLE block (Does it work that way now?) 
for Leader lines.  I think multiple STYLE blocks came after LEADERs . . . .

bobb



On 6/25/21, 8:28 AM, "mapserver-users on behalf of Jeff McKenna" 
 wrote:

Think Before You Click: This email originated outside our organization.


Hi Luca,

The implemented leader label logic does not turn on leader lines for
every point or feature.  (I believe this is what is causing the
confusion, as reported by you and Bob)   I personally could see a new
parameter in the LEADER object of "FORCE TRUE" being very useful, but
that would take a champion to file a new ticket
(https://github.com/MapServer/MapServer/issues), create a small test
case (use yours, but also include the symbolset and fonts that your
mapfile references, so a developer can just execute shp2img
out-of-the-box), and then nudge/test/give feedback throughout the whole
development process.

Hope that explains more what is happening.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-06-25 9:21 a.m., Jeff McKenna wrote:
> Hi Luca,
>
> I was able to get leader lines with your data by just commented out your
> MINDISTANCE parameter in your LABEL.  Here is the resulting map image:
> https://pasteboard.co/K8eUIip.png
>
> Hope that helps.
>
> (please also never attach zip, images, or files, on a mailing list,
> instead just upload your zip or image somewhere, and point to it here
> instead)
>
> Have a nice weekend,
>
> -jeff
>
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-25 Thread Jeff McKenna

Hi Luca,

The implemented leader label logic does not turn on leader lines for 
every point or feature.  (I believe this is what is causing the 
confusion, as reported by you and Bob)   I personally could see a new 
parameter in the LEADER object of "FORCE TRUE" being very useful, but 
that would take a champion to file a new ticket 
(https://github.com/MapServer/MapServer/issues), create a small test 
case (use yours, but also include the symbolset and fonts that your 
mapfile references, so a developer can just execute shp2img 
out-of-the-box), and then nudge/test/give feedback throughout the whole 
development process.


Hope that explains more what is happening.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-06-25 9:21 a.m., Jeff McKenna wrote:

Hi Luca,

I was able to get leader lines with your data by just commented out your 
MINDISTANCE parameter in your LABEL.  Here is the resulting map image: 
https://pasteboard.co/K8eUIip.png


Hope that helps.

(please also never attach zip, images, or files, on a mailing list, 
instead just upload your zip or image somewhere, and point to it here 
instead)


Have a nice weekend,

-jeff




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-25 Thread Jeff McKenna

Hi Luca,

I was able to get leader lines with your data by just commented out your 
MINDISTANCE parameter in your LABEL.  Here is the resulting map image: 
https://pasteboard.co/K8eUIip.png


Hope that helps.

(please also never attach zip, images, or files, on a mailing list, 
instead just upload your zip or image somewhere, and point to it here 
instead)


Have a nice weekend,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/



On 2021-06-24 6:57 p.m., Luca Delucchi wrote:

Hi Jeff,

On Thu, 24 Jun 2021 at 21:37, Jeff McKenna
 wrote:


Luca, I've done more testing and in fact I can get point & line features
(with label leader lines)  to work with that mapfile.  I can now see
Thomas' point, that this is a documentation issue (likely when I
originally documented this I could only get it to work with polygons,
but now when I test I can get points,lines,polygons to work by adapting
that same mapfile).



Thanks a lot, I tried again changing some parameters but I didn't get
any leader lines.
I'm using mapserver 7.6.2 provided by Debian


I'll fix that document now.

If you post your mapfile and data I can test your data locally here.



here you are an example not working for me, with my output png


-jeff






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Luca Delucchi
Hi Jeff,

On Thu, 24 Jun 2021 at 21:37, Jeff McKenna
 wrote:
>
> Luca, I've done more testing and in fact I can get point & line features
> (with label leader lines)  to work with that mapfile.  I can now see
> Thomas' point, that this is a documentation issue (likely when I
> originally documented this I could only get it to work with polygons,
> but now when I test I can get points,lines,polygons to work by adapting
> that same mapfile).
>

Thanks a lot, I tried again changing some parameters but I didn't get
any leader lines.
I'm using mapserver 7.6.2 provided by Debian

> I'll fix that document now.
>
> If you post your mapfile and data I can test your data locally here.
>

here you are an example not working for me, with my output png

> -jeff
>


-- 
ciao
Luca

www.lucadelu.org
<>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Jeff McKenna
Luca, I've done more testing and in fact I can get point & line features 
(with label leader lines)  to work with that mapfile.  I can now see 
Thomas' point, that this is a documentation issue (likely when I 
originally documented this I could only get it to work with polygons, 
but now when I test I can get points,lines,polygons to work by adapting 
that same mapfile).


I'll fix that document now.

If you post your mapfile and data I can test your data locally here.

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/


On 2021-06-24 3:12 p.m., Jeff McKenna wrote:

Hi Luca,

I agree with your thoughts that it would be nice if it worked with 
points as well.  (I don't believe that I ever had it working locally 
with anything but polygons)  Please definitely file a ticket.  Thanks!


-jeff



On 2021-06-24 2:29 p.m., Luca Delucchi wrote:

On Thu, 24 Jun 2021 at 19:08, Jeff McKenna
 wrote:


Hi Luca,



Hi Jeff,


I had created that page that Thomas pointed to, I see that my test files
are still available that I used to generate those map images
(https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give
that mapfile a try with your local MapServer instance, and let me know
if I need to update that test package.


I tested that data and it work properly, but as Thomas reported it
seems to work only with polygon, with my point data it doesn't work
Should I open a enhancement (or bug) issue? I think it should be
useful to have it at least for points, but also for line



-jeff


Thanks for your help






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Jeff McKenna

Hi Luca,

I agree with your thoughts that it would be nice if it worked with 
points as well.  (I don't believe that I ever had it working locally 
with anything but polygons)  Please definitely file a ticket.  Thanks!


-jeff



On 2021-06-24 2:29 p.m., Luca Delucchi wrote:

On Thu, 24 Jun 2021 at 19:08, Jeff McKenna
 wrote:


Hi Luca,



Hi Jeff,


I had created that page that Thomas pointed to, I see that my test files
are still available that I used to generate those map images
(https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give
that mapfile a try with your local MapServer instance, and let me know
if I need to update that test package.


I tested that data and it work properly, but as Thomas reported it
seems to work only with polygon, with my point data it doesn't work
Should I open a enhancement (or bug) issue? I think it should be
useful to have it at least for points, but also for line



-jeff


Thanks for your help




--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Luca Delucchi
On Thu, 24 Jun 2021 at 19:08, Jeff McKenna
 wrote:
>
> Hi Luca,
>

Hi Jeff,

> I had created that page that Thomas pointed to, I see that my test files
> are still available that I used to generate those map images
> (https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give
> that mapfile a try with your local MapServer instance, and let me know
> if I need to update that test package.
>
I tested that data and it work properly, but as Thomas reported it
seems to work only with polygon, with my point data it doesn't work
Should I open a enhancement (or bug) issue? I think it should be
useful to have it at least for points, but also for line

>
> -jeff

Thanks for your help

-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread Jeff McKenna

Hi Luca,

I had created that page that Thomas pointed to, I see that my test files 
are still available that I used to generate those map images 
(https://download.osgeo.org/mapserver/tickets/label-leader.zip).  Give 
that mapfile a try with your local MapServer instance, and let me know 
if I need to update that test package.


(I think that I should start doing this for all documented features from 
now on, include a link to my test mapfiles)


-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, MapServer Consulting and Training
co-founder of FOSS4G
http://gatewaygeo.com/




On 2021-06-24 2:00 p.m., thomas bonfort wrote:

https://mapserver.org/mapfile/leader.html
I'm not sure why it's limited to polygons though...

On Thu, Jun 24, 2021 at 6:58 PM Luca Delucchi  wrote:


Hi all,

I would like to know if it is possible to link a feature with its
label, something like QGIS is doing in Labels -> Callouts.

thanks a lot

--
ciao
Luca

www.lucadelu.org

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] connect label to features

2021-06-24 Thread thomas bonfort
https://mapserver.org/mapfile/leader.html
I'm not sure why it's limited to polygons though...

On Thu, Jun 24, 2021 at 6:58 PM Luca Delucchi  wrote:
>
> Hi all,
>
> I would like to know if it is possible to link a feature with its
> label, something like QGIS is doing in Labels -> Callouts.
>
> thanks a lot
>
> --
> ciao
> Luca
>
> www.lucadelu.org
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] connect label to features

2021-06-24 Thread Luca Delucchi
Hi all,

I would like to know if it is possible to link a feature with its
label, something like QGIS is doing in Labels -> Callouts.

thanks a lot

-- 
ciao
Luca

www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users