Jukka,

can you send me a small GeoJSON example file to replicate your issue? ..ede

On 02.11.2016 17:12, Rahkonen Jukka (MML) wrote:
> Hi,
> 
>  
> 
> I opened some data from GeoJSON and I can’t edit the schema. Apply changes 
> yields just an error message. However, if I save the data into JML or GeoJSON 
> and open it from the disk, then I can edit the schema.  So unfortunately I 
> can’t provide with test data. Here is the error, though
> 
>  
> 
>  
> 
>  
> 
> java.lang.ClassCastException: java.lang.Long cannot be cast to 
> java.lang.String
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.plugin.ViewSchemaPlugIn.convert(ViewSchemaPlugIn.java:346)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.plugin.ViewSchemaPlugIn.convert(ViewSchemaPlugIn.java:287)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.plugin.ViewSchemaPlugIn.applyChanges(ViewSchemaPlugIn.java:165)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.plugin.ViewSchemaPlugIn.access$300(ViewSchemaPlugIn.java:77)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.plugin.ViewSchemaPlugIn$EditSchemaFrame$3.actionPerformed(ViewSchemaPlugIn.java:746)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.SchemaPanel.fireActionPerformed(SchemaPanel.java:687)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.SchemaPanel.applyButton_actionPerformed(SchemaPanel.java:677)
> 
>                              at 
> com.vividsolutions.jump.workbench.ui.SchemaPanel$14.actionPerformed(SchemaPanel.java:448)
> 
>                              at 
> javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
> 
>                              at 
> javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
> 
>                              at 
> javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
> 
>                              at 
> javax.swing.DefaultButtonModel.setPressed(Unknown Source)
> 
>                              at 
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
> 
>                              at java.awt.Component.processMouseEvent(Unknown 
> Source)
> 
>                              at 
> javax.swing.JComponent.processMouseEvent(Unknown Source)
> 
>                              at java.awt.Component.processEvent(Unknown 
> Source)
> 
>                              at java.awt.Container.processEvent(Unknown 
> Source)
> 
>                              at java.awt.Component.dispatchEventImpl(Unknown 
> Source)
> 
>                              at java.awt.Container.dispatchEventImpl(Unknown 
> Source)
> 
>                              at java.awt.Component.dispatchEvent(Unknown 
> Source)
> 
>                              at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> 
>                              at 
> java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> 
>                              at 
> java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> 
>                              at java.awt.Container.dispatchEventImpl(Unknown 
> Source)
> 
>                              at java.awt.Window.dispatchEventImpl(Unknown 
> Source)
> 
>                              at java.awt.Component.dispatchEvent(Unknown 
> Source)
> 
>                              at java.awt.EventQueue.dispatchEventImpl(Unknown 
> Source)
> 
>                              at java.awt.EventQueue.access$500(Unknown Source)
> 
>                              at java.awt.EventQueue$3.run(Unknown Source)
> 
>                              at java.awt.EventQueue$3.run(Unknown Source)
> 
>                              at 
> java.security.AccessController.doPrivileged(Native Method)
> 
>                              at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)
> 
>                              at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)
> 
>                              at java.awt.EventQueue$4.run(Unknown Source)
> 
>                              at java.awt.EventQueue$4.run(Unknown Source)
> 
>                              at 
> java.security.AccessController.doPrivileged(Native Method)
> 
>                              at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
>  Source)
> 
>                              at java.awt.EventQueue.dispatchEvent(Unknown 
> Source)
> 
>                              at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> 
>                              at 
> java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> 
>                              at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 
>                              at 
> java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 
>                              at 
> java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> 
>                              at java.awt.EventDispatchThread.run(Unknown 
> Source)
> 
>  
> 
> This is what I get with Copy schema from the failing layer
> 
>  
> 
> GEOMETRY      GEOMETRY
> 
> gml_id               STRING
> 
> mtk_id               LONG
> 
> gidm                   STRING
> 
> dimension        LONG
> 
> sijaintitarkkuus                           LONG
> 
> aineistolahde  LONG
> 
> alkupvm            STRING
> 
> kohderyhma   LONG
> 
> kohdeluokka   LONG
> 
> keskikorkeus  STRING
> 
> saannostelynalaraja                  STRING
> 
> saannostelynylaraja                  STRING
> 
> vedenpinnankorkeusluvutviittaus                   STRING
> 
> versio                 LONG
> 
> R_G_B               STRING
> 
>  
> 
> If I use Paste style to a new layer only “gml_id” gets created.
> 
>  
> 
> -Jukka Rahkonen.
> 
> 
> 
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> 
> 
> 
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to