Problem with Serbian Version

6 messages Options
Embed this post
Permalink
Dubravko Zupan

Problem with Serbian Version

Reply Threaded More More options
Print post
Permalink
Dear all

I have problem with  " š đ ž č ć " letters in a Serbian version of GvSIG.

Error in Code
java.lang.RuntimeException: Not a 'where' clause?
com.iver.cit.gvsig.FiltroExtension.fromSet(FiltroExtension.java:315)
com.iver.cit.gvsig.gui.filter.FilterDialog$3$1.run(FilterDialog.java:193)

com.iver.andami.PluginServices$RunnableDecorator$1.run(PluginServices.java:479)

java.awt.event.InvocationEvent.dispatch(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source) urce)


Any idea what I am doing wrong?

kind regards

_______________________________________________
Gvsig_internacional mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional

example.rar (15K) Download Attachment
Francisco José Peñarrubia-2

Re: Problem with Serbian Version

Reply Threaded More More options
Print post
Permalink
Hi.

I don't know if it may be a problem related to those chars. The lines
that are throwing the exception are:

        if (! this.filterExpressionFromWhereIsEmpty(expression)) {
            long[] sel = doSet(expression);

            if (sel == null) {
                throw new RuntimeException("Not a 'where' clause?");
            }

So, I guess the method doSet is returning a null. Inside doSet you can
see this:

            DataSource ds =
LayerFactory.getDataSourceFactory().executeSQL(expression,
                    DataSourceFactory.MANUAL_OPENING);

            return ds.getWhereFilter();

And it depends on DataSource type. So, we will need more information:

- Are you using shapes or Postgis, or....?
- Can we test the datasource (if shapes, send us a little example, if
PostGIS, can we connect to the database...)?

Best regards.

Fran.


Dubravko Zupan escribió:

> Dear all
>
>
>     I have problem with  " š đ ž č ć " letters in a Serbian version of
>     GvSIG.
>
>     Error in Code
>     java.lang.RuntimeException: Not a 'where' clause?
>     com.iver.cit.gvsig.FiltroExtension.fromSet(FiltroExtension.java:315)
>     com.iver.cit.gvsig.gui.filter.FilterDialog$3$1.run(FilterDialog.java:193)
>
>     com.iver.andami.PluginServices$RunnableDecorator$1.run(PluginServices.java:479)
>
>     java.awt.event.InvocationEvent.dispatch(Unknown Source)
>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
>     java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.run(Unknown Source) urce)
>
>
>
> Any idea what I am doing wrong?
>
> kind regards
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gvsig_internacional mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>  

_______________________________________________
Gvsig_internacional mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
Francisco José Peñarrubia-2

Re: Problem with Serbian Version

Reply Threaded More More options
Print post
Permalink
Sorry, I didn't see the attached file. I will test it. Could you send us
the where condition that you are using?.

Cheers.

Fran.

Francisco José Peñarrubia escribió:

> Hi.
>
> I don't know if it may be a problem related to those chars. The lines
> that are throwing the exception are:
>
>         if (! this.filterExpressionFromWhereIsEmpty(expression)) {
>             long[] sel = doSet(expression);
>
>             if (sel == null) {
>                 throw new RuntimeException("Not a 'where' clause?");
>             }
>
> So, I guess the method doSet is returning a null. Inside doSet you can
> see this:
>
>             DataSource ds =
> LayerFactory.getDataSourceFactory().executeSQL(expression,
>                     DataSourceFactory.MANUAL_OPENING);
>
>             return ds.getWhereFilter();
>
> And it depends on DataSource type. So, we will need more information:
>
> - Are you using shapes or Postgis, or....?
> - Can we test the datasource (if shapes, send us a little example, if
> PostGIS, can we connect to the database...)?
>
> Best regards.
>
> Fran.
>
>
> Dubravko Zupan escribió:
>  
>> Dear all
>>
>>
>>     I have problem with  " š đ ž č ć " letters in a Serbian version of
>>     GvSIG.
>>
>>     Error in Code
>>     java.lang.RuntimeException: Not a 'where' clause?
>>     com.iver.cit.gvsig.FiltroExtension.fromSet(FiltroExtension.java:315)
>>     com.iver.cit.gvsig.gui.filter.FilterDialog$3$1.run(FilterDialog.java:193)
>>
>>     com.iver.andami.PluginServices$RunnableDecorator$1.run(PluginServices.java:479)
>>
>>     java.awt.event.InvocationEvent.dispatch(Unknown Source)
>>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>>     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
>>     java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>     java.awt.EventDispatchThread.run(Unknown Source) urce)
>>
>>
>>
>> Any idea what I am doing wrong?
>>
>> kind regards
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Gvsig_internacional mailing list
>> [hidden email]
>> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>>  
>>    
>
> _______________________________________________
> Gvsig_internacional mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>  

_______________________________________________
Gvsig_internacional mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
Francisco José Peñarrubia-2

Re: Problem with Serbian Version

Reply Threaded More More options
Print post
Permalink
In reply to this post by Dubravko Zupan
Hi.

Sorry, bad news. It seems our SQLEngine doesn't support your CharSet,
and these symbols doesn't work in filter operations.

We will include this in "known issues" for gvSIG 1.9, and I hope it can
be solved in 2.0 :-(

Our apologies for the incoveniences... :-(

Fran.

Dubravko Zupan escribió:

> Dear all
>
>
>     I have problem with  " š đ ž č ć " letters in a Serbian version of
>     GvSIG.
>
>     Error in Code
>     java.lang.RuntimeException: Not a 'where' clause?
>     com.iver.cit.gvsig.FiltroExtension.fromSet(FiltroExtension.java:315)
>     com.iver.cit.gvsig.gui.filter.FilterDialog$3$1.run(FilterDialog.java:193)
>
>     com.iver.andami.PluginServices$RunnableDecorator$1.run(PluginServices.java:479)
>
>     java.awt.event.InvocationEvent.dispatch(Unknown Source)
>     java.awt.EventQueue.dispatchEvent(Unknown Source)
>     com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)
>     java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     java.awt.EventDispatchThread.run(Unknown Source) urce)
>
>
>
> Any idea what I am doing wrong?
>
> kind regards
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gvsig_internacional mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>  

_______________________________________________
Gvsig_internacional mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
Txana

Problem with intersection

Reply Threaded More More options
Print post
Permalink
In reply to this post by Francisco José Peñarrubia-2
Some javascript/style in this post has been disabled (why?)
Hello,

Thank you for your fast reply, but I am not able to send you the file, it is confidencial. But I know a way ti deviate this problem.

I have three layers:

- the limits of my country (Portugal)

- occupation polygons of where are the fields that the company owns

- polygons with climate characterization

I need to split the country in three parts (for example) and do the intersection of the occupation layer with the climate characterization layer. If I do this intersection with the hole country, it takes hours to process that amount of information but i don't know how to split the country in three and process that information separately. Important also is this seperation to be done without taking the chance of spliting any polygon.

If you could help me with nthis matter I would appreciate it very much, if not, thank you the same:)





Windows Live: Keep your friends up to date with what you do online.
_______________________________________________
Gvsig_internacional mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
virginia morales segura

Re: Problem with intersection

Reply Threaded More More options
Print post
Permalink

Hi Alexandra,

forgive my delay in replaying. I read your mail carefully for understand
your trouble. You say that you have to split in three the country
withouth cut any polygon, you can do it making a selection of a few
polygons ( aproximately the third part) with the selection by polygon
tool and intersect only those polygons. In the end you will have your
info in separated shp that you can merge again in only one. In this way
you can reduce the time of processing.

I hope it helps you, best regards.




Alexandra Luísa Ribeiro Dias escribió:

> Hello,
>
> Thank you for your fast reply, but I am not able to send you the file,
> it is confidencial. But I know a way ti deviate this problem.
>
> I have three layers:
>
> - the limits of my country (Portugal)
>
> - occupation polygons of where are the fields that the company owns
>
> - polygons with climate characterization
>
> I need to split the country in three parts (for example) and do the
> intersection of the occupation layer with the climate characterization
> layer. If I do this intersection with the hole country, it takes hours
> to process that amount of information but i don't know how to split
> the country in three and process that information separately.
> Important also is this seperation to be done without taking the chance
> of spliting any polygon.
>
> If you could help me with nthis matter I would appreciate it very
> much, if not, thank you the same:)
>
>
>
>
> ------------------------------------------------------------------------
> Windows Live: Keep your friends up to date with what you do online.
> <http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gvsig_internacional mailing list
> [hidden email]
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>  

_______________________________________________
Gvsig_internacional mailing list
[hidden email]
http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional