Remove last inserted point

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Remove last inserted point

Ivan Mincik-2
Dear Kosmo users.
When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
Is anybody successfully using it ? Am I missing something or is it BUG ?

In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?

--
Ivan
_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Sergio Baños Calvo
Good morning Ivan.

It's a bug, the "Remove last inserted point" works with the "Continue
linestring" tool, but not while drawing the line with the "Draw
Linestring Tool". It has been solved for the 2.0 version, but the
changes haven't been added to the 1.2.X branch. I'll prepare a patch for
the 1.2.1 version this afternoon and I will post it to the list.

Regards,

Ivan Mincik escribió:
> Dear Kosmo users.
> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
> Is anybody successfully using it ? Am I missing something or is it BUG ?
>
> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
>
>  

--

Sergio Baños Calvo

Jefe de desarrollos
Sistemas Abiertos de Información Geográfica, S.L. (SAIG S.L.)
Tlfno. móvil: 685005960
Tlfno. fijo: (+34) 954788876

E-mail: [hidden email]

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Ivan Mincik-2
On Wednesday 17 June 2009, Sergio Baños Calvo wrote:

> Good morning Ivan.
>
> It's a bug, the "Remove last inserted point" works with the "Continue
> linestring" tool, but not while drawing the line with the "Draw
> Linestring Tool". It has been solved for the 2.0 version, but the
> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
> the 1.2.1 version this afternoon and I will post it to the list.
>
> Regards,
>
> Ivan Mincik escribió:
> > Dear Kosmo users.
> > When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
> > Is anybody successfully using it ? Am I missing something or is it BUG ?
> >
> > In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
> >
> >  
>
Thanks, I will wait for patch.

--
Ivan

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Sergio Baños Calvo
Good afternoon, Ivan.

Here it's the patch file to the RemoveLastPointPlugIn class.

Regards,

Ivan Mincik escribió:

> On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
>  
>> Good morning Ivan.
>>
>> It's a bug, the "Remove last inserted point" works with the "Continue
>> linestring" tool, but not while drawing the line with the "Draw
>> Linestring Tool". It has been solved for the 2.0 version, but the
>> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
>> the 1.2.1 version this afternoon and I will post it to the list.
>>
>> Regards,
>>
>> Ivan Mincik escribió:
>>    
>>> Dear Kosmo users.
>>> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
>>> Is anybody successfully using it ? Am I missing something or is it BUG ?
>>>
>>> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
>>>
>>>  
>>>      
>
> Thanks, I will wait for patch.
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kosmo_int mailing list
> [hidden email]
> http://lists.saig.es/mailman/listinfo/kosmo_int
>  
--

Sergio Baños Calvo

Jefe de desarrollos
Sistemas Abiertos de Información Geográfica, S.L. (SAIG S.L.)
Tlfno. móvil: 685005960
Tlfno. fijo: (+34) 954788876

E-mail: [hidden email]


--- C:\Users\Elroth\AppData\Local\Temp\RemoveLastPointPlugIn.java-rev6532.svn001.tmp.java mié jun 17 14:04:46 2009
+++ D:\workspace\saig-core\src\org\saig\jump\plugin\editing\RemoveLastPointPlugIn.java vie oct 31 08:59:42 2008
@@ -48,6 +48,7 @@
 import com.vividsolutions.jump.workbench.plugin.MultiEnableCheck;
 import com.vividsolutions.jump.workbench.plugin.PlugInContext;
 import com.vividsolutions.jump.workbench.ui.cursortool.CursorTool;
+import com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool;
 import com.vividsolutions.jump.workbench.ui.cursortool.LeftClickFilter;
 import com.vividsolutions.jump.workbench.ui.cursortool.QuasimodeTool;
 import com.vividsolutions.jump.workbench.ui.images.IconLoader;
@@ -166,6 +167,12 @@
                     }
                 }
                 
+                if(currentCursorTool instanceof DelegatingTool)
+                {
+                    DelegatingTool delegatingTool = (DelegatingTool) currentCursorTool;
+                    currentCursorTool = delegatingTool.getDelegate();
+                }
+                
                 if(currentCursorTool.isGestureInProgress() &&
                         currentCursorTool instanceof IRemovableLastCoordinate)
                 {

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Ivan Mincik-3
On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> Good afternoon, Ivan.
>
> Here it's the patch file to the RemoveLastPointPlugIn class.
Thanks a lot.

>
> Regards,
>
> Ivan Mincik escribió:
> > On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> >  
> >> Good morning Ivan.
> >>
> >> It's a bug, the "Remove last inserted point" works with the "Continue
> >> linestring" tool, but not while drawing the line with the "Draw
> >> Linestring Tool". It has been solved for the 2.0 version, but the
> >> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
> >> the 1.2.1 version this afternoon and I will post it to the list.
> >>
> >> Regards,
> >>
> >> Ivan Mincik escribió:
> >>    
> >>> Dear Kosmo users.
> >>> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
> >>> Is anybody successfully using it ? Am I missing something or is it BUG ?
> >>>
> >>> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
> >>>
> >>>  
> >>>      
> >
> > Thanks, I will wait for patch.
> >
> >  
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kosmo_int mailing list
> > [hidden email]
> > http://lists.saig.es/mailman/listinfo/kosmo_int
> >  
>


--
Ivan Mincik
Gista s.r.o.

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Ivan Mincik-2
In reply to this post by Ivan Mincik-2
On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> Good afternoon, Ivan.
>
> Here it's the patch file to the RemoveLastPointPlugIn class.
Thanks a lot.

>
> Regards,
>
> Ivan Mincik escribió:
> > On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> >  
> >> Good morning Ivan.
> >>
> >> It's a bug, the "Remove last inserted point" works with the "Continue
> >> linestring" tool, but not while drawing the line with the "Draw
> >> Linestring Tool". It has been solved for the 2.0 version, but the
> >> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
> >> the 1.2.1 version this afternoon and I will post it to the list.
> >>
> >> Regards,
> >>
> >> Ivan Mincik escribió:
> >>    
> >>> Dear Kosmo users.
> >>> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
> >>> Is anybody successfully using it ? Am I missing something or is it BUG ?
> >>>
> >>> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
> >>>
> >>>  
> >>>      
> >
> > Thanks, I will wait for patch.
> >
> >  
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kosmo_int mailing list
> > [hidden email]
> > http://lists.saig.es/mailman/listinfo/kosmo_int
> >  
>


--
Ivan Mincik
Gista s.r.o.

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Ivan Mincik-2
In reply to this post by Sergio Baños Calvo
On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> Good afternoon, Ivan.
>
> Here it's the patch file to the RemoveLastPointPlugIn class.
We applied the patch and tested. It is working fine for lines.
But "Remove last inserted point" is still not available for polygons. Is it designed only for lines or should we look for some other problem ?
Thanks, Ivan

>
> Regards,
>
> Ivan Mincik escribió:
> > On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> >  
> >> Good morning Ivan.
> >>
> >> It's a bug, the "Remove last inserted point" works with the "Continue
> >> linestring" tool, but not while drawing the line with the "Draw
> >> Linestring Tool". It has been solved for the 2.0 version, but the
> >> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
> >> the 1.2.1 version this afternoon and I will post it to the list.
> >>
> >> Regards,
> >>
> >> Ivan Mincik escribió:
> >>    
> >>> Dear Kosmo users.
> >>> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
> >>> Is anybody successfully using it ? Am I missing something or is it BUG ?
> >>>
> >>> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
> >>>
> >>>  
> >>>      
> >
> > Thanks, I will wait for patch.
> >
> >  
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kosmo_int mailing list
> > [hidden email]
> > http://lists.saig.es/mailman/listinfo/kosmo_int
> >  
>


--
Ivan Mincik
Gista s.r.o.

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Sergio Baños Calvo
Good morning Ivan.

The tool is designed for both of them. The problem is that the tools
must implement IRemovableLastCoordinate if they allow to remove
coordinates. Just make the class
com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool implement
IRemovableLastCoordinate and it will work for all the tools that allows
to draw a line/polygon on the screen. I forgot that change in my patch :-[ .

Regards,

Ivan Mincik escribió:

> On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
>  
>> Good afternoon, Ivan.
>>
>> Here it's the patch file to the RemoveLastPointPlugIn class.
>>    
> We applied the patch and tested. It is working fine for lines.
> But "Remove last inserted point" is still not available for polygons. Is it designed only for lines or should we look for some other problem ?
> Thanks, Ivan
>  
>> Regards,
>>
>> Ivan Mincik escribió:
>>    
>>> On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
>>>  
>>>      
>>>> Good morning Ivan.
>>>>
>>>> It's a bug, the "Remove last inserted point" works with the "Continue
>>>> linestring" tool, but not while drawing the line with the "Draw
>>>> Linestring Tool". It has been solved for the 2.0 version, but the
>>>> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
>>>> the 1.2.1 version this afternoon and I will post it to the list.
>>>>
>>>> Regards,
>>>>
>>>> Ivan Mincik escribió:
>>>>    
>>>>        
>>>>> Dear Kosmo users.
>>>>> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
>>>>> Is anybody successfully using it ? Am I missing something or is it BUG ?
>>>>>
>>>>> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
>>>>>
>>>>>  
>>>>>      
>>>>>          
>>> Thanks, I will wait for patch.
>>>
>>>  
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Kosmo_int mailing list
>>> [hidden email]
>>> http://lists.saig.es/mailman/listinfo/kosmo_int
>>>  
>>>      
>
>
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kosmo_int mailing list
> [hidden email]
> http://lists.saig.es/mailman/listinfo/kosmo_int
>  

--

Sergio Baños Calvo

Jefe de desarrollos
Sistemas Abiertos de Información Geográfica, S.L. (SAIG S.L.)
Tlfno. móvil: 685005960
Tlfno. fijo: (+34) 954788876

E-mail: [hidden email]

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int
Reply | Threaded
Open this post in threaded view
|

Re: Remove last inserted point

Ivan Mincik-2
On Friday 26 June 2009, Sergio Baños Calvo wrote:
> Good morning Ivan.
>
> The tool is designed for both of them. The problem is that the tools
> must implement IRemovableLastCoordinate if they allow to remove
> coordinates. Just make the class
> com.vividsolutions.jump.workbench.ui.cursortool.MultiClickTool implement
> IRemovableLastCoordinate and it will work for all the tools that allows
> to draw a line/polygon on the screen. I forgot that change in my patch :-[ .
>
For others for information here is the patch for polygons. Now removing last inserted point is working also for polygons.

diff -r 221257f9f63f -r 8a5d3401ef10 saig-core/src/com/vividsolutions/jump/workbench/ui/cursortool/MultiClickTool.java
--- a/saig-core/src/com/vividsolutions/jump/workbench/ui/cursortool/MultiClickTool.java Tue Jun 23 00:36:15 2009 +0200
+++ b/saig-core/src/com/vividsolutions/jump/workbench/ui/cursortool/MultiClickTool.java Sat Jun 27 19:16:10 2009 +0200
@@ -47,6 +47,7 @@
 import javax.swing.AbstractButton;

 import org.saig.jump.lang.I18N;
+import org.saig.jump.plugin.editing.IRemovableLastCoordinate;

 import com.vividsolutions.jts.geom.Coordinate;
 import com.vividsolutions.jts.util.Assert;
@@ -57,7 +58,7 @@
  *  A VisualIndicatorTool that allows the user to draw shapes with multiple
  *  vertices. Double-clicking ends the gesture.
  */
-public abstract class MultiClickTool extends AbstractCursorTool {
+public abstract class MultiClickTool extends AbstractCursorTool implements IRemovableLastCoordinate {

     protected List coordinates = new ArrayList();
     private Coordinate tentativeCoordinate;





> Regards,
>
> Ivan Mincik escribió:
> > On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> >  
> >> Good afternoon, Ivan.
> >>
> >> Here it's the patch file to the RemoveLastPointPlugIn class.
> >>    
> > We applied the patch and tested. It is working fine for lines.
> > But "Remove last inserted point" is still not available for polygons. Is it designed only for lines or should we look for some other problem ?
> > Thanks, Ivan
> >  
> >> Regards,
> >>
> >> Ivan Mincik escribió:
> >>    
> >>> On Wednesday 17 June 2009, Sergio Baños Calvo wrote:
> >>>  
> >>>      
> >>>> Good morning Ivan.
> >>>>
> >>>> It's a bug, the "Remove last inserted point" works with the "Continue
> >>>> linestring" tool, but not while drawing the line with the "Draw
> >>>> Linestring Tool". It has been solved for the 2.0 version, but the
> >>>> changes haven't been added to the 1.2.X branch. I'll prepare a patch for
> >>>> the 1.2.1 version this afternoon and I will post it to the list.
> >>>>
> >>>> Regards,
> >>>>
> >>>> Ivan Mincik escribió:
> >>>>    
> >>>>        
> >>>>> Dear Kosmo users.
> >>>>> When drawing lines in Kosmo, we have a function "Remove last inserted point". This function was little bit enhanced in 1.2 version. Now I see,  it is allways disabled (It is allways grey, I can not use it.)
> >>>>> Is anybody successfully using it ? Am I missing something or is it BUG ?
> >>>>>
> >>>>> In case it is BUG, I would like to ask,  if there is allready some patch, or we should write it by ourself ?
> >>>>>
> >>>>>  
> >>>>>      
> >>>>>          
> >>> Thanks, I will wait for patch.
> >>>
> >>>  
> >>> ------------------------------------------------------------------------
> >>>
> >>> _______________________________________________
> >>> Kosmo_int mailing list
> >>> [hidden email]
> >>> http://lists.saig.es/mailman/listinfo/kosmo_int
> >>>  
> >>>      
> >
> >
> >
> >  
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kosmo_int mailing list
> > [hidden email]
> > http://lists.saig.es/mailman/listinfo/kosmo_int
> >  
>


--
Ivan Mincik
Gista s.r.o.

_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

GISVM Server pre-release available

Ricardo Pinho

Dear all,

 

The first public pre-release version of “GIS Virtual Machine Server” is available at:

http://gisvm.com

 

GISVM Server is another product based on the GISVM new concept for a Free Open Source GIS Software distribution.

 

With it you get a full feature Free (dom) GIS Server, ready for you to use with your favorite GIS desktop application!

 

GISVM Server includes:

- Ubuntu 9.04 Server Edition JeOS (Just enough OS)

- LAMP Server bundle (Linux, Apache, MySQL and PHP)

- Samba File Server

- Tomcat Java Server

- PostgreSQL database server

- PostGIS (PostgreSQL spatial extension), ZigGIS and FDO ready!

- Mapserver

- Geoserver

- Deegree

- Webmin (a web-based interface for GISVM Server administration)

 

If you think this is a useful and interesting product, please help us with your participation on the beta testing forum board:

http://gisvm.com/forum/index.php?board=6.0

 

Thank you for your time and collaboration!

Best regards,
Ricardo Pinho



Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes
_______________________________________________
Kosmo_int mailing list
[hidden email]
http://lists.saig.es/mailman/listinfo/kosmo_int