Re: [JPP-Devel] OpenJump

2010-06-02 Thread Michaël Michaud
Hi Rahul,

I answer to you with a copy to the OpenJUMP developers mailing list as 
this is the good place to ask questions about programming with OpenJUMP.

If you have a look in the mailing list archive, you'll find a recent 
discussion about how to load shapefile by code :
http://sourceforge.net/mailarchive/forum.php?forum_name=jump-pilot-devel

Also there is a good documentation on OpenJUMP website :
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Documentation

The developer documentation is here :
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Developer_Documentation_and_HowTo

And an example with loading shapefile has recently been added here :
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=How_to_load_data_from_a_Shape_File_directly

The OpenJUMP developper and user community will be interested in knowing 
more about your project

Michaël

rahul pandia a écrit :


 Hi;
  My Name is Rahul .
  For the last couple of months i have been working on OpenJump and 
 woulld like to thank you for this amazing software.
  Also I have a request that i am intrested in becoming an OpenJump 
 programmer   Kindly help me in understanding the codelike 
 write now I am stuck at how to understand of loading
  of shp files in OpenJump platformdo you guys has some 
 documentation for the code..as I will like toknow the  workflow of 
 the code in much depper sense

 Thanks
 Rahul Pandia




--

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How handle diferents menu items, inside the same plugin

2010-06-02 Thread Hernan Arellano


Ok, This was what I thought.  

thanks for the help!.

Hernan.
  
_

--

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Problem regarding measuring tools

2010-06-02 Thread Rahkonen Jukka
Hi,
 
OpenJUMP does not know anything about projections and units.  These data are in 
EPSG:4326 (WGS84 lon/lat) and units are degrees.  Thus Tasmania is close to 10 
degrees wide, which is correct.
 
-Jukka Rahkonen-




Lähettäjä: siddharth raghuvanshi [mailto:track009.siddha...@gmail.com] 
Lähetetty: 2. kesäkuuta 2010 14:50
Vastaanottaja: jump-pilot-devel
Aihe: [JPP-Devel] Problem regarding measuring tools


Hi, 

I have downloaded some sample layer datasets which are being provided 
by geoserver named tasmania_roads  
tasmania_state_boundaries in the form of shapefiles, then I added these layers 
in OpenJump. Everything is fine except the distance information.
The distance tool is showing that the width of the Tasmania state is less than 
10m. I didn't get what the problem is??

For reference, I am attaching the zipped folder of both the shapefiles.

Thanks
Siddharth   

--

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Development - OpenJUMP

2010-06-02 Thread Caroline Julliê Freitas Ribeiro
I tried to put a new attribute to a old Feature, I altered the Schema but
looks like the size of the array whete stay the data of the Feature is not
actualized.

I got the following Stack trace:

java.lang.ArrayIndexOutOfBoundsException: 3
at
com.vividsolutions.jump.feature.BasicFeature.getAttribute(BasicFeature.java:82)
at
com.vividsolutions.jump.workbench.ui.LayerTableModel$4.getValue(LayerTableModel.java:170)
at
com.vividsolutions.jump.workbench.ui.LayerTableModel$MyColumn.getValueAt(LayerTableModel.java:75)
at
com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel.getValueAt(ColumnBasedTableModel.java:141)
at
com.vividsolutions.jump.workbench.ui.GUIUtil.chooseGoodColumnWidths(GUIUtil.java:408)
at
com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:415)
at
com.vividsolutions.jump.workbench.ui.AttributeTablePanel.init(AttributeTablePanel.java:307)
at
com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:154)
at
com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136)
at
com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:143)
at
com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88)
at
com.vividsolutions.jump.workbench.ui.cursortool.FeatureInfoTool.gestureFinished(FeatureInfoTool.java:81)
at
com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.fireGestureFinished(AbstractCursorTool.java:446)
at
com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool.mouseClicked(SpecifyFeaturesTool.java:95)
at
com.vividsolutions.jump.workbench.ui.cursortool.LeftClickFilter.mouseClicked(LeftClickFilter.java:81)
at
com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.mouseClicked(DelegatingTool.java:97)
at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
at java.awt.Component.processMouseEvent(Component.java:6266)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

This is the code where I got the problem:

 Layer l = (Layer)cboLayers.getSelectedItem();
FeatureCollectionWrapper col = l.getFeatureCollectionWrapper();
FeatureSchema schema = col.getFeatureSchema();
instalEsquema(schema,rs);
List lista =col.getFeatures();
while (rs.next()){
for(Object o: lista){
Feature f = (Feature) o;
Feature fNew;
String att =
f.getAttribute(cboAtributos.getSelectedItem().toString()).toString();
if (att.equals(rs.getString(txtCampo.getText({
for(int i
=nroAtributosAntes;ischema.getAttributeCount();i++){
f.setAttribute(i,
rs.getString(schema.getAttributeName(i))); //Here is the problem
}
}
}
}

private void instalEsquema(FeatureSchema schema, ResultSet rs) throws
SQLException {
//Here everything works fine
nroAtributosAntes = schema.getAttributeCount();
ResultSetMetaData meta = rs.getMetaData();
for(int i =1;i=meta.getColumnCount();i++){
schema.addAttribute(meta.getColumnLabel(i),
AttributeType.STRING);
}
}


Thanks

-- 
Caroline Julliê de Freitas Ribeiro
Graduando em Análise e Desenvolvimento de Sistemas

Instituto Federal Minas Gerais - IFMG
Campus Bambuí
--


Re: [JPP-Devel] Development - OpenJUMP

2010-06-02 Thread Larry Becker
Hi Caroline,

  You seem to be making progress on your project.  Your current problem is
that when you alter a schema it only affects new features.  You need to
replace the old schema in each feature with the new one before copying
attributes.

regards,
Larry

2010/6/2 Caroline Julliê Freitas Ribeiro krolj...@gmail.com

 I tried to put a new attribute to a old Feature, I altered the Schema but
 looks like the size of the array whete stay the data of the Feature is not
 actualized.

 I got the following Stack trace:

 java.lang.ArrayIndexOutOfBoundsException: 3
 at
 com.vividsolutions.jump.feature.BasicFeature.getAttribute(BasicFeature.java:82)
 at
 com.vividsolutions.jump.workbench.ui.LayerTableModel$4.getValue(LayerTableModel.java:170)
 at
 com.vividsolutions.jump.workbench.ui.LayerTableModel$MyColumn.getValueAt(LayerTableModel.java:75)
 at
 com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel.getValueAt(ColumnBasedTableModel.java:141)
 at
 com.vividsolutions.jump.workbench.ui.GUIUtil.chooseGoodColumnWidths(GUIUtil.java:408)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:415)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTablePanel.init(AttributeTablePanel.java:307)
 at
 com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:154)
 at
 com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:143)
 at
 com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.FeatureInfoTool.gestureFinished(FeatureInfoTool.java:81)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.fireGestureFinished(AbstractCursorTool.java:446)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool.mouseClicked(SpecifyFeaturesTool.java:95)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.LeftClickFilter.mouseClicked(LeftClickFilter.java:81)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.mouseClicked(DelegatingTool.java:97)
 at
 java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
 at java.awt.Component.processMouseEvent(Component.java:6266)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
 at java.awt.Component.processEvent(Component.java:6028)
 at java.awt.Container.processEvent(Container.java:2041)
 at java.awt.Component.dispatchEventImpl(Component.java:4630)
 at java.awt.Container.dispatchEventImpl(Container.java:2099)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at
 java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
 at
 java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
 at
 java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
 at java.awt.Container.dispatchEventImpl(Container.java:2085)
 at java.awt.Window.dispatchEventImpl(Window.java:2475)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
 at
 java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at
 java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at
 java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at
 java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at
 java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

 This is the code where I got the problem:

  Layer l = (Layer)cboLayers.getSelectedItem();
 FeatureCollectionWrapper col = l.getFeatureCollectionWrapper();
 FeatureSchema schema = col.getFeatureSchema();
 instalEsquema(schema,rs);
 List lista =col.getFeatures();
 while (rs.next()){
 for(Object o: lista){
 Feature f = (Feature) o;
 Feature fNew;
 String att =
 f.getAttribute(cboAtributos.getSelectedItem().toString()).toString();
 if (att.equals(rs.getString(txtCampo.getText({
 for(int i
 =nroAtributosAntes;ischema.getAttributeCount();i++){
 f.setAttribute(i,
 rs.getString(schema.getAttributeName(i))); //Here is the problem
 }
 }
 }
 }

 private void instalEsquema(FeatureSchema schema, ResultSet rs) throws
 SQLException {
 //Here everything works fine
 nroAtributosAntes = schema.getAttributeCount();
 ResultSetMetaData meta = 

Re: [JPP-Devel] Development - OpenJUMP

2010-06-02 Thread Larry Becker
For tips on how to do this see:
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Extending_a_FeatureCollection_by_Adding_new_Attributes

On Wed, Jun 2, 2010 at 9:17 AM, Larry Becker becker.la...@gmail.com wrote:

 Hi Caroline,

   You seem to be making progress on your project.  Your current problem is
 that when you alter a schema it only affects new features.  You need to
 replace the old schema in each feature with the new one before copying
 attributes.

 regards,
 Larry

 2010/6/2 Caroline Julliê Freitas Ribeiro krolj...@gmail.com

 I tried to put a new attribute to a old Feature, I altered the Schema but
 looks like the size of the array whete stay the data of the Feature is not
 actualized.

 I got the following Stack trace:

 java.lang.ArrayIndexOutOfBoundsException: 3
 at
 com.vividsolutions.jump.feature.BasicFeature.getAttribute(BasicFeature.java:82)
 at
 com.vividsolutions.jump.workbench.ui.LayerTableModel$4.getValue(LayerTableModel.java:170)
 at
 com.vividsolutions.jump.workbench.ui.LayerTableModel$MyColumn.getValueAt(LayerTableModel.java:75)
 at
 com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel.getValueAt(ColumnBasedTableModel.java:141)
 at
 com.vividsolutions.jump.workbench.ui.GUIUtil.chooseGoodColumnWidths(GUIUtil.java:408)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:415)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTablePanel.init(AttributeTablePanel.java:307)
 at
 com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:154)
 at
 com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:143)
 at
 com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.FeatureInfoTool.gestureFinished(FeatureInfoTool.java:81)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.fireGestureFinished(AbstractCursorTool.java:446)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool.mouseClicked(SpecifyFeaturesTool.java:95)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.LeftClickFilter.mouseClicked(LeftClickFilter.java:81)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.mouseClicked(DelegatingTool.java:97)
 at
 java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
 at java.awt.Component.processMouseEvent(Component.java:6266)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
 at java.awt.Component.processEvent(Component.java:6028)
 at java.awt.Container.processEvent(Container.java:2041)
 at java.awt.Component.dispatchEventImpl(Component.java:4630)
 at java.awt.Container.dispatchEventImpl(Container.java:2099)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at
 java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
 at
 java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
 at
 java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
 at java.awt.Container.dispatchEventImpl(Container.java:2085)
 at java.awt.Window.dispatchEventImpl(Window.java:2475)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
 at
 java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at
 java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at
 java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at
 java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at
 java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

 This is the code where I got the problem:

  Layer l = (Layer)cboLayers.getSelectedItem();
 FeatureCollectionWrapper col = l.getFeatureCollectionWrapper();
 FeatureSchema schema = col.getFeatureSchema();
 instalEsquema(schema,rs);
 List lista =col.getFeatures();
 while (rs.next()){
 for(Object o: lista){
 Feature f = (Feature) o;
 Feature fNew;
 String att =
 f.getAttribute(cboAtributos.getSelectedItem().toString()).toString();
 if (att.equals(rs.getString(txtCampo.getText({
 for(int i
 =nroAtributosAntes;ischema.getAttributeCount();i++){
 f.setAttribute(i,
 rs.getString(schema.getAttributeName(i))); //Here is the problem
 }
 }
 }
 }


Re: [JPP-Devel] Development - OpenJUMP

2010-06-02 Thread Benjamin Gudehus
Hi!

I wrote a FeatureCollectionBuilder and a FeatureCollectionSchemaEditor for
that in Groovy using the Builder design pattern (
http://groovy.codehaus.org/Builders).

Look at this example code (from the unit tests). You can add and remove
Attributes to the FeatureSchema.

pre
private featureCollection

def setup() {
this.featureCollection = new FeatureCollectionBuilder().build {
schema {
attribute(id, AttributeType.INTEGER)
attribute(name, AttributeType.STRING)
}
features {
feature(id: 1, name: foo)
feature(id: 2, name: bar)
feature(id: 3, name: baz)
feature(id: 4, name: quux)
}
}
}

def Add an attribute to the FeatureSchema() {
when:
def collectionEditor = new
FeatureCollectionSchemaEditor(this.featureCollection)
collectionEditor.modifySchema {
addSchemaAttribute(street, AttributeType.STRING)
}

then:
def newFeatureSchema =
collectionEditor.getFeatureCollection().getFeatureSchema()
collectionEditor.getAttributeNames(newFeatureSchema) == [id, name,
street]
}
/pre

If somebody wants to use it, I can upload the sourcecode (but it depends on
the groovy jar).

2010/6/2 Larry Becker becker.la...@gmail.com

 For tips on how to do this see:
 http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Extending_a_FeatureCollection_by_Adding_new_Attributes


 On Wed, Jun 2, 2010 at 9:17 AM, Larry Becker becker.la...@gmail.comwrote:

 Hi Caroline,

   You seem to be making progress on your project.  Your current problem is
 that when you alter a schema it only affects new features.  You need to
 replace the old schema in each feature with the new one before copying
 attributes.

 regards,
 Larry

 2010/6/2 Caroline Julliê Freitas Ribeiro krolj...@gmail.com

  I tried to put a new attribute to a old Feature, I altered the Schema
 but looks like the size of the array whete stay the data of the Feature is
 not actualized.

 I got the following Stack trace:

 java.lang.ArrayIndexOutOfBoundsException: 3
 at
 com.vividsolutions.jump.feature.BasicFeature.getAttribute(BasicFeature.java:82)
 at
 com.vividsolutions.jump.workbench.ui.LayerTableModel$4.getValue(LayerTableModel.java:170)
 at
 com.vividsolutions.jump.workbench.ui.LayerTableModel$MyColumn.getValueAt(LayerTableModel.java:75)
 at
 com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel.getValueAt(ColumnBasedTableModel.java:141)
 at
 com.vividsolutions.jump.workbench.ui.GUIUtil.chooseGoodColumnWidths(GUIUtil.java:408)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTablePanel.initColumnWidths(AttributeTablePanel.java:415)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTablePanel.init(AttributeTablePanel.java:307)
 at
 com.vividsolutions.jump.workbench.ui.AttributePanel.addTablePanel(AttributePanel.java:154)
 at
 com.vividsolutions.jump.workbench.ui.AttributePanel.layerAdded(AttributePanel.java:136)
 at
 com.vividsolutions.jump.workbench.ui.AttributeTab$5.layerAdded(AttributeTab.java:143)
 at
 com.vividsolutions.jump.workbench.ui.InfoModel.add(InfoModel.java:88)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.FeatureInfoTool.gestureFinished(FeatureInfoTool.java:81)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool.fireGestureFinished(AbstractCursorTool.java:446)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.SpecifyFeaturesTool.mouseClicked(SpecifyFeaturesTool.java:95)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.LeftClickFilter.mouseClicked(LeftClickFilter.java:81)
 at
 com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool.mouseClicked(DelegatingTool.java:97)
 at
 java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
 at java.awt.Component.processMouseEvent(Component.java:6266)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
 at java.awt.Component.processEvent(Component.java:6028)
 at java.awt.Container.processEvent(Container.java:2041)
 at java.awt.Component.dispatchEventImpl(Component.java:4630)
 at java.awt.Container.dispatchEventImpl(Container.java:2099)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at
 java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
 at
 java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
 at
 java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
 at java.awt.Container.dispatchEventImpl(Container.java:2085)
 at java.awt.Window.dispatchEventImpl(Window.java:2475)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
 at
 java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at
 

Re: [JPP-Devel] Problem regarding measuring tools

2010-06-02 Thread siddharth raghuvanshi
Hi,

Thanks for clearing my previous doubt.

But if this is the case, then how can we perform spatial query : is within
distance, in  which the source and the mask layer has different co-ordinate
reference system??

Regards
Siddharth

On Wed, Jun 2, 2010 at 6:26 PM, Rahkonen Jukka jukka.rahko...@mmmtike.fiwrote:

  Hi,

 OpenJUMP does not know anything about projections and units.  These data
 are in EPSG:4326 (WGS84 lon/lat) and units are degrees.  Thus Tasmania is
 close to 10 degrees wide, which is correct.

 -Jukka Rahkonen-

  --
 *Lähettäjä:* siddharth raghuvanshi [mailto:track009.siddha...@gmail.com]
 *Lähetetty:* 2. kesäkuuta 2010 14:50
 *Vastaanottaja:* jump-pilot-devel
 *Aihe:* [JPP-Devel] Problem regarding measuring tools

 Hi,

 I have downloaded some sample layer datasets which are being provided by
 geoserver named tasmania_roads 
   tasmania_state_boundaries in the form of shapefiles, then I added these
 layers in OpenJump. Everything is fine except the distance information.
 The distance tool is showing that the width of the Tasmania state is less
 than 10m. I didn't get what the problem is??

 For reference, I am attaching the zipped folder of both the shapefiles.

 Thanks
 Siddharth



 --


 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] How to hide menu options without desactivate the plugin

2010-06-02 Thread Hernan Arellano

Hi all!  thanks for answer in advance!

I need to hide the options of the menu i.e. FILE and all its submenus, EDIT 
and all its submenus, . including the ABOUT menu. But i don´t want 
desactivate these plugins, i just want to use them only by code.

I saw the file called default-plugins.xml contained in the /bin/ folder, but 
if I comment the plugins, they will not be loaded with OJ.

Any suggestion to hide the menu?

Hernan.
  
_

--

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Problem regarding measuring tools

2010-06-02 Thread Stefan Steiniger
you can't - as long as you ensure they are in the same coordinate system.

We have an external plugin which allows to make transformations. see here:
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=Working_with_Projections

siddharth raghuvanshi wrote:
 Hi, 
 
 Thanks for clearing my previous doubt.
 
 But if this is the case, then how can we perform spatial query : is 
 within distance, in  which the source and the mask layer has different 
 co-ordinate reference system??
 
 Regards
 Siddharth
 

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] How to hide menu options without desactivate the plugin

2010-06-02 Thread Stefan Steiniger
Hei Hernan,

The basic menus can't be controlled using default-plugins.xml - as we 
thought they are too basic and needed by all users.

However, the classes

JumpConfiguration (in the com package) and OpenJUMPConfiguration (in the 
org package)

load the menu options as plugins.
You can deactivate the menu options in those classes.
Programatically the code should still be accessible.

stefan



Hernan Arellano wrote:
 Hi all!  thanks for answer in advance!
 
 I need to hide the options of the menu i.e. FILE and all its submenus, 
 EDIT and all its submenus, . including the ABOUT menu. But i don´t 
 want desactivate these plugins, i just want to use them only by code.
 
 I saw the file called default-plugins.xml contained in the /bin/ 
 folder, but if I comment the plugins, they will not be loaded with OJ.
 
 Any suggestion to hide the menu?
 
 Hernan.
 
 
 
 
 
 
 --
 
 
 
 
 
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJump

2010-06-02 Thread Stefan Steiniger
thanks Michael for answering

as a note, we had altogether about 12'000 downloads of OpenJUMP 1.3.1 
for windows and as zip in the past 6 months. Which makes 2000/month and 
is more than one year ago where we had about 1200/month.

Now - what are all these people doing with OJ? ;)

our list stats:
jpp devel: 119 subscribers
openjump users: 125 subscribers
(of which 1-2 emails are backups)

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJump

2010-06-02 Thread Larry Becker
Thanks for the stats Stefen.  Pretty impressive and comparable to the most
popular GIS of all time: ArcView, which sold 10,000 copies in the first six
months of 1992.

Larry

On Wed, Jun 2, 2010 at 1:41 PM, Stefan Steiniger sst...@geo.uzh.ch wrote:

 thanks Michael for answering

 as a note, we had altogether about 12'000 downloads of OpenJUMP 1.3.1
 for windows and as zip in the past 6 months. Which makes 2000/month and
 is more than one year ago where we had about 1200/month.

 Now - what are all these people doing with OJ? ;)

 our list stats:
 jpp devel: 119 subscribers
 openjump users: 125 subscribers
 (of which 1-2 emails are backups)


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Generate file of tracings (Persona lized Feature Layers)‏

2010-06-02 Thread Hernan Arellano

Hi guys!

I need to generate a file of tracings (like a feature 
layer), this file must contain distint shapes like points, lines, 
poligons, symbology, and text, all these shapes drawed by user on a map.
 
I know that to do this, I need to generate a new FLayer for each kind of shape 
and draw on it, so my file of tracings will has 5 Flayer.

1) To generate distint styles for each shape inside the same FLayer, i will
 use ColorThemingStyle with value attribute selected by user. is it 
correct or there is a better way?

2) Is there already any plugins to do file of tracings that I need? 
if not, once my plugin is terminated i want to share it with all of you!

Thanks, Regards!

Hernan.






  
_

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJump

2010-06-02 Thread Stefan Steiniger
well... so we are on the right track ;)

Larry Becker schrieb:
 Thanks for the stats Stefen.  Pretty impressive and comparable to the 
 most popular GIS of all time: ArcView, which sold 10,000 copies in the 
 first six months of 1992.
 
 Larry
 
 On Wed, Jun 2, 2010 at 1:41 PM, Stefan Steiniger sst...@geo.uzh.ch 
 mailto:sst...@geo.uzh.ch wrote:
 
 thanks Michael for answering
 
 as a note, we had altogether about 12'000 downloads of OpenJUMP 1.3.1
 for windows and as zip in the past 6 months. Which makes 2000/month and
 is more than one year ago where we had about 1200/month.
 
 Now - what are all these people doing with OJ? ;)
 
 our list stats:
 jpp devel: 119 subscribers
 openjump users: 125 subscribers
 (of which 1-2 emails are backups)
 
 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 mailto:Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
 
 
 
 
 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate 
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
 lucky parental unit.  See the prize list and enter to win: 
 http://p.sf.net/sfu/thinkgeek-promo
 
 
 
 
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel