Re: [JPP-Devel] Oracle Spatial Datastore WAS: Database Query Plugin - Oracle Spatial

2015-12-04 Thread Rahkonen Jukka (MML)
Something is probably missing. I have OJ r.4563 Plus and ojdbc6.jar in lib\ext. 
I also copied gt2-oracle-spatial-2.3.2.jar there to be sure that it is found. 
Still Oracle is not on the selection list for making a new database connection.

-Jukka Rahkonen-

edgar soldin wrote:

Luis and all,

i just committed the following

  * added Nicolas Ribot's Oracle Spatial Datastore Extension to CORE
activates in PLUS as it needs DBQuery's *gt2-oracle-spatial-2.x.jar*
also *ojdbc6.jar* must be downloaded and installed manually because
of licensing restrictions

as i don't have an oracle spatial db server at hand, can someone please try 
how/if that works? a short step-by-step list

1. download latest PLUS snapshot

http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/OpenJUMP-Portable-20151203-r4559-PLUS.zip
2. extract
3. download ojdbc6.jar
http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html
4. place in OJ_FOLDER/lib/ext
5. start OJ
6. open File->Open, select 'Data Store Layer' on the left, click on the blue db 
icon on the top right of the Open dialog to open the connection manager 7. from 
here it should be self explanatory and similar how Postgis is handled

thanks ..ede

On 03.12.2015 12:16, edgar.sol...@web.de wrote:
> Nicolas released a plugin  early this year. Maybe that fit's your purpose? 
>  
> http://jump-pilot-devel-openjump-develop-and-use.1063199.n5.nabble.com
> /JPP-Devel-Oracle-Spatial-DataStore-plugin-td5711015.html
> 
> just send it again as the previous mail was miraculously considered SPAM.
> 
> ..ede
> 
> On 02.12.2015 18:12, Rahkonen Jukka (MML) wrote:
>> Hi,
>>
>>  
>>
>> The DB Query plugin is perhaps the most robust and fastest client for Oracle 
>> Spatial but it is definitely read only and knowing the current developer 
>> team I would say that read/write Oracle driver won't come. For sure it will 
>> not be based on DB Query because it is skipping all the metadata stuff in 
>> Oracle. I would have a look at Kosmo GIS http://opengis.es/ instead which is 
>> much like OpenJUMP and which can also edit Oracle Spatial data.
>>
>>  
>>
>> -Jukka Rahkonen-
>>
>>  
>>
>>  
>>
>> Luis Paolini wrote:
>>
>>  
>>
>> Hi folks,
>>
>>  
>>
>>  I'd like to know if OpenJump, using Database 
>> Query Plugin, is able to edit geometries stored into Oracle Spatial tables.
>>
>>  
>>
>> TIA,
>>
>> Luis
>>
>>
>>
>> -
>> - Go from Idea to Many App Stores Faster with Intel(R) XDK 
>> Give your users amazing mobile app experiences with Intel(R) XDK.
>> Use one codebase in this all-in-one HTML5 development environment.
>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
>> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>>
>>
>>
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
> 
> --
>  Go from Idea to Many App Stores Faster with Intel(R) XDK Give 
> your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

--
Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users 
amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Database Query Plugin - Oracle Spatial

2015-12-04 Thread Rahkonen Jukka (MML)
Hi Nicolas and Ede,

There may be something in Oracle Datastore plugin that does not work with new 
Oracle 12 c version.  The error I get is

"ORA-28040: No matching authentication protocol"

I noticed that with the snapshot versions r4559 and above. They do read data 
from Oracle 11g.

The error with recent snapshots affects also DB Query plugin. For example with 
version r4555 (2015-11-22) DB Query can read Oracle 12c. I suppose that there 
is some outdated component in the additions that Ede made which makes problem 
with 12c. If we can’t find and correct this issue we should consider reverting 
that changeset.

I have used same ojdbc6.jar and gt-oracle-spatial-2.3.2.jar in all tests.

-Jukka Rahkonen-


Nicolas Ribot wrote:

Hi,

yes, I made some tests (packed into a plugin) to add more spatial databases 
support in OJ, based on DBQuery plugin that can already access Sqlite and 
Oracle Spatial through direct SQL commands.

The plugin is read-only and allows to load Sqlite, MariaDB, OracleSpatial 
layers in the same Data Store Layer wizard used for PostGIS.

AFAIU from Michael, adding a generic write support would not trivial.

Nicolas

On 3 December 2015 at 12:16, mailto:edgar.sol...@web.de>> 
wrote:
Nicolas released a plugin  early this year. Maybe that fit's your purpose?
 
http://jump-pilot-devel-openjump-develop-and-use.1063199.n5.nabble.com/JPP-Devel-Oracle-Spatial-DataStore-plugin-td5711015.html

just send it again as the previous mail was miraculously considered SPAM.

..ede

On 02.12.2015 18:12, Rahkonen Jukka (MML) wrote:
> Hi,
>
>
>
> The DB Query plugin is perhaps the most robust and fastest client for Oracle 
> Spatial but it is definitely read only and knowing the current developer team 
> I would say that read/write Oracle driver won’t come. For sure it will not be 
> based on DB Query because it is skipping all the metadata stuff in Oracle. I 
> would have a look at Kosmo GIS http://opengis.es/ instead which is much like 
> OpenJUMP and which can also edit Oracle Spatial data.
>
>
>
> -Jukka Rahkonen-
>
>
>
>
>
> Luis Paolini wrote:
>
>
>
> Hi folks,
>
>
>
>  I’d like to know if OpenJump, using Database 
> Query Plugin, is able to edit geometries stored into Oracle Spatial tables.
>
>
>
> TIA,
>
> Luis
>
>
>
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>
>
>
> ___
> 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
>

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
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

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Database Query Plugin - Oracle Spatial

2015-12-04 Thread Rahkonen Jukka (MML)
Hi Nicolas,

I clarify that your DataStore does read Oracle 11g. The issue is that before 
Ede was adding something to the soup the DB Query plugin was able to read also 
Oracle 12c (with ojdbc6.jar) but not afterwards. It feels to me that something 
in the package is not ready for 12c.

I have good opportunity to test during a few next weeks before we have switched 
everything into 12c.

-Jukka



Nicolas Ribot wrote:

Hi Jukka,

Yes it should read Oracle 11g.

I think I have some stuff to commit from this plugin and also from DataStore 
Panel.

I'm on it this afternoon and will keep you posted.

Nicolas

On 4 December 2015 at 14:16, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi Nicolas and Ede,

There may be something in Oracle Datastore plugin that does not work with new 
Oracle 12 c version.  The error I get is

"ORA-28040: No matching authentication protocol"

I noticed that with the snapshot versions r4559 and above. They do read data 
from Oracle 11g.

The error with recent snapshots affects also DB Query plugin. For example with 
version r4555 (2015-11-22) DB Query can read Oracle 12c. I suppose that there 
is some outdated component in the additions that Ede made which makes problem 
with 12c. If we can’t find and correct this issue we should consider reverting 
that changeset.

I have used same ojdbc6.jar and gt-oracle-spatial-2.3.2.jar in all tests.

-Jukka Rahkonen-


Nicolas Ribot wrote:

Hi,

yes, I made some tests (packed into a plugin) to add more spatial databases 
support in OJ, based on DBQuery plugin that can already access Sqlite and 
Oracle Spatial through direct SQL commands.

The plugin is read-only and allows to load Sqlite, MariaDB, OracleSpatial 
layers in the same Data Store Layer wizard used for PostGIS.

AFAIU from Michael, adding a generic write support would not trivial.

Nicolas

On 3 December 2015 at 12:16, mailto:edgar.sol...@web.de>> 
wrote:
Nicolas released a plugin  early this year. Maybe that fit's your purpose?
 
http://jump-pilot-devel-openjump-develop-and-use.1063199.n5.nabble.com/JPP-Devel-Oracle-Spatial-DataStore-plugin-td5711015.html

just send it again as the previous mail was miraculously considered SPAM.

..ede

On 02.12.2015 18:12, Rahkonen Jukka (MML) wrote:
> Hi,
>
>
>
> The DB Query plugin is perhaps the most robust and fastest client for Oracle 
> Spatial but it is definitely read only and knowing the current developer team 
> I would say that read/write Oracle driver won’t come. For sure it will not be 
> based on DB Query because it is skipping all the metadata stuff in Oracle. I 
> would have a look at Kosmo GIS http://opengis.es/ instead which is much like 
> OpenJUMP and which can also edit Oracle Spatial data.
>
>
>
> -Jukka Rahkonen-
>
>
>
>
>
> Luis Paolini wrote:
>
>
>
> Hi folks,
>
>
>
>  I’d like to know if OpenJump, using Database 
> Query Plugin, is able to edit geometries stored into Oracle Spatial tables.
>
>
>
> TIA,
>
> Luis
>
>
>
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>
>
>
> ___
> 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
>

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
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


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&am

Re: [JPP-Devel] Database Query Plugin - Oracle Spatial

2015-12-04 Thread Rahkonen Jukka (MML)
Hi,

I switched to another computer, couldn't reproduce the problem with Oracle 12c 
and finally found out why. Very elementary error indeed.

I followed this part of instructions:
> 3. download ojdbc6.jar
> http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html
> 4. place in OJ_FOLDER/lib/ext

However, I had already copied ojdbc14.jar driver into OJ_FOLDER/lib/ and it was 
found first.

Sorry for the noise. It is now verified that ojdbc6.jar is high enough for 
Oracle12c while ojdbc14 is not. It may have something to do with jre version as 
well, ojdbc14 was make for jdk 1.4. However, I used jre 1.7 in all my trials.

-Jukka-



edgar soldin wrote:

On 04.12.2015 14:16, Rahkonen Jukka (MML) wrote:
> The error with recent snapshots affects also DB Query plugin. For example 
> with version r4555 (2015-11-22) DB Query can read Oracle 12c. I suppose that 
> there is some outdated component in the additions that Ede made which makes 
> problem with 12c. If we can't find and correct this issue we should consider 
> reverting that changeset.

Jukka,

could you be a bit more specific about what works when/how and what error 
messages pop up or symptoms are there? before 4559 and after?

all i did was merely adding the new data store. that "should" have no impact on 
the existing DBQuery functionality.

do you test with a fresh r4559 only ojdbc6.jar added? 

when you want to access oracle 12c wouldn't you need  
http://www.oracle.com/technetwork/database/features/jdbc/jdbc-drivers-12c-download-1958347.html
instead of the one from 11g where i sent the link to?

..ede

--
Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users 
amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] How to debug Oracle data store?

2015-12-04 Thread Rahkonen Jukka (MML)
Hi,

I am getting ORA-01747 error when the Oracle data store is probably trying to 
read the list of spatial tables. I would like to know what happens and for that 
I should see the SQL what OpenJUMP is sending. How could I get that into log? I 
believe that we have some special issues because of the managed environment 
that we have which can make some metadata queries to fail. We have also huge 
amount of tables which I know to make things very slow and checking simple 
metadata for each table can take 5 minutes or more. If I could see the SQL I 
might be able to suggest some improvements.

Fortunately we have the DB Query plugin that does not care about metadata at 
all. It suggest to keep it also in the future because of its robustness.

-Jukka-
--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Database Query Plugin - Oracle Spatial

2015-12-04 Thread Rahkonen Jukka (MML)
> Maybe a case insensitive name like 'geom' would be better ?

I would say that in PostgreSQL it could be forced to lower case. Force it to 
upper case if it will be possible to write into Oracle someday :)

-Jukka-


edgar soldin wrote:

On 04.12.2015 16:16, Nicolas Ribot wrote:
> ede: yes, I'm cleaning-up some uncommitted code, and will commit in OJ svn.

nice
your classes are now located under
 src/com/vividsolutions/jump/datastore
and
 src/com/vividsolutions/jump/datastore/oracle
 
> BTW, I noticed that when saving a layer to postgis, geometric column name is 
> "GEOMETRY" (Upper case forced).
> Maybe a case insensitive name like 'geom' would be better ?

that's a question for the GIS database bufs out there (Mike, Jukka?). i am not 
doing anything GIS related besides part time maintaining OJ ;)..

happy WE.. ede

--
Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users 
amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] New MakeValid plugin

2015-12-06 Thread Rahkonen Jukka (MML)
Hi,


I would say that let's make a release now and show that the project is still 
alive. New features should not break old stable ones . The dowload statistics 
show that most users prefer to use stable releases which makes them miss all 
that we have implemented during the last year and there are many fine 
improvements in the changelog since 1.8.0 release

http://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/ChangeLog


-Jukka Rahkonen-


Giuseppe Aruta  wrote:

Thanks Michaël for your efforts!
I think we should wait a couple of months extra before new OJ stable real. - 
before we test those new improvements
Peppe

2015-12-06 0:14 GMT+01:00 Michaël Michaud 
mailto:m.michael.mich...@orange.fr>>:
Hi jumpers,

Just added a new Plugin called MakeValid in Tools > Analysis
It repairs invalid geometries.

Michaël

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] CutFeatureTool

2015-12-06 Thread Rahkonen Jukka (MML)
Hi,

Some comments:

- Works well with polygon containing holes
- Works with multipolygons and multilinestrings
- Seems to explode multigeometries which may be a surprise for the user. On the 
other hand it would be very hard to define what else to do it multigeometries 
have many parts and linestring splits only some of them so I think that 
"explode and split" is OK.
- Tool should check that no point/multipoint geometries are selected. Now I get 
"Layer must be editable" error with such misuse and the selected points are 
deleted. Undo fortunately works.

-Jukka Rahkonen-

Michaël Michaud wrote:

Hi Peppe, Jukka,

I just improved CutFeatureTool recently added by Peppe,

- simplified split routines
- can now split a feature in more than two parts
- more robust (should remove artefacts noticed by Jukka : can you confirm ?)
- more transactional : undo will now un-split all features splitted durnig an 
operation

There is still a side effect which is difficult to avoid :
- if a linestring contains a desired self-intersection (non simple-linestring), 
splitting the linestring will node the self-intersection (splitting uses union 
op which is noding all input features).

Michaël

Le 04/12/2015 10:21, Rahkonen Jukka (MML) a écrit :
> Hi,
>
> The tool has good features:
> - can split many polygons at the same time
> - splits also linestrings
>
> Something to study:
> - Splitting a polygon with hole through the hole creates odd geometries. The 
> existing Split polygon with linestring toold does good job with those.
> - Splitting multipolygons can create odd geometries.
>
> -Jukka Rahkonen-
>
>
> --
>  Go from Idea to Many App Stores Faster with Intel(R) XDK Give 
> your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


--
Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users 
amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] CutFeatureTool

2015-12-07 Thread Rahkonen Jukka (MML)
Seems to work right with points and multipoints. It was OK already in r4578 my 
Michael. I suppose that the same fix corrected also another issue of previous 
versions: If polygons or lines were selected but the split line did not 
intersect with any the selected features were deleted.

Found one more small issue: If polygon is selected and the splitting line 
crosses some of the rings but not the whole  polygon, the tool edits the source 
polygon by adding vertices into the locations of intersections. Perhaps the 
tool should check in some phase the dimensions of the intersection that is 
computed for polygons and revert noding if intersection is not an area?

-Jukka-

Giuseppe Aruta wrote:

Hi Jukka,
see OJ 4578. I added a small code to prevent deleting points/multipoints
Peppe

2015-12-06 23:25 GMT+01:00 Michaël Michaud 
mailto:m.michael.mich...@orange.fr>>:
Hi,

Thanks for the tests Jukka.
Exploding selected multi-geometries even if they are not split seems
reasonnable.
Problem with points / multi-points should be resolved (they should be
unmodified)
I found another problem : the tool processed only selected features of
the first selected layer in the layerNamePanel.
It now processes all selected features, but the undo tool undo features
from one layer at a time.

Michaël

Le 06/12/2015 22:38, Rahkonen Jukka (MML) a écrit :
> Hi,
>
> Some comments:
>
> - Works well with polygon containing holes
> - Works with multipolygons and multilinestrings
> - Seems to explode multigeometries which may be a surprise for the user. On 
> the other hand it would be very hard to define what else to do it 
> multigeometries have many parts and linestring splits only some of them so I 
> think that "explode and split" is OK.
> - Tool should check that no point/multipoint geometries are selected. Now I 
> get "Layer must be editable" error with such misuse and the selected points 
> are deleted. Undo fortunately works.
>
> -Jukka Rahkonen-
>
> Michaël Michaud wrote:
>
> Hi Peppe, Jukka,
>
> I just improved CutFeatureTool recently added by Peppe,
>
> - simplified split routines
> - can now split a feature in more than two parts
> - more robust (should remove artefacts noticed by Jukka : can you confirm ?)
> - more transactional : undo will now un-split all features splitted durnig an 
> operation
>
> There is still a side effect which is difficult to avoid :
> - if a linestring contains a desired self-intersection (non 
> simple-linestring), splitting the linestring will node the self-intersection 
> (splitting uses union op which is noding all input features).
>
> Michaël
>
> Le 04/12/2015 10:21, Rahkonen Jukka (MML) a écrit :
>> Hi,
>>
>> The tool has good features:
>> - can split many polygons at the same time
>> - splits also linestrings
>>
>> Something to study:
>> - Splitting a polygon with hole through the hole creates odd geometries. The 
>> existing Split polygon with linestring toold does good job with those.
>> - Splitting multipolygons can create odd geometries.
>>
>> -Jukka Rahkonen-
>>
>>
>> --
>>  Go from Idea to Many App Stores Faster with Intel(R) XDK Give
>> your users amazing mobile app experiences with Intel(R) XDK.
>> Use one codebase in this all-in-one HTML5 development environment.
>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
>> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>> ___
>> 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
>>
>
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users 
> amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> ___
> 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
>
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in thi

Re: [JPP-Devel] How to debug Oracle data store?

2015-12-07 Thread Rahkonen Jukka (MML)
Hi Nicolas,

Thanks for improving logging. I am testing with r4578 and I don’t get ORA 
errors. However, it will be very impractical or impossible to use our databases 
like the datastore is trying to do it now.


1.   The first query is “select distinct owner, table_name from 
ALL_SDO_GEOM_METADATA” and that’s OK.

2.   Second query to be executed for each row that is returned by the first 
query is “select column_name, srid from ALL_SDO_GEOM_METADATA WHERE owner = 
'' AND table_name =’< table_name>' and that’s OK as well.

3.   Third query, to be executed for each table_name that is returned by 
query 1. is “select distinct t..sdo_gtype from  t” and 
that breaks the whole system for us.

We have many large tables with millions of rows and “select distinct 
geometry.sdo_gtype” takes several minutes per table. What is much worse is that 
we have views with complicated relations between source tables and “select 
” will take hours.  Those views do not suit at all for 
simply adding them to map but user must always make a query with well-defined 
filters. However, we must register the views into SDO_GEOM_METADATA and there 
is no way for preventing them to appear on the table list of OpenJUMP Oracle 
datastore.

I am not sure if it is really necessary for OpenJUMP users to know the geometry 
type of the layer because OpenJUMP can handle all geometry types including 
mixed geometries on the same layer. As far as I know there are exactly two ways 
to check the GTYPE of an Oracle table or layer:

1)  To use the SELECT DISTINCT sdo.gtype method. It gives definitely a 
correct answer but unfortunately the query may take too long time if tables are 
big, views are complicated, or there are lots of tables and views.

2)  If spatial index is created with layer_gtype parameter then the 
corresponding table can hold only that sort of geometries

CREATE INDEX SPATIAL_IDX ON TABLE(GEOM)

INDEXTYPE IS MDSYS.SPATIAL_INDEX

PARAMETERS ('layer_gtype=POINT');

In that case the gtype of the layer can be queried from the metadata tables. It 
is a bit complicated, though, but there is code in GeoTools sources that can be 
used as an example 
https://github.com/geotools/geotools/blob/master/modules/plugin/jdbc/jdbc-oracle/src/main/java/org/geotools/data/oracle/OracleDialect.java



This kind of query works for me with SQL Plus:

SELECT META.SDO_LAYER_GTYPE

FROM ALL_INDEXES INFO

INNER JOIN MDSYS.ALL_SDO_INDEX_METADATA META

ON INFO.INDEX_NAME = META.SDO_INDEX_NAME

WHERE INFO.TABLE_NAME = ‘TEST_TABLE'

AND REPLACE(meta.sdo_column_name, '"') = 'GEOM';



I had to edit the GeoTools code in the REPLACE but perhaps it is only because " 
must be escaped for Java as \" .  The name of the geometry_column is saved with 
double quotes into SDO_INDEX_METADATA "geom_column" and that makes the need for 
REPLACE.



I have two alternative suggestions:

1)  Don’t care about the geometry type at all when building the list of 
spatial layers and views for Oracle but simply label them all as generic 
GEOMETRY.

2)  If you want to try to find the exact geometry type, re-use the GeoTools 
query even it has its limits: It can only work if layer has a spatial index 
which is created with layer_gtype parameter which is not the default. For 
registered views it will fail. Also, I have learned that is DB administrator 
grants select rights for tables and views, the rights for making queries from 
SDO_INDEX_METADATA do not follow automatically.

I have not been testing yet if the Oracle datastore can handle correctly tables 
with two or more geometry columns. At least it starts right because query 2 
will get a row for each geometry column

-Jukka Rahkonen-


Lähettäjä: Nicolas Ribot [mailto:nicolas.ri...@gmail.com]
Lähetetty: 4. joulukuuta 2015 23:36
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] How to debug Oracle data store?

I have committed my local modifications for Oracle Support.

I tested the release and was able to load spatial tables (if properly 
registered to Oracle Spatial Metadata tables) from Oracle 11g and 12c.

Jukka, could you post the errors you see when using Oracle DataStore ?

Nicolas

On 4 December 2015 at 21:41, Nicolas Ribot 
mailto:nicolas.ri...@gmail.com>> wrote:
I had commented out Oracle dependencies in the pom.xml and my Netbeans IDE did 
not like that: the running classpath (running OJ directly from NB) was not set 
correctly, and ojdbc6.jar was missing at runtime...

Thanks for introspection hint.

With the current code, at runtime, if no Oracle driver is found, the 
OracleDatastore is disabled.

Jukka:
I intended to support Oracle Spatial (and other spatial databases like 
Spatialite, MariaDB, SQL Server) through OGC SF SQL specs. ie, using spatial 
metadata tables/views (geometryColumns for instance).
Spatial layers have to be properly registered into the metadata table to be 
seen by the plugin.

As you said, DB Query is really amazing to execute direct SQL against several 

Re: [JPP-Devel] CutFeatureTool

2015-12-07 Thread Rahkonen Jukka (MML)
Hi,

Is it intentional that r4582 does not cut multipolygons and multilinestrings at 
all, not even if they have only one part?

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 7. joulukuuta 2015 23:45
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] CutFeatureTool

Hi Jukka,

Thanks, here are some more improvements :
- polygon/multipolygon case : preserve original geometry if number of 
geometries after cutting is still 1
- also GeometryCollection was throwing an exception. Now, it is still not cut, 
but it just display a (yellow) warning and let the process go on.

Michaël
Le 07/12/2015 09:08, Rahkonen Jukka (MML) a écrit :
Seems to work right with points and multipoints. It was OK already in r4578 my 
Michael. I suppose that the same fix corrected also another issue of previous 
versions: If polygons or lines were selected but the split line did not 
intersect with any the selected features were deleted.

Found one more small issue: If polygon is selected and the splitting line 
crosses some of the rings but not the whole  polygon, the tool edits the source 
polygon by adding vertices into the locations of intersections. Perhaps the 
tool should check in some phase the dimensions of the intersection that is 
computed for polygons and revert noding if intersection is not an area?

-Jukka-

Giuseppe Aruta wrote:

Hi Jukka,
see OJ 4578. I added a small code to prevent deleting points/multipoints
Peppe

2015-12-06 23:25 GMT+01:00 Michaël Michaud 
mailto:m.michael.mich...@orange.fr>>:
Hi,

Thanks for the tests Jukka.
Exploding selected multi-geometries even if they are not split seems
reasonnable.
Problem with points / multi-points should be resolved (they should be
unmodified)
I found another problem : the tool processed only selected features of
the first selected layer in the layerNamePanel.
It now processes all selected features, but the undo tool undo features
from one layer at a time.

Michaël

Le 06/12/2015 22:38, Rahkonen Jukka (MML) a écrit :
> Hi,
>
> Some comments:
>
> - Works well with polygon containing holes
> - Works with multipolygons and multilinestrings
> - Seems to explode multigeometries which may be a surprise for the user. On 
> the other hand it would be very hard to define what else to do it 
> multigeometries have many parts and linestring splits only some of them so I 
> think that "explode and split" is OK.
> - Tool should check that no point/multipoint geometries are selected. Now I 
> get "Layer must be editable" error with such misuse and the selected points 
> are deleted. Undo fortunately works.
>
> -Jukka Rahkonen-
>
> Michaël Michaud wrote:
>
> Hi Peppe, Jukka,
>
> I just improved CutFeatureTool recently added by Peppe,
>
> - simplified split routines
> - can now split a feature in more than two parts
> - more robust (should remove artefacts noticed by Jukka : can you confirm ?)
> - more transactional : undo will now un-split all features splitted durnig an 
> operation
>
> There is still a side effect which is difficult to avoid :
> - if a linestring contains a desired self-intersection (non 
> simple-linestring), splitting the linestring will node the self-intersection 
> (splitting uses union op which is noding all input features).
>
> Michaël
>
> Le 04/12/2015 10:21, Rahkonen Jukka (MML) a écrit :
>> Hi,
>>
>> The tool has good features:
>> - can split many polygons at the same time
>> - splits also linestrings
>>
>> Something to study:
>> - Splitting a polygon with hole through the hole creates odd geometries. The 
>> existing Split polygon with linestring toold does good job with those.
>> - Splitting multipolygons can create odd geometries.
>>
>> -Jukka Rahkonen-
>>
>>
>> --
>>  Go from Idea to Many App Stores Faster with Intel(R) XDK Give
>> your users amazing mobile app experiences with Intel(R) XDK.
>> Use one codebase in this all-in-one HTML5 development environment.
>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
>> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>> ___
>> 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
>>
>
> --
> Go from Idea to Many App Stores Faster with Intel(R) XDK Give your users 
> amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 d

Re: [JPP-Devel] CutFeatureTool

2015-12-08 Thread Rahkonen Jukka (MML)
run(Unknown Source)


-Jukka-

Michaël Michaud wrote:

Hi,

Absolutely not !
(it is always painful to exclude pure GeometryCollections because
MultiPolygon or MultiLineString and MultiPoint are "instanceof" 
GeometryCollection
altough their class name is not GeometryCollection).

Thanks for your watchfullness

Michaël
Le 07/12/2015 23:19, Rahkonen Jukka (MML) a écrit :
Hi,

Is it intentional that r4582 does not cut multipolygons and multilinestrings at 
all, not even if they have only one part?

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 7. joulukuuta 2015 23:45
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] CutFeatureTool

Hi Jukka,

Thanks, here are some more improvements :
- polygon/multipolygon case : preserve original geometry if number of 
geometries after cutting is still 1
- also GeometryCollection was throwing an exception. Now, it is still not cut, 
but it just display a (yellow) warning and let the process go on.

Michaël
Le 07/12/2015 09:08, Rahkonen Jukka (MML) a écrit :
Seems to work right with points and multipoints. It was OK already in r4578 my 
Michael. I suppose that the same fix corrected also another issue of previous 
versions: If polygons or lines were selected but the split line did not 
intersect with any the selected features were deleted.

Found one more small issue: If polygon is selected and the splitting line 
crosses some of the rings but not the whole  polygon, the tool edits the source 
polygon by adding vertices into the locations of intersections. Perhaps the 
tool should check in some phase the dimensions of the intersection that is 
computed for polygons and revert noding if intersection is not an area?

-Jukka-

Giuseppe Aruta wrote:

Hi Jukka,
see OJ 4578. I added a small code to prevent deleting points/multipoints
Peppe

2015-12-06 23:25 GMT+01:00 Michaël Michaud 
mailto:m.michael.mich...@orange.fr>>:
Hi,

Thanks for the tests Jukka.
Exploding selected multi-geometries even if they are not split seems
reasonnable.
Problem with points / multi-points should be resolved (they should be
unmodified)
I found another problem : the tool processed only selected features of
the first selected layer in the layerNamePanel.
It now processes all selected features, but the undo tool undo features
from one layer at a time.

Michaël

Le 06/12/2015 22:38, Rahkonen Jukka (MML) a écrit :
> Hi,
>
> Some comments:
>
> - Works well with polygon containing holes
> - Works with multipolygons and multilinestrings
> - Seems to explode multigeometries which may be a surprise for the user. On 
> the other hand it would be very hard to define what else to do it 
> multigeometries have many parts and linestring splits only some of them so I 
> think that "explode and split" is OK.
> - Tool should check that no point/multipoint geometries are selected. Now I 
> get "Layer must be editable" error with such misuse and the selected points 
> are deleted. Undo fortunately works.
>
> -Jukka Rahkonen-
>
> Michaël Michaud wrote:
>
> Hi Peppe, Jukka,
>
> I just improved CutFeatureTool recently added by Peppe,
>
> - simplified split routines
> - can now split a feature in more than two parts
> - more robust (should remove artefacts noticed by Jukka : can you confirm ?)
> - more transactional : undo will now un-split all features splitted durnig an 
> operation
>
> There is still a side effect which is difficult to avoid :
> - if a linestring contains a desired self-intersection (non 
> simple-linestring), splitting the linestring will node the self-intersection 
> (splitting uses union op which is noding all input features).
>
> Michaël
>
> Le 04/12/2015 10:21, Rahkonen Jukka (MML) a écrit :
>> Hi,
>>
>> The tool has good features:
>> - can split many polygons at the same time
>> - splits also linestrings
>>
>> Something to study:
>> - Splitting a polygon with hole through the hole creates odd geometries. The 
>> existing Split polygon with linestring toold does good job with those.
>> - Splitting multipolygons can create odd geometries.
>>
>> -Jukka Rahkonen-
>>
>>
>> --
>>  Go from Idea to Many App Stores Faster with Intel(R) XDK Give
>> your users amazing mobile app experiences with Intel(R) XDK.
>> Use one codebase in this all-in-one HTML5 development environment.
>> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
>> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sou

Re: [JPP-Devel] Language files

2015-12-09 Thread Rahkonen Jukka (MML)
Hi,

Do I need to do something special for activating the RasterStylePlugIn? I can’t 
find it from the menus or perhaps I just do not know what to search. Is it for 
Sextante rasters or for some other images?

-Jukka Rahkonen-

Giuseppe Aruta wrote:

Hi all,
I saw that Jukka and Michael upgraded Finnic and French jump.properties file. I 
already did for Italian and Spanish ones.We still miss the final upgrade for 
German language file (as I can see there are more that 250 not translated codes 
on the file). Can Ede or Stefan  work around?
There is still RasterStylePlugIn, added by Alberto, that needs to be partially 
translated.Originally the language files were not integrated into 
jump.properies file but they resides on the folder 
org.openjump.rasterimage.styler.resources (see file Bundle.properties). I 
already translated Italian and Spanish. I ask you to give a look and a little 
time to translate them (73 entries).

Which is the candidate number for next OJ real.? I suggest for 1.9 as there are 
some new important features (apart from many intersting new plugins), like new 
framework for  on Sextante raster. And Style/zoom to maximun extend plugins now 
recognize also other layerables (WMS/Sextante Raster Images), without loosing 
compatibility.
I invite you to give a look at the roadmap page and add your comments. 
http://ojwiki.soldin.de/index.php?title=OpenJUMP_Roadmap
Best regards
Peppe
--
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Language files

2015-12-09 Thread Rahkonen Jukka (MML)
Thanks Peppe, I found it now.

For Sextante image layers there are now these tools:

-  Raster – Raster color editor (very basic)

-  Layer context – Change styles – Raster color editor tab (more 
features)

-  Layer context – Raster styles (even more features)

Are they so different that we need all those in the future?

-Jukka Rahkonen-

Giuseppe Aruta wrote:

@Jukka,
This plugin is related to monoband sextante raster image layers (tif, flt or 
asc).
The plugin is visible on layer context menu (it is the last one)
Peppe

2015-12-09 11:54 GMT+01:00 mailto:edgar.sol...@web.de>>:
On 09.12.2015 11:24, Giuseppe Aruta wrote:
> Hi all,
> I saw that Jukka and Michael upgraded Finnic and French jump.properties file. 
> I already did for Italian and Spanish ones.We still miss the final upgrade 
> for German language file (as I can see there are more that 250 not translated 
> codes on the file). Can Ede or Stefan  work around?

i often struggle to grasp the meaning or what exactly a plugin is doing 
GIS-wise in english already, so Stefan - would you?

> There is still RasterStylePlugIn, added by Alberto, that needs to be 
> partially translated.Originally the language files were not integrated into 
> jump.properies file but they resides on the folder 
> org.openjump.rasterimage.styler.resources (see file Bundle.properties). I 
> already translated Italian and Spanish. I ask you to give a look and a little 
> time to translate them (73 entries).

we should integrate them into our language files or at least move them to a 
subfolder of src/language/

> Which is the candidate number for next OJ real.? I suggest for 1.9 as there 
> are some new important features (apart from many intersting new plugins), 
> like new framework for  on Sextante raster. And Style/zoom to maximun extend 
> plugins now recognize also other layerables (WMS/Sextante Raster Images), 
> without loosing compatibility.

we currently sport the version scheme major.minor.maintenance

as far as i am concerned we raise the minor number until we hit a major 
backward incompatibility or add something really impressive. like the plugin 
manager or online updates or such.


..ede

--
___
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


Re: [JPP-Devel] Add some JTS functions before next release?

2015-12-09 Thread Rahkonen Jukka (MML)
Hi Michaël,

I have tried most functions which are available in JTS Testbuilder but it feels 
that there are not many that could be just added into OpenJUMP without making 
new user interface elements for using them. These three might be possible to 
add without new UI but I am  not sure how useful they are for the users


-  TranslateCentreToOrigin

-  TranslateToOrigin

-  OctagonalEnvelope

These functions feel interesting but they require some programming:

-  Scale

-  CreateFractalShape feels good for creating complex geometries for 
testing.

-  GetGeometryN and GetPolygonHoleN for editing and removing parts and 
holes from multigeometries and geometrycollections - should be topped up with 
UI button GetNext for selecting and panning to the next geometry/hole.

-  ExtractLine and ExtractPoint would be nice additions to linear 
referencing tools. Extract line tool could be improved a bit to accept also 
start distance for the extracted line (extract between 1 and 5 km) and count 
distance from the end of the linestring (extract the last km).

I also feel that it could be possible to develop a nice plugin that would 
utilize the numerous RandomPoints functions. I have not yet discovered an exact 
use case but perhaps anonymizing statistical data could be one, and splitting 
polygons into about equal areas by creating RandomPointsInPolygon first and 
applying Voronoi polygons and merging neighboring polygons in some clever way 
afterwards.  See this for reference 
http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.

I think that all these can be rather plans for the future than anything to 
implement into the next OJ release.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not difficult. I have 
added "Minimum Bounding Circle" along with some others about one year ago,
and if you notice some other useful jts functions which are not available in 
OpenJUMP, I will be pleased to add them.

Michaël
Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :
Hi,

There are some cool function in JTS 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I guess that 
some OpenJUMP functions in the geometry functions menu are the same JTS 
functions, like "Minimum Bounding Circle".

I wonder how difficult it would be to add some more functions from JTS to 
OpenJUMP. Best way for browsing and testing the available functions is to 
download JTS from https://sourceforge.net/projects/jts-topo-suite/files/jts/ 
and run the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump but I 
have no idea about what it was.

-Jukka Rahkonen-




--




___

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

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


Re: [JPP-Devel] Add some JTS functions before next release?

2015-12-09 Thread Rahkonen Jukka (MML)
Hi Landon,

Actually I believe that scaling has been there already in the original JUMP as 
combination of Scale X and Scale Y of the Affine transformation and Scale 
function in the JTS 1.13 TestBuilder may be just a shortcut. You are for sure 
better than I in reading JTS source code.

-Jukka-

Landon Blake wrote:

Jukka:

On which JTS class do you find the scale function?
How do we currently support polygon hole editing in OpenJUMP?

Landon

On Wed, Dec 9, 2015 at 6:37 AM, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi Michaël,

I have tried most functions which are available in JTS Testbuilder but it feels 
that there are not many that could be just added into OpenJUMP without making 
new user interface elements for using them. These three might be possible to 
add without new UI but I am  not sure how useful they are for the users


-  TranslateCentreToOrigin

-  TranslateToOrigin

-  OctagonalEnvelope

These functions feel interesting but they require some programming:

-  Scale

-  CreateFractalShape feels good for creating complex geometries for 
testing.

-  GetGeometryN and GetPolygonHoleN for editing and removing parts and 
holes from multigeometries and geometrycollections – should be topped up with 
UI button GetNext for selecting and panning to the next geometry/hole.

-  ExtractLine and ExtractPoint would be nice additions to linear 
referencing tools. Extract line tool could be improved a bit to accept also 
start distance for the extracted line (extract between 1 and 5 km) and count 
distance from the end of the linestring (extract the last km).

I also feel that it could be possible to develop a nice plugin that would 
utilize the numerous RandomPoints functions. I have not yet discovered an exact 
use case but perhaps anonymizing statistical data could be one, and splitting 
polygons into about equal areas by creating RandomPointsInPolygon first and 
applying Voronoi polygons and merging neighboring polygons in some clever way 
afterwards.  See this for reference 
http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.

I think that all these can be rather plans for the future than anything to 
implement into the next OJ release.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not difficult. I have 
added “Minimum Bounding Circle” along with some others about one year ago,
and if you notice some other useful jts functions which are not available in 
OpenJUMP, I will be pleased to add them.

Michaël
Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :
Hi,

There are some cool function in JTS 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I guess that 
some OpenJUMP functions in the geometry functions menu are the same JTS 
functions, like “Minimum Bounding Circle”.

I wonder how difficult it would be to add some more functions from JTS to 
OpenJUMP. Best way for browsing and testing the available functions is to 
download JTS from https://sourceforge.net/projects/jts-topo-suite/files/jts/ 
and run the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump but I 
have no idea about what it was.

-Jukka Rahkonen-



--



___

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


--

___
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

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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-09 Thread Rahkonen Jukka (MML)
Hi,

This version makes connection with out Oracle rather fast and reading data is 
successful.

I have one suggestion: If adding a new layer fails because of some ORA-error it 
would be better not to add the layer into the OpenJUMP project. Test case: Add 
a layer with invalid WHERE. It seems to be that if user does not delete those 
non-operating layers then OpenJUMP is sending a new SQL request every time the 
map is panned or zoomed and depending on where the error happens the query may 
run quite a long time.

-Jukka Rahkonen-

Nicolas Ribot wrote:

Hi,

Oracle Spatial support has been added to OJ core (read-only).
It works the same way as Postgis support: define a DB connection to Oracle and 
choose spatial layers from the list of found layers to display them in OJ

Oracle 9i -> 12c supported (though only tested recently with Oracle 11i and 
12c).

The SpatialDatabases plugin also contains code to support MariaDB/MySQL and 
Spatialite. (SQL Server in the pipe...)

I was thinking about adding this code to the core, too.
What do you think ?

Nicolas


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


Re: [JPP-Devel] Add some JTS functions before next release?

2015-12-10 Thread Rahkonen Jukka (MML)
Hi,

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 10. joulukuuta 2015 0:28
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Add some JTS functions before next release?

Hi,

Some functions seems interesting enough. For some others, I would need real use 
case
to motivate me.
For translate/scale function, I think we already have good tooling with 
interactive move/scale tools in the toolbox
and affine transform in the menu. Any think you can't do with that ?
Not really. None of the tools can move geometries quickly close to origin but I 
do not know a use case for that. Perhaps demonstrating how different 
projections make different distortions?
I don't know any usage of octogonal envelope. Maybe used by JTS for internal 
algorithms.
Neither do I.
Create fractal geometries or random points/lines/polygons seems interesting to 
me (I mean I often have to
create random data for testing purpose. A few years ago, I had created a koch 
curve of 1 000 000 points to
test really big object).
We can create random triangles and arrows but the number of features is fixed 
to 50 and 20.  Random triangles tool creates also attributes of all kinds and 
therefore we must keep that tool.
OpenJUMP can already extract points like TestBuilder (and more as it can 
introduce offset
thanks to internal JTS API)
ExtractLine would be a nice addition.
"Repeat" option would suit well also for ExtractLine. Offset might be nice for 
visualizing data but option should have a warning text because it might alter 
the length of sections if the algorithm would be the same as in OffSet curve.
-Jukka-



Michaël
Le 09/12/2015 21:53, Landon Blake a écrit :
Jukka:

On which JTS class do you find the scale function?
How do we currently support polygon hole editing in OpenJUMP?

Landon

On Wed, Dec 9, 2015 at 6:37 AM, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi Michaël,

I have tried most functions which are available in JTS Testbuilder but it feels 
that there are not many that could be just added into OpenJUMP without making 
new user interface elements for using them. These three might be possible to 
add without new UI but I am  not sure how useful they are for the users


-  TranslateCentreToOrigin

-  TranslateToOrigin

-  OctagonalEnvelope

These functions feel interesting but they require some programming:

-  Scale

-  CreateFractalShape feels good for creating complex geometries for 
testing.

-  GetGeometryN and GetPolygonHoleN for editing and removing parts and 
holes from multigeometries and geometrycollections - should be topped up with 
UI button GetNext for selecting and panning to the next geometry/hole.

-  ExtractLine and ExtractPoint would be nice additions to linear 
referencing tools. Extract line tool could be improved a bit to accept also 
start distance for the extracted line (extract between 1 and 5 km) and count 
distance from the end of the linestring (extract the last km).

I also feel that it could be possible to develop a nice plugin that would 
utilize the numerous RandomPoints functions. I have not yet discovered an exact 
use case but perhaps anonymizing statistical data could be one, and splitting 
polygons into about equal areas by creating RandomPointsInPolygon first and 
applying Voronoi polygons and merging neighboring polygons in some clever way 
afterwards.  See this for reference 
http://gis.stackexchange.com/questions/171727/polygon-split-with-defined-area.

I think that all these can be rather plans for the future than anything to 
implement into the next OJ release.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Adding such geometry functions to OpenJUMP is generally not difficult. I have 
added "Minimum Bounding Circle" along with some others about one year ago,
and if you notice some other useful jts functions which are not available in 
OpenJUMP, I will be pleased to add them.

Michaël
Le 19/11/2015 13:24, Rahkonen Jukka (MML) a écrit :
Hi,

There are some cool function in JTS 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/. I guess that 
some OpenJUMP functions in the geometry functions menu are the same JTS 
functions, like "Minimum Bounding Circle".

I wonder how difficult it would be to add some more functions from JTS to 
OpenJUMP. Best way for browsing and testing the available functions is to 
download JTS from https://sourceforge.net/projects/jts-topo-suite/files/jts/ 
and run the testbuilder application from the bin directory.

It seems that there is some unmaintained jts-jump plugin 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts-jump but I 
have no idea about what it was.

-Jukka Rahkonen-



--



___

Jump-pilot-devel mailing list

Jump-pilot

Re: [JPP-Devel] JTS 1.14

2015-12-12 Thread Rahkonen Jukka (MML)
WFS works as you can see by trying the "states" feature type from the other 
pre-defined service at demo.opengeo.org. 
The error probably means that the deegree2 CRS system is so old that EPSG:3857 
was not known at that time. It may not be easy to add the support. Definitions 
are hidden somewhere inside the deegree2.jar and I do not know if there is even 
method for spherical Mercator. Sergio from the Kosmo project might know.

-Jukka Rahkonen-

-Alkuperäinen viesti-
Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr] 
Lähetetty: 12. joulukuuta 2015 12:15
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] JTS 1.14

Hi,

- kml seems to work without the need of jts-io
- for WFS, it seems that jts-io is not needed, but I could not test it 
completely.
I get the hereafter exception about crs.
Jukka, could you confirm the plugin is working for you ?

Michaël

Exception
de.latlon.deejump.wfs.DeeJUMPException: Error parsing response.
 at
de.latlon.deejump.wfs.data.JUMPFeatureFactory.createDeegreeFCfromWFS(JUMPFeatureFactory.java:272)
 at de.latlon.deejump.wfs.plugin.WFSPlugIn.run(WFSPlugIn.java:143)
 at
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
 at java.lang.Thread.run(Unknown Source) Caused by: Error creating feature 
instance from element 'osm-busstops': 
Cannot convert value of property "osm:geometry (osm=http://terrestris)" 
in feature with id "-" to geometry: "Unknown coordinate system: 
urn:x-ogc:def:crs:EPSG:3857
org.deegree.model.crs.UnknownCRSException

Le 11/12/2015 00:38, Michaël Michaud a écrit :
> Hi all,
>
> I just switched the pom to official jts 1.14.
> Note that jts has been split into several modules and I just included 
> jts-core for now.
> There may be plugins or extension which need jts-io  (wfs ?, kml ?) or 
> or jts-ora (oracle driver ?).
> I did not investigate yet. Let me know if you need to add jts extra 
> modules.
>
> Michaël
>


--
___
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] Feature request: Flip coordinates

2015-12-12 Thread Rahkonen Jukka (MML)
Hi,

Test the states feature type from WFS http://demo.opengeo.org/geoserver/wfs 
with version 
1.1.0 and you 
will see the reasoning. In GML 3 the axis order follows the official 
definitions of the CRS which is latitude-longitude for EPSG:4326 but OJ can't 
handle that. There could be a tool in Edit geometries "Flip axis" for this.

-Jukka Rahkonen-

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


Re: [JPP-Devel] Feature request: Flip coordinates

2015-12-12 Thread Rahkonen Jukka (MML)
At least for me it is not compulsory to use the Login button at all but I can 
just press Connect directly. I am not sure why there are separate Connect and 
Login buttons but perhaps somebody has planned to use some special Login 
service for authorization.

Thanks for the hint about correct parameters for affine flip.

-Jukka-



Michaël Michaud wrote:

Hi Jukka,

OK, I could see some layers from your URL now.
(In the UI, login/pwd is mandatory, but it is not needed to reach this url, 
maybe I should
remove the error message when the user does not provide a user/pwd ?)
About the axis order problem, I agree that a flip plugin could be useful (and 
quite easy to do).
Note that in the meantime, you can get the same result with Generate > Affine 
transform
Y-Scale = -1
Rotation = 90

Michaël
Le 12/12/2015 12:29, Rahkonen Jukka (MML) a écrit :
Hi,

Test the states feature type from WFS http://demo.opengeo.org/geoserver/wfs 
with version 
1.1.0<http://demo.opengeo.org/geoserver/wfs%20with%20version%201.1.0> and you 
will see the reasoning. In GML 3 the axis order follows the official 
definitions of the CRS which is latitude-longitude for EPSG:4326 but OJ can't 
handle that. There could be a tool in Edit geometries "Flip axis" for this.

-Jukka Rahkonen-





--




___

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

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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-12 Thread Rahkonen Jukka (MML)
Are WKB and WKT really used in Spatialite? FDO system is probably using WKB but 
I have never met WKT geometries. More useful might be to support GeoPackage 
geometries and I suppose that DB Query Plugin has good native parser for them. 
I suppose you are making a pure java solution because with SpatiaLite binaries 
I believe it would be possible to simply use AsWKB.

If you play with SQLite/SpatiaLite, test also how your code deals with 
date/datetime/timestamp attributes (DB Query chokes).

-Jukka Rahkonen-

Nicolas Ribot wrote:

Hi Michaël,

Thanks for the insight.

I'm currently refactoring a bit the SpatialDatabases code.
The error you pointed out showed me some problems with current code, and as you 
noted, I have to instantiate a correct, concrete class for each detected 
DSConnection.

I'm finalising my todo list, but right now, FilterQuery and AdhocQuery can be 
ran on Postgis, Oracle, MySQL and Spatialite databases the same way.

I'm currently finishing the support for Spatialite, that can be tricky: 
geometry column can contain WKT, WKB or native Spatialite binary format. Still 
have to correct the ValueConvert to correctly detect and convert each type.

MySQL support is added with support for both WKB storage, internal binary 
storage (code from DBQuery).
Layer extent is now correctly retrieved but has to be tested on big datasets 
(it merely uses a textual aggregation of all geometries to build the resulting 
envelope).

I think I will be able to commit fixes soon.

I'm stuck, though, on the problem Jukka mentioned: if you add a wrong where 
clause to the layer to load, error is detected in the 
com.vividsolutions.jump.workbench.ui.renderer.ImageCachingRenderer( line 90) 
where the error message is displayed in Window toolbar.
I can display an ErrorDialog with SQL error, but do not know how to cleanly 
remove the layer from the panel.

Nicolas


On 12 December 2015 at 15:29, Michaël Michaud 
mailto:m.michael.mich...@orange.fr>> wrote:
Hi Nicolas,

I had a look but did not find an easy way to fix the problem.

In SpatialDatabasesDSConnection you added a comment that it is no more 
necessary to subclass to PostGIS...

On the other hand,
- SpatialDatabasesDSConnection instantiates
- SpatialDatabasesResultSetConverter which in turn instantiates
- SpatialDatabasesFeatureInputStream which instantiates
- SpatialDatabasesResultSetConverter  which instiates a new
- SpatialDatabasesValueConverterFactory

The getConverter method of the later just return null which seems the root cause
of my NPE.

Seems like the concrete class should still be a subclass of 
SpatialDatabasesDSConnection.
What do you think ?

Another (maybe related) question : In the component to connect a new database, 
there
is a combobox with a single value "PostGIS".  Should we add other drivers in 
order to
instantiate proper connection for each driver. There is commented code from you 
in
JumpConfiguration class showing that you already have implemented such a 
solution
in the past)

Michaël

Le 08/12/2015 10:30, Nicolas Ribot a écrit :
Hi Michaël,

I will look at it.

Nicolas

On 7 December 2015 at 23:12, Michaël Michaud 
mailto:m.michael.mich...@orange.fr>> wrote:
Hi

Waw, thanks for this refactoring Nicolas !

Just noticed the following regression

in the File > Execute Query plugin
If I try to query a postgis table as I did before, I get the following NPE :
java.lang.NullPointerException
at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesResultSetConverter.init(SpatialDatabasesResultSetConverter.java:72)

The same NPE occurs with the read/write postgis driver

Any idea ?

Michaël

Le 07/12/2015 18:16, Nicolas Ribot a écrit :
Hi,

Oracle Spatial support has been added to OJ core (read-only).
It works the same way as Postgis support: define a DB connection to Oracle and 
choose spatial layers from the list of found layers to display them in OJ

Oracle 9i -> 12c supported (though only tested recently with Oracle 11i and 
12c).

The SpatialDatabases plugin also contains code to support MariaDB/MySQL and 
Spatialite. (SQL Server in the pipe...)

I was thinking about adding this code to the core, too.
What do you think ?

Nicolas




--

Go from Idea to Many App Stores Faster with Intel(R) XDK

Give your users amazing mobile app experiences with Intel(R) XDK.

Use one codebase in this all-in-one HTML5 development environment.

Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.

http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140


___

Jump-pilot-devel mailing list

Jump-pilot-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give you

Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-13 Thread Rahkonen Jukka (MML)
Very interesting. Unfortunately r4609 did not build 
http://vorboss.dl.sourceforge.net/project/jump-pilot/OpenJUMP_snapshots/OpenJUMP-20151213-r4609.log.

-Jukka Rahkonen-

Nicolas Ribot wrote:

Hi,

I made a commit (r4609) adding Spatial databases support for MySQL/MariaDB and 
Spatialite.

Some points concerning this commit:

• FilterQuery and Adhoc queries are supported for all spatial databases
• When a wrong WHERE clause is added to a datasource, SQL error is displayed 
and layer is removed from Panel(*)
• Added some icons according to connection type and status:

[Inline images 1]

• MariaDB: supports WKB and natives binary types, (thanks to code from Larry 
Reeder)
• Spatialite: supports Spatialite binary type, WKB and WKT, supports several 
geometry_column metadata table layout.
• Spatialite database file can be choosen with a FileChooser instead of classic 
server/dbname/user/pwd fields, as they are not relevant for Spatialite:

[Inline images 2]

Microsoft® SQL Server support should come soon.

(*) Michaël & ede: To manage SQL errors when adding a database layer, I 
modified ImageCacheRenderer: this is actually here the error is detected (and 
by default, only a warning is issued, which is fine: sometime, 
FeatureCollection returns a NoSuchFeatureException because of an extent error, 
and in this case, the layer should be added to the LayerPanel).

AFAIU, when choosing a layer from a datastore, the OJ Layer is added to the 
panel, then a separate thread tries to load the Features. This thread triggers 
the actual SQL code for the layer.
Instead of testing the layer each time a WHERE clause is added/modified, I 
chose to catch the SQLException in ImageCacheRenderer thread, then I remove the 
layer from the Panel. In case of other error types, layer is added to the Panel.

Nicolas



On 13 December 2015 at 12:20, mailto:edgar.sol...@web.de>> 
wrote:
the functionally correct approach of course would be adding the layer only 
after the request went trough fine. you can create layers and feature 
collections and throw them away if it wont work out.

..ede

On 13.12.2015 00:17, Nicolas Ribot wrote:
> Yes good idea, I will add a test before loading a layer.
>
> Nicolas
>
> On 12 December 2015 at 20:22, Michaël Michaud 
> mailto:m.michael.mich...@orange.fr> 
> >> 
> wrote:
>
> Hi Nicolas,
>
> Thanks for your answer.
>
> Just one idea about the problem Jukka has mentionned :
> Maybe the query should be tested before the Layer is created.
> A way to do that would be to add (or replace)  the LIMIT clause with 
> value 0 to have a lightweight query
> giving the opportunity to catch a SQLException.
> May not be the cleanest way to solve the problem though (several classes 
> to patch).
>
> Michaël
>
> Le 12/12/2015 16:31, Nicolas Ribot a écrit :
>> Hi Michaël,
>>
>> Thanks for the insight.
>>
>> I'm currently refactoring a bit the SpatialDatabases code.
>> The error you pointed out showed me some problems with current code, and 
>> as you noted, I have to instantiate a correct, concrete class for each 
>> detected DSConnection.
>>
>> I'm finalising my todo list, but right now, FilterQuery and AdhocQuery 
>> can be ran on Postgis, Oracle, MySQL and Spatialite databases the same way.
>>
>> I'm currently finishing the support for Spatialite, that can be tricky: 
>> geometry column can contain WKT, WKB or native Spatialite binary format. 
>> Still have to correct the ValueConvert to correctly detect and convert each 
>> type.
>>
>> MySQL support is added with support for both WKB storage, internal 
>> binary storage (code from DBQuery).
>> Layer extent is now correctly retrieved but has to be tested on big 
>> datasets (it merely uses a textual aggregation of all geometries to build 
>> the resulting envelope).
>>
>> I think I will be able to commit fixes soon.
>>
>> I'm stuck, though, on the problem Jukka mentioned: if you add a wrong 
>> where clause to the layer to load, error is detected in the 
>> com.vividsolutions.jump.workbench.ui.renderer.ImageCachingRenderer( line 90) 
>> where the error message is displayed in Window toolbar.
>> I can display an ErrorDialog with SQL error, but do not know how to 
>> cleanly remove the layer from the panel.
>>
>> Nicolas
>>
>>
>> On 12 December 2015 at 15:29, Michaël Michaud 
>> mailto:m.michael.mich...@orange.fr> 
>> >> 
>> wrote:
>>
>> Hi Nicolas,
>>
>> I had a look but did not find an easy way to fix the problem.
>>
>> In SpatialDatabasesDSConnection you added a comment that it is no 
>> more necessary to subclass to PostGIS...
>>
>> On the other hand,
>> - SpatialDatabasesDSConnection instantiates
>> - SpatialDatabasesResultSetConverter which in turn instantiates
>> - SpatialDatabasesF

Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-13 Thread Rahkonen Jukka (MML)
 
Source)
at java.awt.AWTEventMulticaster.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$200(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$1.doIntersectionPrivilege(Unknown 
Source)
at java.security.ProtectionDomain$1.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$1.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)


-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 13. joulukuuta 2015 21:40
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Adding other spatial databases support in OJ core

Jukka,

please try r4614 PLUS.. ede

On 13.12.2015 19:00, Rahkonen Jukka (MML) wrote:
> Very interesting. Unfortunately r4609 did not build 
> http://vorboss.dl.sourceforge.net/project/jump-pilot/OpenJUMP_snapshots/OpenJUMP-20151213-r4609.log.
> 
>  
> 
> -Jukka Rahkonen-
> 
>  
> 
> Nicolas Ribot wrote:
> 
>  
> 
> Hi,
> 
>  
> 
> I made a commit (r4609) adding Spatial databases support for MySQL/MariaDB 
> and Spatialite.
> 
>  
> 
> Some points concerning this commit:
> 
>  
> 
> . FilterQuery and Adhoc queries are supported for all spatial databases
> 
> . When a wrong WHERE clause is added to a datasource, SQL error is displayed 
> and layer is removed from Panel(*)
> 
> . Added some icons according to connection type and status:
> 
>  
> 
> Inline images 1
> 
>  
> 
> . MariaDB: supports WKB and natives binary types, (thanks to code from Larry 
> Reeder)
> 
> . Spatialite: supports Spatialite binary type, WKB and WKT, supports several 
> geometry_column metadata table layout.
> 
> . Spatialite database file can be choosen with a FileChooser instead of 
> classic server/dbname/user/pwd fields, as they are not relevant for 
> Spatialite:
> 
>  
> 
> Inline images 2
> 
>  
> 
> Microsoft® SQL Server support should come soon.
> 
>  
> 
> (*) Michaël & ede: To manage SQL errors when adding a database layer, I 
> modified ImageCacheRenderer: this is actually here the error is detected (and 
> by default, only a warning is issued, which is fine: sometime, 
> FeatureCollection returns a NoSuchFeatureException because of an extent 
> error, and in this case, the layer should be added to the LayerPanel).
> 
>  
> 
> AFAIU, when choosing a layer from a datastore, the OJ Layer is added to the 
> panel, then a separate thread tries to load the Features. This thread 
> triggers the actual SQL code for the layer.
> 
> Instead of testing the layer each time a WHERE clause is added/modified, I 
> chose to catch the SQLException in ImageCacheRenderer thread, then I remove 
> the layer from the Panel. In case of other error types, layer is added to the 
> Panel.
> 
>  
> 
> Nicolas
> 
>  
> 
>  
> 
>  
> 
> On 13 December 2015 at 12:20,  <mailto:edgar.sol...@web.de>> wrote:
> 
> the functionally correct approach of course would be adding the layer 
> only after the request went troug

Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-13 Thread Rahkonen Jukka (MML)
Works now but SQLite jdbc driver must still be in \lib. Using 
\lib\ext\dbdatastore gives ClassNotFound error.

Nico can confirm but I suppose that use of native SpatiaLite binaries is not 
supported. DB Query has the support but user should give the name of the 
extension to be loaded (.dll or .so) and connection with SQLite should be made 
in  a bit different way by running SELECT load_extension('mod_spatialite').
Perhaps there could be another file browser in the SpatiaLite Add connection 
dialog for the Extension file. If the selection is not empty the connection 
would be created with SELECT load_extension('given_extension'). Use of 
extensions is error prone because architecture must match with the jre that OJ 
is running on (32-bit or 64-bit) and it is not enough to find the extension but 
all dependencies referred from the extension must be found also and similarly 
they must me 32-bit or 64-bit.

DB Query code can also parse geometry blobs encoded according to GeoPackage 
standard. For adding GPKG support through datastore it should be made to 
resolve the GeoPackage metadata. Metadata tables are well defined in the 
standard and they are rather close to other SQL metadata schemas 
https://portal.opengeospatial.org/files/?artifact_id=63378.

Perhaps the name of the datastore could be SQLite datastore instead of 
SpatiaLite datastore because it can read geometries also from plain SQLite 
database files which do not know anything about SpatiaLite.

-Jukka Rahkonen-



edgar.soldin wrote:

looks like a problem w/ my reflection code. please try r4620.

1.
it should have a folder lib/ext/dbdatastore/ to put your jdbc jars into.

2.
if spatialite still won't work please send a short step-by-step plus example 
file for me to directly work it out

i assume you remember to put the dll(s) into lib/native/x##/ automatically. 
remind me please. it works w/o the dll's but with them you get some sql macros 
you wouldn't have otherwise, right?

..ede

On 13.12.2015 22:19, Rahkonen Jukka (MML) wrote:
> Hi,
> 
> Spatialite store appears on the list and I can create a store with the file 
> browser. For making the connection I had to copy sqlite-jdbc-3.8.6.jar from 
> \lib\ext into \lib. However, even now the connection fails with exception:
> 
> java.lang.NoSuchMethodException: 
> org.sqlite.SQLiteConfig.enableLoadExtension(java.lang.Boolean)
>   at java.lang.Class.getMethod(Unknown Source)
>   at 
> com.vividsolutions.jump.datastore.spatialite.SpatialiteDataStoreDriver.createConnection(SpatialiteDataStoreDriver.java:63)
>   at 
> com.vividsolutions.jump.workbench.datastore.ConnectionDescriptor.createConnection(ConnectionDescriptor.java:75)
>   at 
> com.vividsolutions.jump.workbench.datastore.ConnectionManager.getOpenConnection(ConnectionManager.java:75)
>   at 
> com.vividsolutions.jump.workbench.ui.plugin.datastore.PasswordPrompter.getOpenConnection(PasswordPrompter.java:36)
>   at 
> com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.loadDatasetList(AddDatastoreLayerPanel.java:270)
>   at 
> com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.populateDatasetTree(AddDatastoreLayerPanel.java:197)
>   at 
> com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.getDatasetOutline(AddDatastoreLayerPanel.java:164)
>   at 
> com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.access$100(AddDatastoreLayerPanel.java:39)
>   at 
> com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$2.actionPerformed(AddDatastoreLayerPanel.java:67)
>   at javax.swing.JComboBox.fireActionEvent(Unknown Source)
>   at javax.swing.JComboBox.setSelectedItem(Unknown Source)
>   at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
>   at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown 
> Source)
>   at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
>   at java.awt.Component.processMouseEvent(Unknown Source)
>   at javax.swing.JComponent.processMouseEvent(Unknown Source)
>   at javax.swing.plaf.basic.BasicComboPopup$1.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)
>

[JPP-Devel] SQLite/SpatiaLite and Error parsing timestamp

2015-12-13 Thread Rahkonen Jukka (MML)
Hi Nicolas,

This discussion defines the problem with SQLite and times
http://comments.gmane.org/gmane.comp.gis.jump.devel/15966

I can create some test data for you if you wish.

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


[JPP-Devel] WFS plugin gives NoSuchMethodError in r4620

2015-12-14 Thread Rahkonen Jukka (MML)
How to reproduce:


-  Create a layer, digitize any feature on it, select the feature and 
press the WFS button. The plugin is supposed to take the selected geometry and 
use it for building a spatial filter but now it throws an error:

java.lang.NoSuchMethodError: 
org.deegree.model.spatialschema.JTSAdapter.wrap(Lcom/vividsolutions/jts/geom/Geometry;Lorg/deegree/model/crs/CoordinateSystem;)Lorg/deegree/model/spatialschema/Geometry;
 at 
de.latlon.deejump.wfs.plugin.WFSPlugIn.getSelectedGeoAsGML(WFSPlugIn.java:225)
 at 
de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:107)
 at 
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:342)
 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.AWTEventMulticaster.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$200(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$1.doIntersectionPrivilege(Unknown Source)
 at 
java.security.ProtectionDomain$1.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$1.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)

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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-14 Thread Rahkonen Jukka (MML)
Hi Nicolas,

I am confused. I am using the Spatialite datastore with OJ r4620 for reading my 
existing Spatialite databases with good success and I am sure that I do not 
have mod_spatialite nor the dependencies in my OJ installation.

Where does you code try to find mod_spatialite and the dll files, from /lib/ext 
or somewhere else? With which Spatialite binaries have you been testing? Are 
you sure that mod_spatialite gets loaded, for example, can you run datastore 
query “select transform(geometry,4326) from my_table” with Spatialite datastore 
connection? If you can I must believe that mod_spatialite is loaded because 
standard SQLite does not have the Transform function.

I was able to make Spatialite datastore to work on one computer with r4620 but 
not with another one. The problematic PC gives just ClassNotFound messages 
about org.sqlite.SQLiteConfig for me and I haven’t found yet what is the 
difference between these two installations.

-Jukka Rahkonen-


Nicolas Ribot wrote:

Some notes concerning Sqlite/Spatialite support.

My primary goal was to support *spatialite*, ie, as you said, with a valid 
spatialite installation for the target platform (mod_spatialite available).
The main reason is I wanted the mechanism to be as close as possible from other 
Spatial databases support, that rely more or less on OGC SFSQL. For that, 2 
conditions are searched:
1) spatial tables metadata (geometr_columns, all_sdo_geom_metadata
2) spatial functions/indexes, that are used by spatialDatabases framework to 
query bbox, to use index, etc.

DB Query is already super strong at supporting many flavours of SQLite spatial 
columns.

Current code tries to load mod_spatialite and report an error in the log if not 
found.
SQL queries won't be built if no spatialite extension is found. I only test it 
on my platform, where mod_spatialite is installed.

I didn't know about GeoPackage. I will look at it.

Nicolas


On 13 December 2015 at 23:59, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Works now but SQLite jdbc driver must still be in \lib. Using 
\lib\ext\dbdatastore gives ClassNotFound error.

Nico can confirm but I suppose that use of native SpatiaLite binaries is not 
supported. DB Query has the support but user should give the name of the 
extension to be loaded (.dll or .so) and connection with SQLite should be made 
in  a bit different way by running SELECT load_extension('mod_spatialite').
Perhaps there could be another file browser in the SpatiaLite Add connection 
dialog for the Extension file. If the selection is not empty the connection 
would be created with SELECT load_extension('given_extension'). Use of 
extensions is error prone because architecture must match with the jre that OJ 
is running on (32-bit or 64-bit) and it is not enough to find the extension but 
all dependencies referred from the extension must be found also and similarly 
they must me 32-bit or 64-bit.

DB Query code can also parse geometry blobs encoded according to GeoPackage 
standard. For adding GPKG support through datastore it should be made to 
resolve the GeoPackage metadata. Metadata tables are well defined in the 
standard and they are rather close to other SQL metadata schemas 
https://portal.opengeospatial.org/files/?artifact_id=63378.

Perhaps the name of the datastore could be SQLite datastore instead of 
SpatiaLite datastore because it can read geometries also from plain SQLite 
database files which do not know anything about SpatiaLite.

-Jukka Rahkonen-



edgar.soldin wrote:

looks like a problem w/ my reflection code. please try r4620.

1.
it should have a folder lib/ext/dbdatastore/ to put your jdbc jars into.

2.
if spatialite still won't work please send a short step-by-step plus example 
file for me to directly work it out

i assume you remember to put the dll(s) into lib/native/x##/ automatically. 
remind me please. it works w/o the dll's but with them you get some sql macros 
you wouldn't have otherwise, right?

..ede

On 13.12.2015 22:19, Rahkonen Jukka (MML) wrote:
> Hi,
>
> Spatialite store appears on the list and I can create a store with the file 
> browser. For making the connection I had to copy sqlite-jdbc-3.8.6.jar from 
> \lib\ext into \lib. However, even now the connection fails with exception:
>
> java.lang.NoSuchMethodException: 
> org.sqlite.SQLiteConfig.enableLoadExtension(java.lang.Boolean)
>   at java.lang.Class.getMethod(Unknown Source)
>   at 
> com.vividsolutions.jump.datastore.spatialite.SpatialiteDataStoreDriver.createConnection(SpatialiteDataStoreDriver.java:63)
>   at 
> com.vividsolutions.jump.workbench.datastore.ConnectionDescriptor.createConnection(ConnectionDescriptor.java:75)
>   at 
> com.vividsolutions.jump.workbench.datastore.ConnectionManager.getOpenConnection(ConnectionManager.java:75)
>   at 
> com.vividsolutions.jump

Re: [JPP-Devel] WFS plugin gives NoSuchMethodError in r4620

2015-12-14 Thread Rahkonen Jukka (MML)
I thought that it has been working but probably I was wrong and at least r4401 
(2015-04-18) gives the same error. I attached SRID 4326 for the layer with the 
Layer - Set SRID tool because it looks like degree wants to know it but it does 
not help.

There is something commented out in 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/de/latlon/deejump/wfs/plugin/WFSPlugIn.java#l224

// TODO: fetch SRS info and use it
org.deegree.model.spatialschema.Geometry geoObj = JTSAdapter.wrap(geo,null);

-Jukka-

edgar soldin wrote:

did that work at some point in the past in my port, meaning after r4219? ..ede

On 14.12.2015 11:41, Rahkonen Jukka (MML) wrote:
> How to reproduce:
> 
>  
> 
> -  Create a layer, digitize any feature on it, select the feature and 
> press the WFS button. The plugin is supposed to take the selected geometry 
> and use it for building a spatial filter but now it throws an error:
> 
>  
> 
> java.lang.NoSuchMethodError: 
> org.deegree.model.spatialschema.JTSAdapter.wrap(Lcom/vividsolutions/jts/geom/Geometry;Lorg/deegree/model/crs/CoordinateSystem;)Lorg/deegree/model/spatialschema/Geometry;
> 
>  at 
> de.latlon.deejump.wfs.plugin.WFSPlugIn.getSelectedGeoAsGML(WFSPlugIn.java:225)
> 
>  at 
> de.latlon.deejump.wfs.plugin.WFSPlugIn.execute(WFSPlugIn.java:107)
> 
>  at 
> com.vividsolutions.jump.workbench.plugin.AbstractPlugIn$1.actionPerformed(AbstractPlugIn.java:342)
> 
>  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.AWTEventMulticaster.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$200(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$1.doIntersectionPrivilege(Unknown Source)
> 
>  at 
> java.security.ProtectionDomain$1.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$1.doIntersectionPrivilege(Unknown Source)
> 
>  at java.awt.EventQueue.dispatchEvent(Unknown 
> Source)
> 
>  at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> 
>  at 
> jav

Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-14 Thread Rahkonen Jukka (MML)
Here you are: 
http://latuviitta.org/documents/Spatialite_datastore_in_OpenJUMP.pdf
Sample data http://latuviitta.org/downloads/ne_countries.sqlite.

I have not discovered yet how to make datastore to use Spatialite or other 
SQLite extensions. Part 2 of our GeoPackage blog posts gives an example about 
how it is done with DB Query plugin. I will give a better example once I have 
managed to make the brand new SpatiaLite v. 4.4.0 version to work with 
OpenJUMP. The RC0 was published today but it seems to miss some dependencies.

-Jukka-

edgar soldin wrote:

On 13.12.2015 23:59, Rahkonen Jukka (MML) wrote:
> Works now but SQLite jdbc driver must still be in \lib. Using 
> \lib\ext\dbdatastore gives ClassNotFound error.

hey Jukka,

can you give me a short step-by-step on how to load an sqlite dataset plus an 
example sqlite file? maybe including spatialite example. then i can have a look 
into the jar/dll loading issue.

it probably works for Nico because his spatialite libs are located in the 
systems default library path (btw. he seems to be on OSX). have to check, but 
actually the OJ start scripts should respect those and only add entries in 
front of the defaults in order for libs in lib/native/ to be preferred before 
system libs.

..ede


--
___
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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-14 Thread Rahkonen Jukka (MML)
I mean these blogs: http://openjump.blogspot.fi/search/label/GeoPackage

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi] 
Lähetetty: 14. joulukuuta 2015 15:34
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] Adding other spatial databases support in OJ core

Here you are: 
http://latuviitta.org/documents/Spatialite_datastore_in_OpenJUMP.pdf
Sample data http://latuviitta.org/downloads/ne_countries.sqlite.

I have not discovered yet how to make datastore to use Spatialite or other 
SQLite extensions. Part 2 of our GeoPackage blog posts gives an example about 
how it is done with DB Query plugin. I will give a better example once I have 
managed to make the brand new SpatiaLite v. 4.4.0 version to work with 
OpenJUMP. The RC0 was published today but it seems to miss some dependencies.

-Jukka-

edgar soldin wrote:

On 13.12.2015 23:59, Rahkonen Jukka (MML) wrote:
> Works now but SQLite jdbc driver must still be in \lib. Using 
> \lib\ext\dbdatastore gives ClassNotFound error.

hey Jukka,

can you give me a short step-by-step on how to load an sqlite dataset plus an 
example sqlite file? maybe including spatialite example. then i can have a look 
into the jar/dll loading issue.

it probably works for Nico because his spatialite libs are located in the 
systems default library path (btw. he seems to be on OSX). have to check, but 
actually the OJ start scripts should respect those and only add entries in 
front of the defaults in order for libs in lib/native/ to be preferred before 
system libs.

..ede


--
___
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

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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-14 Thread Rahkonen Jukka (MML)
Hi,

The latest ones are these:
http://www.gaia-gis.it/gaia-sins/windows-bin-x86-test/mod_spatialite-4.4.0-RC0-win-x86.7z
http://www.gaia-gis.it/gaia-sins/windows-bin-amd64-test/mod_spatialite-4.4.0-RC0-win-amd64.7z

The list of the SQL functions of this version is at 
http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.4.0.html

Linux users are supposed to build from sources. These Windows binaries are 
very, very fresh because Sandro announced those fixed packages about 40 minutes 
ago. I tested both packages with DB Query plugin and they are OK. Unzip 
everything  from either 32-bit or 64-bit package into lib/ext and give 
connection string as
jdbc:sqlite:/c:/path/to/some_db.sqlite?spatialite=mod_spatialite

You will see an error if mod_spatialite can't be loaded. Further test is to 
make some query which requires Spatialite like
SELECT ST_Centroid(geometry) from...

I guess you will try to move the dll files into some special directory, perhaps 
under lib/native/... 
Good luck with it. I have spent sometimes quite many hours with that with poor 
success but I do not remember how it failed. Probably I managed to make OJ to 
load the right mod_spatialite (32-bit from 32-bit jre and 64-bit from 64-bit 
jre) but mod_spatialite did not find right versions of the dll files. May be 
that the error was in some other place. You are for sure better than me in that 
play. Anyway, it will work if mod_spatialite and all the other dll files are in 
\lib\ext.

If you plan to test with the datastore plugin it requires that SQLite jdbc 
driver is in /lib. I saw from the source code that it really tries to execute 
SELECT load_extension('mod_spatialite') but I can't find any traces of that 
from the OJ log.

-Jukka-


edgar soldin wrote:

On 14.12.2015 14:33, Rahkonen Jukka (MML) wrote:
>  I will give a better example once I have managed to make the brand new 
> SpatiaLite v. 4.4.0 version to work with OpenJUMP. The RC0 was published 
> today but it seems to miss some dependencies.

Jukka,

what is the latest libspatialite version and where can i download it?
http://www.gaia-gis.it/gaia-sins/windows-bin-x86/ gives me a 403 error.

if you have it you might just attach the windows x86 version to the reply for 
me please.

..ede

--
___
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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-14 Thread Rahkonen Jukka (MML)
You can test if Spatialite is available by using some Spatialite function in 
the "where" box of the connection, for example 
[where] ST_Area(geometry)>2
The ne_110m_admin_0_countries layer should have 153 rows now. For me the count 
is 0 but log file does not report any error.

Another way to test if to use Run datastore query.
select ST_Centroid(geometry) from ne_110m_admin_0_countries;
gives
ava.lang.Exception: SQL error:null
at 
com.vividsolutions.jump.datastore.spatialite.SpatialiteDSConnection.executeAdhocQuery(SpatialiteDSConnection.java:88)
at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection.execute(SpatialDatabasesDSConnection.java:63)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.RunDatastoreQueryPlugIn.createLayer(RunDatastoreQueryPlugIn.java:77)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.RunDatastoreQueryPlugIn.createLayerable(RunDatastoreQueryPlugIn.java:41)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AbstractAddDatastoreLayerPlugIn.run(AbstractAddDatastoreLayerPlugIn.java:33)
at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
at java.lang.Thread.run(Unknown Source)

You can compare with DB Query by using connection string like
jdbc:sqlite:/c:\data\ne_countries.sqlite?spatialite=mod_spatialite
and running the same
select ST_Centroid(geometry) from ne_110m_admin_0_countries;

-Jukka-




-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 15. joulukuuta 2015 0:53
Vastaanottaja: OpenJump develop and use
Kopio: Nicolas Ribot
Aihe: Re: [JPP-Devel] Adding other spatial databases support in OJ core

ok, loading the dataset works.

Nico: why can't i modify my request via 'layer name context menu/Database/Edit 
Query'?

Jukka&Nico: how can i check if spatialite is working?

..ede

On 14.12.2015 22:59, Rahkonen Jukka (MML) wrote:
> Hi,
> 
> The latest ones are these:
> http://www.gaia-gis.it/gaia-sins/windows-bin-x86-test/mod_spatialite-4
> .4.0-RC0-win-x86.7z 
> http://www.gaia-gis.it/gaia-sins/windows-bin-amd64-test/mod_spatialite
> -4.4.0-RC0-win-amd64.7z
> 
> The list of the SQL functions of this version is at 
> http://www.gaia-gis.it/gaia-sins/spatialite-sql-4.4.0.html
> 
> Linux users are supposed to build from sources. These Windows binaries 
> are very, very fresh because Sandro announced those fixed packages 
> about 40 minutes ago. I tested both packages with DB Query plugin and 
> they are OK. Unzip everything  from either 32-bit or 64-bit package 
> into lib/ext and give connection string as 
> jdbc:sqlite:/c:/path/to/some_db.sqlite?spatialite=mod_spatialite
> 
> You will see an error if mod_spatialite can't be loaded. Further test 
> is to make some query which requires Spatialite like SELECT 
> ST_Centroid(geometry) from...
> 
> I guess you will try to move the dll files into some special directory, 
> perhaps under lib/native/... 
> Good luck with it. I have spent sometimes quite many hours with that with 
> poor success but I do not remember how it failed. Probably I managed to make 
> OJ to load the right mod_spatialite (32-bit from 32-bit jre and 64-bit from 
> 64-bit jre) but mod_spatialite did not find right versions of the dll files. 
> May be that the error was in some other place. You are for sure better than 
> me in that play. Anyway, it will work if mod_spatialite and all the other dll 
> files are in \lib\ext.
> 
> If you plan to test with the datastore plugin it requires that SQLite jdbc 
> driver is in /lib. I saw from the source code that it really tries to execute 
> SELECT load_extension('mod_spatialite') but I can't find any traces of that 
> from the OJ log.
> 
> -Jukka-
> 
> 
> edgar soldin wrote:
> 
> On 14.12.2015 14:33, Rahkonen Jukka (MML) wrote:
>>  I will give a better example once I have managed to make the brand new 
>> SpatiaLite v. 4.4.0 version to work with OpenJUMP. The RC0 was published 
>> today but it seems to miss some dependencies.
> 
> Jukka,
> 
> what is the latest libspatialite version and where can i download it?
> http://www.gaia-gis.it/gaia-sins/windows-bin-x86/ gives me a 403 error.
> 
> if you have it you might just attach the windows x86 version to the reply for 
> me please.
> 
> ..ede
> 
> --
>  ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 
> -

[JPP-Devel] Something may be wrong with workbench-state.xml

2015-12-15 Thread Rahkonen Jukka (MML)
Hi,

It feels like workbech-state.xml does not keep all the settings it used to do, 
like the list of recently used WMS services.

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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-15 Thread Rahkonen Jukka (MML)
edgar soldin wrote:


> yes. DBQuery seems to insist on having the parameter 
> "spatialite=mod_spatialite". seems like it does 
> not enable the autoloading.

> Larry: any reason for that?

I think it is the right thing to do because the key feature of DB Query is that 
it is robust. It can read and convert Spatialite BLOBs into JTS features with 
plain java without any native binaries. If user wants to enjoy extra features 
of the Spatialite extension and tolerate the pain of the dll hell it is not a 
big deal to add "?spatialite=mod_spatialite" to the connection string. The user 
interface may not be the most user friendly but the UI is the same for all 
databases.

SQLite driver could of course try automatically if mod_spatialite is available 
and start in plain java mode if it is not but there can be other useful SQLite 
extensions as well. In the blog post 
http://openjump.blogspot.fi/2014/02/openjump-and-geopackage-part-2-spatial.html 
I show how DB Query can load the libgpkg extension instead of mod_spatialite. 
There may be other useful SQLite extensions around and with the simple while 
not most user friendly approach DB Query supports them all.

It happens also that mod_spatialite is available but is just does not work. If 
there was an automatic detection of mod_spatialite users should still have a 
possibility to prevent it from loading.

If someone gets interested in making the DB Query more user friendly there 
could be an UI component for editing the dbquery.properties file.

-Jukka Rahkonen-



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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-16 Thread Rahkonen Jukka (MML)
Hi,

I have nothing at all to complain and I think that you managed to add the 
SQLite/Spatialite datastore very quickly. It just appears that in my Windows 
environment the mod_spatialite extension is not found if I put all the dll 
files into lib\ext which was the only place where I could make the SpatiaLite 
Plugin 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/plug-ins/SpatialitePlugin/ 
to find them.

I can see that if Spatialite is found then geometries are queries from the map 
viewport with ST_EnvIntersects. That is fine for limiting the number of 
features. However, for making the query fast you should consider using the 
spatial index if that exists. It is a bit complicated in Spatialite because it 
does not happen automatically. Documents 
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=SpatialIndex and 
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=switching-to-4.0 should 
help with it.

I have been reading that loading extensions to SQLite can be tricky and for 
example SQLite may be compiled so that loading extension is strictly denied. We 
should not have that problem because we deliver also the sqlite jdbc driver 
that contains suitable sqlite build inside. Different Spatialite versions make 
also difference. If you are really interested in managing possible pitfalls I 
believe that browsing the source code and comments of the GDAL SQLite driver 
might be useful 
https://trac.osgeo.org/gdal/browser#trunk/gdal/ogr/ogrsf_frmts/sqlite. But 
based on your WKB, WKT, and Spatialite BLOB detection you have probably been 
reading it already and then you know also where to find the GeoPackage driver 
https://trac.osgeo.org/gdal/browser/trunk/gdal/ogr/ogrsf_frmts/gpkg.

What is not handled anywhere that I have seen is the conflicts between 32 vs. 
64 bit architectures. It would be very kind for the end  users to send a clear 
message “WARNING: You are running OpenJUMP with {0} bit JRE but the {1} 
extension is compiled for {2} bit. Extension was not loaded”. I have no idea 
about how to detect the architecture of .dll or .so from java, though.

-Jukka Rahkonen-

Nicolas Ribot wrote:

Jukka,

The SQLite/Spatialite code in OJ is quite new and barely tested with all 
combinations of sqlite flavours. There is a lot of room for improvement, 
especially with regards to loaded extension.
Currently, mod_spatialite loading is detected and a boolean is set to tell the 
code if spatialite functions should be used or not.
It could be easy to add a component when creating the SQLite driver to tell if 
extension should be loaded or not.

I'm a bit busy right but will look at these aspects soon.

Nicolas

On 15 December 2015 at 17:31, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
edgar soldin wrote:


> yes. DBQuery seems to insist on having the parameter 
> "spatialite=mod_spatialite". seems like it does
> not enable the autoloading.

> Larry: any reason for that?

I think it is the right thing to do because the key feature of DB Query is that 
it is robust. It can read and convert Spatialite BLOBs into JTS features with 
plain java without any native binaries. If user wants to enjoy extra features 
of the Spatialite extension and tolerate the pain of the dll hell it is not a 
big deal to add "?spatialite=mod_spatialite" to the connection string. The user 
interface may not be the most user friendly but the UI is the same for all 
databases.

SQLite driver could of course try automatically if mod_spatialite is available 
and start in plain java mode if it is not but there can be other useful SQLite 
extensions as well. In the blog post 
http://openjump.blogspot.fi/2014/02/openjump-and-geopackage-part-2-spatial.html 
I show how DB Query can load the libgpkg extension instead of mod_spatialite. 
There may be other useful SQLite extensions around and with the simple while 
not most user friendly approach DB Query supports them all.

It happens also that mod_spatialite is available but is just does not work. If 
there was an automatic detection of mod_spatialite users should still have a 
possibility to prevent it from loading.

If someone gets interested in making the DB Query more user friendly there 
could be an UI component for editing the dbquery.properties file.

-Jukka Rahkonen-



--
___
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

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


[JPP-Devel] More success with OJ and Spatialite datastore

2015-12-16 Thread Rahkonen Jukka (MML)
Hi,

This time I placed all the dll files into \lib and now connection seems to use 
mod_spatialite (Windows 7, Java 1.8.0_60 32-bit). I can verify that Spatialite 
is used by adding a WHERE filter like "ST_Area(geometry)>1000". OJ log also 
shows that every request is made with ST_EnvIntersects

SELECT geometry,PK_UID,OGR_FID,ATTR_1,ATTR_2 FROM my_table WHERE 
st_envIntersects(geometry, 
-709866.989097,6610145.019159,1517040.459918,7803437.753982) AND (1)

I found a small bug: if I run OpenJUMP with Finnish locale the bounding box in 
st_envIntersects is having comma as a decimal separator and queries are 
failing. BBOX is like 
"-709866,989097,6610145,019159,1517040,459918,7803437,753982" and that 
naturally leads to an error
[SQLITE_ERROR] SQL error or missing database (wrong number of arguments to 
function st_envIntersects())
Workaround is to change into English locale with dot as a decimal separator.

I have still problem with "Run datastore query". It does work with the 
Spatialite connection for plain SQLite queries "SELECT * from table limit 20" 
but Spatialite functions fail and for example "select ST_Centroid(geometry) 
from my_table" gives

java.lang.Exception: SQL error:null
 at 
com.vividsolutions.jump.datastore.spatialite.SpatialiteDSConnection.executeAdhocQuery(SpatialiteDSConnection.java:88)
 at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSConnection.execute(SpatialDatabasesDSConnection.java:63)
 at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.RunDatastoreQueryPlugIn.createLayer(RunDatastoreQueryPlugIn.java:77)
 at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.RunDatastoreQueryPlugIn.createLayerable(RunDatastoreQueryPlugIn.java:41)
 at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AbstractAddDatastoreLayerPlugIn.run(AbstractAddDatastoreLayerPlugIn.java:33)
 at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
 at java.lang.Thread.run(Unknown Source)

-Jukka Rahkonen-





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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-16 Thread Rahkonen Jukka (MML)
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 


> issue with the sqlite extension libs seems to be that they are loaded by 
> sqlite itself. all _we've_ got is the 
>  sqlite jdbc that seems to have a config switch to turn on autoloading *OR* 
> the SELECT load_extension(...); 
> *OR* the connection parameter "jdbc:sqlite:/...?spatialite=mod_spatialite" 
> (is that processed by 
> sqlite or did Larry hack that?).

I do not believe that SQLite is autoloading anything. Datastore loads 
mod_spatialite in 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDSMetadata.java

and DB Query in 
https://sourceforge.net/p/jumpdbqplugin/code/ci/default/tree/src/main/java/org/freevoice/jumpdbqueryextension/spatialite/JumpSpatialiteDbQuery.java#l142

No mystery at all but explicit SQL function calls.

-Jukka-

 

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


Re: [JPP-Devel] Adding other spatial databases support in OJ core

2015-12-16 Thread Rahkonen Jukka (MML)
edgar soldin wrote: 

> just assumed because of
> https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/com/vividsolutions/jump/datastore/spatialite/SpatialiteDataStoreDriver.java#l69
> "new SQLiteConfig().enableLoadExtension(true);"
> but obviously this just autoloads the sqlite native libs.

SQLite has two steps for increasing security:
- If SQLite is compiled with  SQLITE_OMIT_LOAD_EXTENSION it will be impossible 
to load extensions
- If the use of LOAD_EXTENSION is allowed "enableLoadExtension()" must still be 
called first
- Only after that it is possible to load extension. There are couple of ways to 
do that including SELECT load_extension(). The setting is off by default. 
Notice that end user can also enter SQL with "SELECT load_extension()". 

Enabling load_extension is only on or off and when when OpenJUMP enables 
loading mod_spatialite it allows loading any other extension to the same 
connection as well. It is hard to see that as a security risk for OpenJUMP. 

http://www.sqlite.org/loadext.html
http://www.sqlite.org/c3ref/enable_load_extension.html


-Jukka Rahkonen-

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


Re: [JPP-Devel] More success with OJ and Spatialite datastore

2015-12-18 Thread Rahkonen Jukka (MML)
Ede, change into English locale, your envelope has commas as decimal separator.

Jukka


Lähettäjä: edgar.sol...@web.de<mailto:edgar.sol...@web.de>
Lähetetty: ‎18.‎12.‎2015 12:38
Vastaanottaja: OpenJump develop and 
use<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] More success with OJ and Spatialite datastore

On 16.12.2015 16:01, edgar.sol...@web.de wrote:
> On 16.12.2015 15:57, Rahkonen Jukka (MML) wrote:
>> I have still problem with “Run datastore query”. It does work with the 
>> Spatialite connection for plain SQLite queries “SELECT * from table limit 
>> 20” but Spatialite functions fail and for example “select 
>> ST_Centroid(geometry) from my_table” gives
>>
>> java.lang.Exception: SQL error:null
>>
>>  at 
>> com.vividsolutions.jump.datastore.spatialite.SpatialiteDSConnection.executeAdhocQuery(SpatialiteDSConnection.java:88)
>>
>
> i had that too. but if you change ST_Centroid to the imaginary non-existing 
> ST_CentroidX() function the error becomes "non existing function".
> so spatialite works. the null error must have some other reason.
>

put some more effort into this. r4630+ should now work with the dependency 
jdbc*.jars placed in lib/ext//.

i checked the build and it seems to work properly for sqlite datastore access 
but not for oracle. spatialite 4.4.0RC0 is found when placed in lib/native/x86/ 
on a 32bit windows but when used throws

"
[SQLITE_ERROR] SQL error or missing database (wrong number of arguments to 
function st_envIntersects())
Invalid query: SELECT 
GEOMETRY,OGC_FID,scalerank,featurecla,labelrank,sovereignt,sov_a3,adm0_dif,level,type,admin,adm0_a3,geou_dif,geounit,gu_a3,su_dif,subunit,su_a3,brk_diff,name,name_long,brk_a3,brk_name,brk_group,abbrev,postal,formal_en,formal_fr,note_adm0,note_brk,name_sort,name_alt,mapcolor7,mapcolor8,mapcolor9,mapcolor13,pop_est,gdp_md_est,pop_year,lastcensus,gdp_year,economy,income_grp,wikipedia,fips_10,iso_a2,iso_a3,iso_n3,un_a3,wb_a2,wb_a3,woe_id,adm0_a3_is,adm0_a3_us,adm0_a3_un,adm0_a3_wb,continent,region_un,subregion,region_wb,name_len,long_len,abbrev_len,tiny,homepart
 FROM ne_110m_admin_0_countries WHERE st_envIntersects(GEOMETRY, 
-188,004677,-133,064484,188,004677,126,709614) AND (1)
"

funny enough it worked smoothly in my devel environment w/ spatialite 4.4.0RC0, 
which somewhat invalidates my first guess "version incompatibility w/ latest 
spatialite".

Jukka, Nico : that's your territory, ideas?

..ede

--
___
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


Re: [JPP-Devel] New improvement on Raster Style by Alberto

2015-12-18 Thread Rahkonen Jukka (MML)
Hi,

I haven’t been testing anything but I wonder if it would be good to add a 
version number to the OpenJUMP project file XML. Then it could be possible to 
implement something


-  Open new generation JML with older OJ versions –> stored raster 
styles are not applied but hopefully they are just skipped

-  Show a warning: Project file was saved as JMP version {0} but this 
OJ supports only {1}. Some project features may be lost on opening.

-  Perhaps warn also before overwriting existing JMP file with older 
JML version.

-Jukka Rahkonen-

Alberto De Luca wrote:

Thank you Peppe,

changes are now committed!

Alberto

On 17 December 2015 at 20:52, Giuseppe Aruta 
mailto:giuseppe.ar...@gmail.com>> wrote:
Hi Alberto,
I did a couple of tests, following this schema
a) I opened  a jump project
b) loaded one or two raster and applied different color simbologies
c) saved and closed the project
d) loaded the project again
It seems that everything works fine.
Very nice work
Best regards (from Chile)
Peppe

2015-12-16 11:04 GMT+01:00 mailto:edgar.sol...@web.de>>:
On 15.12.2015 18:54, Alberto De Luca wrote:
> Hi there.
>
> I've added today the capability to save the raster symbology in the OpenJUMP 
> project file. I'd like to ask you a couple of things though:
> - is it too late to add it now? I'm not sure, but I might have read in some 
> posts that the features are frozen by now;

i called  it a soft freeze;).. so nothing made out of stone. generally, as the 
next release is around the corner, we should clean up, translate and do not 
start big reworks.

adding features (alas not perfect) or fixing bugs is totally fine. we can 
easily release a maintenance version when users stumble over show stoppers.

i plan to release during the holidays, but hey, if it gets january because we 
fixed/added some more that's fine for everybody i guess.

so, no problemo.. ede

> - if the answer is no, would someone be so kind (Peppe!!!) to test the 
> feature a bit before I commit the changes? I had to modify a few classes, I'd 
> like to be sure I haven't broken anything... If so, you can find the compiled 
> openjump jar here:
>
>
> https://www.dropbox.com/s/zf1eshbiuucohck/OpenJUMP-0.0.0-rnull.jar?dl=0
>
>
> Cheers
> Alberto
>
> On 19 November 2015 at 21:56, Alberto De Luca 
> mailto:berta...@gmail.com> 
> >> wrote:
>
> Hey Peppe,
>
> thank you. I know having the raster symbologies saved with the project 
> would be nice. I haven't had the chance to work on it yet and honestly I've 
> no idea about how much effort it'd required... I'll have a look at it.
>
> Alberto
>
>
> On Thu, 19 Nov 2015 19:12 Giuseppe Aruta 
> mailto:giuseppe.ar...@gmail.com> 
> >> wrote:
>
> Nice addiction to Raster Style, Alberto!
> There are new color palettes and the possibility to save raster 
> styles as SLD files (I saw the code. I  think I will  add this option also to 
> Export file to raster plugins).
> I was studying your code using RasterColorEditorPanel as a test. I 
> think we can deactivate this class on next OJ realize as this last is a 
> duplicate but yours is better working.
> We also should start to translate before the new OJ realize
> Just a question: do you think it is possible for you to add the 
> capability to save raster styles also to OpenJUMP file project?
> Best regards and thanks
> Peppe
> 
> --
> ___
> 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
>

--
___
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


Re: [JPP-Devel] H2GIS support

2015-12-20 Thread Rahkonen Jukka (MML)
Hi,

I would like to test H2GIS a bit. Can you recommend some easy way for 
installing and getting some sample data?

-Jukka Rahkonen-

Michaël Michaud  wrote:

Hi,

Thanks to your big refactoring of spatialdatabase code, I could easily add 
support to H2GIS database, a pure java dabase with spatial extension.

It seems that the driver detection mechanism does not prevent the connection 
dialog to display drivers in the combobox which are not available. Or did I 
miss something ?

Michaël

--
___
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


Re: [JPP-Devel] H2GIS support

2015-12-20 Thread Rahkonen Jukka (MML)
Hi,

Thanks, works fine. Would it be hard to copy the file chooser from Spatialite 
driver into H2Driver?

-Jukka-



Michaël Michaud wrote:

Hi Jukka,

Just fix H2Driver in r4646 (only H2Server worked before that)

Here is a small step-by-step guide for an embeded database :
- download H2GIS distribution from http://www.h2gis.org/
- start h2gis (with h2gis.bat if you work with windows)
- you get a web app to manage your databases, either embeded or in server mode.
- to create an embeded database, type a url with the name of a database file 
(which does not exist yet)
[cid:image001.png@01D13B68.D3876B40]

To spatialize the database, follow http://www.h2gis.org/docs/dev/quickstart/
CREATE ALIAS IF NOT EXISTS SPATIAL_INIT FOR
"org.h2gis.h2spatialext.CreateSpatialExtension.initSpatialExtension";
CALL SPATIAL_INIT();

To load a shapefile, follow the instrusction on the same page
e.g.
CALL FILE_TABLE('D:/DATA/Shapefile/WaukeeStreets.shp', 'WaukeeStreets');

You have a spatialized database.
In OpenJUMP : copy jar files from h2gis distribution into lib\ext\dbdatastore
(I don't know what is the exact minimum set of jar needed to make it work)

In OpenJUMP, create your connection
[cid:image002.png@01D13B68.D3876B40]

With H2 server, the connection pannel should be like postgis one

Michaël


Le 20/12/2015 11:42, Rahkonen Jukka (MML) a écrit :

Hi,



I would like to test H2GIS a bit. Can you recommend some easy way for 
installing and getting some sample data?



-Jukka Rahkonen-



Michaël Michaud  wrote:



Hi,



Thanks to your big refactoring of spatialdatabase code, I could easily add 
support to H2GIS database, a pure java dabase with spatial extension.



It seems that the driver detection mechanism does not prevent the connection 
dialog to display drivers in the combobox which are not available. Or did I 
miss something ?



Michaël



--

___

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

--

___

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

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


Re: [JPP-Devel] ViewManager plugin

2015-12-22 Thread Rahkonen Jukka (MML)
Here comes the Finnish translation.

-Jukka-

Lähettäjä: Giuseppe Aruta [mailto:giuseppe.ar...@gmail.com]
Lähetetty: 22. joulukuuta 2015 18:05
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] ViewManager plugin

Hi Michael,
here are the Spanish and Italian files
thanks
Peppe


Il 20/Dic/2015 17:40, "Michaël Michaud" 
mailto:m.michael.mich...@orange.fr>> ha scritto:
Hi Peppe,

I just uplaoded a small documentation here :
https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/ViewManager%20PlugIn/

It just works for basic vector styles, vertex style (basic shapes only, no 
bitmap), scale range, color theming and label.
No support for advanced vertex style or decoration for now.

Michaël
Le 19/12/2015 23:19, Giuseppe Aruta a écrit :
I was testing SLD for OpenJUMP in order to save layer symbols together with a 
shapefile (to find a way to share legends/symbols with other GIS). Your project 
seems to me quite interesting. I am waiting for documentation before to 
transalte it in Italian/Spanish.
Thanks
Peppe


2015-12-19 12:47 GMT+01:00 Michaël Michaud 
mailto:m.michael.mich...@orange.fr>>:
Hi,

Just added ViewManager plugin in
https://sourceforge.net/projects/jump-pilot/files/OpenJUMP_plugins/More%20Plugins/ViewManager%20PlugIn/

I'll work on a small documentation soon.
The plugin is an extension I was missing but it is partially redundant
with oj capability to save layer symbolization
in a project or in sld files. Main purpose is to be able to switch
easily from one pre-defined symbolization to another
in a single project.

If other users find it useful, we'll envisage its inclusion in PLUS version.
You'll find language file for translation in the src package if you're
interested to have it in your language.

Michaël

--
___
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


--

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


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


Re: [JPP-Devel] release status

2015-12-22 Thread Rahkonen Jukka (MML)
Hi,

Once you are ready I can test with our server how GetFeatureInfo works through 
https and basic authentication.

-Jukka Rahkonen-

Alberto De Luca wrote:

Edgar,

I know this might be annoying, but I got today a request for adding to the 
FeatureInfoTool the capability to display the results from querying WMS layers. 
I've already implemented it (very basic: a fourth panel in the FeatureInfoTool, 
showing the server response as plain text), but I'd need a day more to test it.

Let me know if you can wait.
Alberto

On 22 December 2015 at 16:27, mailto:edgar.sol...@web.de>> 
wrote:
hey All,

i am getting warmer to put together OJ 1.9 . has anybody any objections? what 
is the status in your fields of interest?

..ede

--
___
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


Re: [JPP-Devel] SVN: [4663] core/trunk

2015-12-23 Thread Rahkonen Jukka (MML)
Hi,

r4663 did not build
http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/OpenJUMP-20151223-r4663.log/download

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: jump-pilot-...@lists.sourceforge.net 
[mailto:jump-pilot-...@lists.sourceforge.net] 
Lähetetty: 23. joulukuuta 2015 18:27
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: [JPP-Devel] SVN: [4663] core/trunk

Revision: 4663
  http://sourceforge.net/p/jump-pilot/code/4663
Author:   bertazza
Date: 2015-12-23 16:26:41 + (Wed, 23 Dec 2015)
Log Message:
---
Info feature tool: added a pane to show WMS info.

Modified Paths:
--
core/trunk/ChangeLog
core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java

core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/FeatureInfoTool.java
core/trunk/src/com/vividsolutions/wms/AbstractParser.java
core/trunk/src/com/vividsolutions/wms/Capabilities.java
core/trunk/src/com/vividsolutions/wms/MapLayer.java
core/trunk/src/com/vividsolutions/wms/ParserWMS1_0.java
core/trunk/src/com/vividsolutions/wms/ParserWMS1_1.java
core/trunk/src/com/vividsolutions/wms/ParserWMS1_3.java
core/trunk/src/com/vividsolutions/wms/WMService.java
core/trunk/src/org/openjump/core/ui/plugin/queries/QueryDialog.java

Added Paths:
---
core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/clean.xsl
core/trunk/src/com/vividsolutions/wms/MapStyle.java

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2015-12-23 15:39:50 UTC (rev 4662)
+++ core/trunk/ChangeLog2015-12-23 16:26:41 UTC (rev 4663)
@@ -3,6 +3,8 @@
 # 2. make sure that lines break at 80 chars for constricted display situations
 #< 80 chars 
-->#
 
+2015-12-23 bertazza
+  * Info feature tool: added a pane to show WMS info.
 
 <--- Changes.txt updated 'til here
 2015-12-21 bertazza

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2015-12-23 15:39:50 UTC (rev 4662)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2015-12-23 16:26:41 UTC (rev 4663)
@@ -61,6 +61,8 @@
 import com.vividsolutions.jump.workbench.ui.images.IconLoader;
 import com.vividsolutions.jump.workbench.ui.plugin.PersistentBlackboardPlugIn;
 import com.vividsolutions.jump.workbench.ui.plugin.ViewAttributesPlugIn;
+import java.io.IOException;
+import javax.swing.JEditorPane;
 import javax.swing.JScrollPane;
 import javax.swing.JTable;
 import javax.swing.table.DefaultTableModel;
@@ -99,16 +101,18 @@
 private GeometryInfoTab geometryInfoTab;
 private JTabbedPane tabbedPane = new JTabbedPane();
 private RasterInfoTab rasterInfoTab;
+private WMSInfoTab wmsInfoTab;
 private WorkbenchFrame workbenchFrame;
 private static ImageIcon ICON = IconLoader.icon("information_16x16.png");
 
 public InfoFrame(
 WorkbenchContext workbenchContext,
 LayerManagerProxy layerManagerProxy,
-final TaskFrame taskFrame) {
+final TaskFrame taskFrame) throws IOException {
blackboard = PersistentBlackboardPlugIn.get(workbenchContext);
 geometryInfoTab = new GeometryInfoTab(model, workbenchContext);
 rasterInfoTab = new RasterInfoTab(null, null);
+wmsInfoTab = new WMSInfoTab();
 //Keep my own copy of LayerManager, because it will be nulled in 
TaskFrame
 //when TaskFrame closes (it may in fact already be closed, which is why
 //a LayerManagerProxy must be passed in too). But I have to @@ -150,6 
+154,7 @@
 tabbedPane.addTab("", IconLoader.icon("Table.gif"), attributeTab, 
TABLE_VIEW);
 tabbedPane.addTab("", IconLoader.icon("Paper.gif"), geometryInfoTab, 
HTML_VIEW);
 tabbedPane.addTab("R", null, rasterInfoTab, "Raster");
+tabbedPane.addTab("WMS", null, wmsInfoTab, "WMS");
 updateTitle(taskFrame.getTask().getName());
 taskFrame.getTask().add(new Task.NameListener() {
 public void taskNameChanged(String name) { @@ -274,6 +279,10 @@
 rasterInfoTab.setRasterValues(layerNames, cellValues);
 }
 
+public void setWmsInfo(String string) {
+wmsInfoTab.setWmsInfoText(string);
+}
+
 @Override
 public JFrame getFrame() {
   // our frame has to be all proxies InfoFrame is @@ -361,5 +370,32 @@
 }
 
 }
+   
+protected class WMSInfoTab extends JPanel {
+
+private final JEditorPane jEditorPane;
+
+p

Re: [JPP-Devel] SVN: [4666] core/trunk

2015-12-24 Thread Rahkonen Jukka (MML)
Hi,

R4666 did not build

http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/OpenJUMP-20151224-r4666.log/download

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: jump-pilot-...@lists.sourceforge.net 
[mailto:jump-pilot-...@lists.sourceforge.net] 
Lähetetty: 24. joulukuuta 2015 14:34
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: [JPP-Devel] SVN: [4666] core/trunk

Revision: 4666
  http://sourceforge.net/p/jump-pilot/code/4666
Author:   bertazza
Date: 2015-12-24 12:33:54 + (Thu, 24 Dec 2015)
Log Message:
---
Removed IOExpcetion throw from TaskFrame

Modified Paths:
--
core/trunk/ChangeLog
core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java
core/trunk/src/com/vividsolutions/wms/AbstractParser.java
core/trunk/src/com/vividsolutions/wms/Parser.java

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/ChangeLog2015-12-24 12:33:54 UTC (rev 4666)
@@ -4,6 +4,9 @@
 #< 80 chars 
-->#
 
 2015-12-24 bertazza
+  * Removed IOExpcetion throw from TaskFrame
+
+2015-12-24 bertazza
   * Info feature tool for WMS: info shown only for visible layers, added
 &FEATURE_COUNT=10 parameter, and changed method to retrieve url as
 suggested by Jukka (should now support basic authentication).

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2015-12-24 12:33:54 UTC (rev 4666)
@@ -108,7 +108,7 @@
 public InfoFrame(
 WorkbenchContext workbenchContext,
 LayerManagerProxy layerManagerProxy,
-final TaskFrame taskFrame) throws IOException {
+final TaskFrame taskFrame) {
blackboard = PersistentBlackboardPlugIn.get(workbenchContext);
 geometryInfoTab = new GeometryInfoTab(model, workbenchContext);
 rasterInfoTab = new RasterInfoTab(null, null); @@ -375,7 +375,7 @@
 
 private final JEditorPane jEditorPane;
 
-public WMSInfoTab() throws IOException {
+public WMSInfoTab() {
 
 setLayout(new BorderLayout());
 

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java   
2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java   
2015-12-24 12:33:54 UTC (rev 4666)
@@ -45,7 +45,7 @@
  * positions InfoFrames differently depending on whether or not they are 
primary.
  */
 public class PrimaryInfoFrame extends InfoFrame {
-public PrimaryInfoFrame(WorkbenchContext workbenchContext, 
LayerManagerProxy layerManagerProxy, TaskFrame taskFrame) throws IOException {
+public PrimaryInfoFrame(WorkbenchContext workbenchContext, 
+ LayerManagerProxy layerManagerProxy, TaskFrame taskFrame) {
 super(workbenchContext, layerManagerProxy, taskFrame);   
 }
 }

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java  
2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java  
2015-12-24 12:33:54 UTC (rev 4666)
@@ -224,7 +224,7 @@
 return task.getLayerManager();
 }
 
-public InfoFrame getInfoFrame() throws IOException {
+public InfoFrame getInfoFrame() {
 if (infoFrame == null || infoFrame.isClosed()) {
 infoFrame = new PrimaryInfoFrame(workbenchContext, this, this);
 }

Modified: core/trunk/src/com/vividsolutions/wms/AbstractParser.java
===
--- core/trunk/src/com/vividsolutions/wms/AbstractParser.java   2015-12-24 
12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/wms/AbstractParser.java   2015-12-24 
12:33:54 UTC (rev 4666)
@@ -220,20 +220,20 @@
 boundingBoxList.add ( new BoundingBox("Geographics", 
geographicBBox.getEnvelope()) );
 } else if( n.getNodeName().equals( "Layer" ) ) {
 subLayers.add( wmsLayerFromNode( n ) );
-} else if (n.getNodeName().equals("Style")) { //$NON-NLS-1$
-String styleName = ""; //$NON-NLS-1$
-  

Re: [JPP-Devel] SVN: [4665] core/trunk

2015-12-24 Thread Rahkonen Jukka (MML)
Hi,

It looks that GetMap is not removed from the GetFeatureInfo request which makes 
at least Geoserver to fail

Single value expected for request parameter request but instead 
found: [GetMap, GetFeatureInfo]

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: jump-pilot-...@lists.sourceforge.net 
[mailto:jump-pilot-...@lists.sourceforge.net] 
Lähetetty: 24. joulukuuta 2015 14:03
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: [JPP-Devel] SVN: [4665] core/trunk

Revision: 4665
  http://sourceforge.net/p/jump-pilot/code/4665
Author:   bertazza
Date: 2015-12-24 12:03:26 + (Thu, 24 Dec 2015)
Log Message:
---
Info feature tool for WMS: info shown only for visible layers, added 
&FEATURE_COUNT=10 parameter, and changed method to retrieve url as suggested by 
Jukka (should now support basic authentication).

Modified Paths:
--
core/trunk/ChangeLog

core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/FeatureInfoTool.java

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2015-12-23 23:13:38 UTC (rev 4664)
+++ core/trunk/ChangeLog2015-12-24 12:03:26 UTC (rev 4665)
@@ -4,6 +4,11 @@
 #< 80 chars 
-->#
 
 2015-12-24 bertazza
+  * Info feature tool for WMS: info shown only for visible layers, added
+&FEATURE_COUNT=10 parameter, and changed method to retrieve url as
+suggested by Jukka (should now support basic authentication).
+
+2015-12-24 bertazza
   * Fixed broken 4663 commit
 
 2015-12-23 bertazza

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/FeatureInfoTool.java
===
--- 
core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/FeatureInfoTool.java
 2015-12-23 23:13:38 UTC (rev 4664)
+++ 
core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/FeatureInfoTool.java
 2015-12-24 12:03:26 UTC (rev 4665)
@@ -113,11 +113,20 @@
 
 // WMS
 List wmsLay_l = 
getWorkbench().getContext().getLayerManager().getLayerables(WMSLayer.class);
+//Iterator iter = 
getWorkbench().getContext().getLayerNamePanel().selectedNodes(WMSLayer.class).iterator();
+
 String response = "";
-for(Layerable lay : wmsLay_l) {
+for(Layerable lay : wmsLay_l) {   
+
+// We only want visible layers
 WMSLayer wmsLayer = (WMSLayer) lay;
+if(!wmsLayer.isVisible()) {
+continue;
+}
 
-String featInfoUrl = 
wmsLayer.getService().getCapabilities().getFeatureInfoURL(); 
+//String featInfoUrl = 
wmsLayer.getService().getCapabilities().getFeatureInfoURL();
+String featInfoUrl = 
wmsLayer.createRequest(getWorkbench().getContext().getLayerViewPanel()).getURL().toString();
+
 String names = getWmsLayeNames(wmsLayer);
 
 Point2D point = getPanel().getViewport().toViewPoint(coord);
@@ -128,6 +137,7 @@
 } else {
 featInfoUrl += "?";
 }
+
 String version = wmsLayer.getWmsVersion();
 if (WMService.WMS_1_0_0.equals(version)) {
 featInfoUrl += "REQUEST=feature_info&WMTVER=1.0.0";
@@ -162,6 +172,8 @@
 }
 }
 
+featInfoUrl = featInfoUrl.concat("&FEATURE_COUNT=10 ");
+
 URL url = stripXhtmlTags(featInfoUrl);
 
 String newLine = System.getProperty("line.separator");


--
___
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


Re: [JPP-Devel] SVN: [4666] core/trunk

2015-12-24 Thread Rahkonen Jukka (MML)
Hi,

I do not build myself, the link above contains the error from the Ede’s 
snapshot build system.

-Jukka-

Lähettäjä: Alberto De Luca [mailto:berta...@gmail.com]
Lähetetty: 24. joulukuuta 2015 15:34
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] SVN: [4666] core/trunk

Jukka, what error do you get? It builds for me...

Alberto

On 24 December 2015 at 13:58, Rahkonen Jukka (MML) 
mailto:jukka.rahko...@maanmittauslaitos.fi>>
 wrote:
Hi,

R4666 did not build

http://sourceforge.net/projects/jump-pilot/files/OpenJUMP_snapshots/OpenJUMP-20151224-r4666.log/download

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: 
jump-pilot-...@lists.sourceforge.net<mailto:jump-pilot-...@lists.sourceforge.net>
 
[mailto:jump-pilot-...@lists.sourceforge.net<mailto:jump-pilot-...@lists.sourceforge.net>]
Lähetetty: 24. joulukuuta 2015 14:34
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: [JPP-Devel] SVN: [4666] core/trunk

Revision: 4666
  http://sourceforge.net/p/jump-pilot/code/4666
Author:   bertazza
Date: 2015-12-24 12:33:54 + (Thu, 24 Dec 2015)
Log Message:
---
Removed IOExpcetion throw from TaskFrame

Modified Paths:
--
core/trunk/ChangeLog
core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java
core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java
core/trunk/src/com/vividsolutions/wms/AbstractParser.java
core/trunk/src/com/vividsolutions/wms/Parser.java

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/ChangeLog2015-12-24 12:33:54 UTC (rev 4666)
@@ -4,6 +4,9 @@
 #< 80 chars 
-->#

 2015-12-24 bertazza
+  * Removed IOExpcetion throw from TaskFrame
+
+2015-12-24 bertazza
   * Info feature tool for WMS: info shown only for visible layers, added
 &FEATURE_COUNT=10 parameter, and changed method to retrieve url as
 suggested by Jukka (should now support basic authentication).

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/InfoFrame.java  
2015-12-24 12:33:54 UTC (rev 4666)
@@ -108,7 +108,7 @@
 public InfoFrame(
 WorkbenchContext workbenchContext,
 LayerManagerProxy layerManagerProxy,
-final TaskFrame taskFrame) throws IOException {
+final TaskFrame taskFrame) {
blackboard = PersistentBlackboardPlugIn.get(workbenchContext);
 geometryInfoTab = new GeometryInfoTab(model, workbenchContext);
 rasterInfoTab = new RasterInfoTab(null, null); @@ -375,7 +375,7 @@

 private final JEditorPane jEditorPane;

-public WMSInfoTab() throws IOException {
+public WMSInfoTab() {

 setLayout(new BorderLayout());


Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java   
2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/PrimaryInfoFrame.java   
2015-12-24 12:33:54 UTC (rev 4666)
@@ -45,7 +45,7 @@
  * positions InfoFrames differently depending on whether or not they are 
primary.
  */
 public class PrimaryInfoFrame extends InfoFrame {
-public PrimaryInfoFrame(WorkbenchContext workbenchContext, 
LayerManagerProxy layerManagerProxy, TaskFrame taskFrame) throws IOException {
+public PrimaryInfoFrame(WorkbenchContext workbenchContext,
+ LayerManagerProxy layerManagerProxy, TaskFrame taskFrame) {
 super(workbenchContext, layerManagerProxy, taskFrame);
 }
 }

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java  
2015-12-24 12:03:26 UTC (rev 4665)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/TaskFrame.java  
2015-12-24 12:33:54 UTC (rev 4666)
@@ -224,7 +224,7 @@
 return task.getLayerManager();
 }

-public InfoFrame getInfoFrame() throws IOException {
+public InfoFrame getInfoFrame() {
 if (infoFrame == null || infoFrame.isClosed()) {
 infoFrame = new PrimaryInfoFrame(workbenchContext, this, this);
 }

Modified: core/trunk/src/com/vividsolutions/wms/AbstractParser.java
===
--- core/trunk/src/com/vividsolutions

[JPP-Devel] Two issues with GetFeatureInfo in r4720

2015-12-29 Thread Rahkonen Jukka (MML)
Hi,

I was testing  GetFeatureInfo with OpenJUMP r4720 and found these two issues:


1)  Basic authentication URL is only almost right. Username:password are 
taken but they are added in front of the query_string, not in front of the 
basic url. Here below is how OJ is building the request now:

java.io.IOException: Server returned HTTP response code: 401 for URL: 
https://my.server.fi/cgi-bin/wms?username:password&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.3.0&QUERY_LAYERS=valuma-alueet&LAYERS=valuma-alueet&CRS=EPSG:3067&I=407&J=294&WIDTH=993&HEIGHT=807&BBOX=412522.8466726551,6983042.331505576,554481.5957808765,7098410.620055762&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&FEATURE_COUNT=10
It should be like this instead:
https://username:password@/my.server.fi/cgi-bin/wms? 
&REQUEST=GetFeatureInfo&SERVICE=WMS&...


2)  GetFeatureInfo does not take into account that in WMS 1.3.0 coordinate 
axis must follow the order that is defined for each EPSG code. For example for 
EPSG:4326 the BBOX must be in latitude-longitude order. You can test this with 
the "USA population" layer from the demo.opengeo.org server that is included in 
the list of default services.

This is how OpenJUMP is building the request:

http://demo.opengeo.org/geoserver/ows?SERVICE=WMS&&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.3.0&QUERY_LAYERS=topp%3Astates&LAYERS=topp%3Astates&CRS=EPSG:4326&I=337&J=377&WIDTH=993&HEIGHT=807&;
BBOX=-125.964082115,12.690989551555894,-65.73715,61.63671244844411&STYLES=
&FORMAT=image/png&INFO_FORMAT=text/plain&FEATURE_COUNT=10

This is how it should be:
http://demo.opengeo.org/geoserver/ows?SERVICE=WMS&&REQUEST=GetFeatureInfo&SERVICE=WMS&VERSION=1.3.0&QUERY_LAYERS=topp%3Astates&LAYERS=topp%3Astates&CRS=EPSG:4326&I=337&J=377&WIDTH=993&HEIGHT=807&BBOX=12.690989551555894,-125.964082115,61.63671244844411,-65.73715&STYLES=&FORMAT=image/png&INFO_FORMAT=text/plain&FEATURE_COUNT=10

GetMap works correctly with WMS 1.3.0 (Michaël should be able to tell where it 
finds the correct axis orders) and the BeanTools "Display_WMS_URL" is returning 
the right BBOX.

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


[JPP-Devel] H2GIS missing from dbdatastore in r4720

2015-12-29 Thread Rahkonen Jukka (MML)
Hi,

I suppose that H2GIS should be included in both embedded/file db and 
server/client variants by default but now they seem to be missing.

There is probably some reason for having "MariaDB" and  "MySQL", but also 
"MySQL (MariaDB)" drivers.

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


Re: [JPP-Devel] H2GIS missing from dbdatastore in r4720

2015-12-29 Thread Rahkonen Jukka (MML)
It says:
H2GIS Datastore Extension rev.4720(29.12.2015) -> missing-dependency-jars 
h2-.jar

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 29. joulukuuta 2015 16:35
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] H2GIS missing from dbdatastore in r4720

On 29.12.2015 14:58, Rahkonen Jukka (MML) wrote:
> Hi,
> 
> I suppose that H2GIS should be included in both embedded/file db and 
> server/client variants by default but now they seem to be missing.

what does it say under Help->About->Extensions in the line of the H2GIS 
extension?

> There is probably some reason for having "MariaDB" and  "MySQL", but also 
> "MySQL (MariaDB)" drivers.

yes. mariadb jdbc supports both, but just in case the oracle mysql jdbc was 
added as well.

..ede

--
___
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


Re: [JPP-Devel] H2GIS missing from dbdatastore in r4720

2015-12-29 Thread Rahkonen Jukka (MML)
All right, so we do not ship H2GIS stuff with OJ Plus but users must install 
jars by themselves, no problem.

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi] 
Lähetetty: 29. joulukuuta 2015 16:39
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] H2GIS missing from dbdatastore in r4720

It says:
H2GIS Datastore Extension rev.4720(29.12.2015) -> missing-dependency-jars 
h2-.jar

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 29. joulukuuta 2015 16:35
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] H2GIS missing from dbdatastore in r4720

On 29.12.2015 14:58, Rahkonen Jukka (MML) wrote:
> Hi,
> 
> I suppose that H2GIS should be included in both embedded/file db and 
> server/client variants by default but now they seem to be missing.

what does it say under Help->About->Extensions in the line of the H2GIS 
extension?

> There is probably some reason for having "MariaDB" and  "MySQL", but also 
> "MySQL (MariaDB)" drivers.

yes. mariadb jdbc supports both, but just in case the oracle mysql jdbc was 
added as well.

..ede

--
___
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

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


Re: [JPP-Devel] Check if a Geometry collection (or a Feature Schema) is made by a single geometry type

2015-12-30 Thread Rahkonen Jukka (MML)
Hi,

You found a use case for in-memory H2GIS layer that Michaël was dreaming about 
a few days ago. Then you could use SQL somehowl like  “SELECT DISTINCT 
geometry_type(the_geom)…”

Meanwhile you could study what Edit – Extract – Extract layers by geometry type 
does. Now it already sends a message if there is nothing to split, perhaps you 
could modify it to tell if there IS something to split, but disable the 
creation of new layers.

-Jukka Rahkonen-

Lähettäjä: Giuseppe Aruta [mailto:giuseppe.ar...@gmail.com]
Lähetetty: 30. joulukuuta 2015 20:57
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] Check if a Geometry collection (or a Feature Schema) is 
made by a single geometry type


Thanks for the answers.
I want to develop a way  to check if a selected vector layer has different 
geometries or if it is if one geometry type.
I checked on OJ code but I didn' t find what I needed.
I will study an alternative way.
Best regards
Peppe
On Dec 29, 2015 6:46 PM, mailto:edgar.sol...@web.de>> 
wrote:
On 29.12.2015 22:04, Giuseppe Aruta wrote:
> Hi,
> just a question:
> does OJ has a mathod to check if a Geometry Collection of items is made by
> a single geometry type (points, linestrings, etc) or not?
> best regards and happy new year

afaik when OJ loads data and is aware that there is only one geom type in a 
collection it creates the Multi* variant.

apart from that you must probably loop over all contained geoms and detect 
yourself. a prexisting code would probably do nothing else.

..ede

--
___
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


Re: [JPP-Devel] SVN: [4728] core/trunk/src/org/openjump/util/UriUtil.java

2015-12-30 Thread Rahkonen Jukka (MML)
Hi,

Does automatic build run? I have been waiting for a snapshot a little bit 
longer than usually.

-Jukka-



-Alkuperäinen viesti-
Lähettäjä: jump-pilot-...@lists.sourceforge.net 
[mailto:jump-pilot-...@lists.sourceforge.net] 
Lähetetty: 30. joulukuuta 2015 20:05
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: [JPP-Devel] SVN: [4728] core/trunk/src/org/openjump/util/UriUtil.java

Revision: 4728
  http://sourceforge.net/p/jump-pilot/code/4728
Author:   edso
Date: 2015-12-30 18:05:07 + (Wed, 30 Dec 2015)
Log Message:
---
extended support for urls, added methods like getHost(), getPort() etc.

Modified Paths:
--
core/trunk/src/org/openjump/util/UriUtil.java

Modified: core/trunk/src/org/openjump/util/UriUtil.java
===
--- core/trunk/src/org/openjump/util/UriUtil.java   2015-12-30 17:45:41 UTC 
(rev 4727)
+++ core/trunk/src/org/openjump/util/UriUtil.java   2015-12-30 18:05:07 UTC 
(rev 4728)
@@ -189,7 +189,7 @@
 }
   }
   
-  final static String regexp = "^([^:/]+://)(([^@:/]*)(\\:([^@:/]*))?@)?(.*)$";
+  final static String regexp = 
+ "^([^:/]+://)(?:(([^@:/]*)(?:\\:([^@:/]*))?)@)?((.*?)(?::(\\d+))?(/.*)
+ )$";
   
   public static boolean isURL( String in ){
 Pattern p = Pattern.compile(regexp); @@ -205,18 +205,10 @@
   }
   
   public static String urlStripAuth( String url ) {
-String clean = isURL(url) ? url.replaceFirst(regexp, "$1$6") : url;
+String clean = isURL(url) ? url.replaceFirst(regexp, "$1$5") : url;
 return clean;
   }
   
-  public static String urlStripPassword( String url ) {
-String user = urlGetUser(url);
-if (!user.isEmpty())
-  user += "@";
-String clean = isURL(url) ? url.replaceFirst(regexp, "$1"+user+"$6") : url;
-return clean;
-  }
-  
   public static String urlGetUser(String url) {
 if (isURL(url))
   return urlDecode(url.replaceFirst(regexp, "$3")); @@ -225,9 +217,47 @@
 
   public static String urlGetPassword(String url) {
 if (isURL(url))
-  return urlDecode(url.replaceFirst(regexp, "$5"));
+  return urlDecode(url.replaceFirst(regexp, "$4"));
 return "";
   }
+
+  /**
+   * userinfo is the prepared urlencoded string before the @ eg. user:pass
+   * 
+   * @param url
+   * @return
+   */
+  public static String urlGetUserInfo(String url) {
+if (isURL(url))
+  return url.replaceFirst(regexp, "$2");
+return "";
+  }
+
+  public static String urlGetHost(String url) {
+if (isURL(url))
+  return urlDecode(url.replaceFirst(regexp, "$6"));
+return "";
+  }
+
+  public static String urlGetPort(String url) {
+if (isURL(url))
+  return urlDecode(url.replaceFirst(regexp, "$7"));
+return "";
+  }
+
+  public static String urlGetPath(String url) {
+if (isURL(url))
+  return urlDecode(url.replaceFirst(regexp, "$8"));
+return "";
+  }
+
+  public static String urlStripPassword( String url ) {
+String user = urlGetUser(url);
+if (!user.isEmpty())
+  user += "@";
+String clean = isURL(url) ? url.replaceFirst(regexp, "$1"+user+"$5") : url;
+return clean;
+  }
   
   public static String urlAddCredentials(String url, String user, String pass) 
{
 if (!isURL(url))
@@ -239,9 +269,21 @@
   if (!urlPass.isEmpty())
 urlCreds += ":" + urlPass;
 }
-if (!urlCreds.isEmpty())
-  urlCreds = urlCreds + "@";
 
-return url.replaceFirst(regexp, "$1" + urlCreds + "$6");
+return urlAddUserInfo(url, urlCreds);
   }
+
+  /**
+   * userinfo is the prepared urlencoded string before the @ eg. user:pass
+   * 
+   * @param url
+   * @param userinfo
+   * @return
+   */
+  public static String urlAddUserInfo(String url, String userinfo) {
+if (!isURL(url))
+  return url;
+
+return url.replaceFirst(regexp, "$1" + userinfo + "@$5");  }
 }


--
___
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


Re: [JPP-Devel] Two issues with GetFeatureInfo in r4720

2015-12-31 Thread Rahkonen Jukka (MML)
Hi,

GetFeatureInfo works now with our server through https and basic 
authentication. I checked also that the GetLegendGraphics request by Peppe 
works as well. Thanks.

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 30. joulukuuta 2015 20:11
Vastaanottaja: OpenJump develop and use; Rahkonen Jukka (MML)
Aihe: Re: [JPP-Devel] Two issues with GetFeatureInfo in r4720

Jukka,

can you please test if wms info w/ auth works properly now?

thx ..ede

On 30.12.2015 14:01, edgar.sol...@web.de wrote:
> let me see if i can quickly hack something reusing more wms code to  fix the 
> auth.
> 
> ..ede
> 
> On 29.12.2015 14:51, Rahkonen Jukka (MML) wrote:
>> Hi,
>>
>> I was testing  GetFeatureInfo with OpenJUMP r4720 and found these two issues:
>>
>>
>> 1)  Basic authentication URL is only almost right. Username:password are 
>> taken but they are added in front of the query_string, not in front of the 
>> basic url. Here below is how OJ is building the request now:
>>
>> java.io.IOException: Server returned HTTP response code: 401 for URL: 
>> https://my.server.fi/cgi-bin/wms?username:password&REQUEST=GetFeature
>> Info&SERVICE=WMS&VERSION=1.3.0&QUERY_LAYERS=valuma-alueet&LAYERS=valu
>> ma-alueet&CRS=EPSG:3067&I=407&J=294&WIDTH=993&HEIGHT=807&BBOX=412522.
>> 8466726551,6983042.331505576,554481.5957808765,7098410.620055762&STYL
>> ES=&FORMAT=image/png&INFO_FORMAT=text/plain&FEATURE_COUNT=10
>> It should be like this instead:
>> https://username:password@/my.server.fi/cgi-bin/wms? 
>> &REQUEST=GetFeatureInfo&SERVICE=WMS&...
>>
>>
>> 2)  GetFeatureInfo does not take into account that in WMS 1.3.0 
>> coordinate axis must follow the order that is defined for each EPSG code. 
>> For example for EPSG:4326 the BBOX must be in latitude-longitude order. You 
>> can test this with the "USA population" layer from the demo.opengeo.org 
>> server that is included in the list of default services.
>>
>> This is how OpenJUMP is building the request:
>>
>> http://demo.opengeo.org/geoserver/ows?SERVICE=WMS&&REQUEST=GetFeature
>> Info&SERVICE=WMS&VERSION=1.3.0&QUERY_LAYERS=topp%3Astates&LAYERS=topp
>> %3Astates&CRS=EPSG:4326&I=337&J=377&WIDTH=993&HEIGHT=807&
>> BBOX=-125.964082115,12.690989551555894,-65.73715,61.6367124484441
>> 1&STYLES=
>> &FORMAT=image/png&INFO_FORMAT=text/plain&FEATURE_COUNT=10
>>
>> This is how it should be:
>> http://demo.opengeo.org/geoserver/ows?SERVICE=WMS&&REQUEST=GetFeature
>> Info&SERVICE=WMS&VERSION=1.3.0&QUERY_LAYERS=topp%3Astates&LAYERS=topp
>> %3Astates&CRS=EPSG:4326&I=337&J=377&WIDTH=993&HEIGHT=807&BBOX=12.6909
>> 89551555894,-125.964082115,61.63671244844411,-65.73715&STYLES=&FO
>> RMAT=image/png&INFO_FORMAT=text/plain&FEATURE_COUNT=10
>>
>> GetMap works correctly with WMS 1.3.0 (Michaël should be able to tell where 
>> it finds the correct axis orders) and the BeanTools "Display_WMS_URL" is 
>> returning the right BBOX.
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> -
>> -
>>
>>
>>
>> ___
>> 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
> 

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


Re: [JPP-Devel] sql security

2016-01-01 Thread Rahkonen Jukka (MML)
Hi,

As far as I can imagine the security risk can only become actual if OpenJUMP is 
used in a multiuser environment where some project administrator is creating 
JUMP project files and/or workbench-state.xml file and deliver them for the 
operators. In that case users do not necessarily know the password that 
OpenJUMP is using for accessing the database because it is not saved in plain 
text into those files.


Password
$.


If users do know the password they can do anything that is possible for that 
user account directly with PSQL and patching OpenJUMP would not make the whole 
system much more safe.

When it comes to WFS, it does open SELECT access and if service provider allow 
WFS-T, also UPDATE and DELETE access to the feature types in the service. It is 
relatively easy to build heavy WFS filters which could be used for Denial of 
service attacks but if belongs to WFS 1.0 and 1.1.0 versions and it is hard to 
handle the risk on the client side. In WFS 2.0 it is possible to configure the 
service so that free ad hoc queries are not allowed and offer only Stored 
Queries for the users.

I do not believe that anybody is running WFS-T in production systems without 
some authentication and authorization. WFS standard does not tell how to do 
that so everybody is using more or less tailor made systems for that.

With WMS I suppose that nasty users could really do DoS attacks with suitably 
formatted SLD files. OpenJUMP does not have any easy way for attaching SLD 
files into WMS requests and attackers would most probably use some other tool 
instead.

I think there is no need to try to make WMS of WFS safer. With databases it 
might be useful to validate the SQL requests somehow but somehow I feel that 
most OpenJUMP users who use databases also know usernames and passwords.  
Easiest way for improving security could actually be to make it possible to 
save the database connections into project files and workbench-status.xml 
without passwords and let users optionally feed password manually when they 
reconnect.

-Jukka Rahkonen- 

Michaël Michaud wrote:

Hi Ede,

You're right, our database code is probably not safe.
It is quite easy to inject DDL instructions like create, drop or truncate both 
with FilterQuery and with AdhocQuery (it throws an error, but execute the DDL 
first ;-().

It is probably not an easy task to make it more safe and to keep the current 
flexibility. For me, flexibility is more important than security, but of 
course, it depends on the usage.

Any idea how to make the code more robust without sacrifying flexibility ?
Seems to me that using prepared statements and escaping would not apply well to 
AdhocQuery.
Maybe another solution would be to parse the query with a sqlparser first and 
remove anything containing something else than a select.

Michaël

Le 31/12/2015 17:06, edgar.sol...@web.de a écrit :
> to all concerned especially Nico, Mike, Jukka...
>
> when working on the db datastores i became aware that there are
> - no prepared statements
> - no sql escaping of parameters at all .
>
> coming from a background of web development and being generally security 
> aware that troubles me somewhat. give the possibility that users might open 
> foreign project/data files, containing arbitrary strings (eg. col names) this 
> looks like it could be misused.
> afaics, just because we only read exception being postgres, does not mean 
> that the connection wouldn't happily write something when the query string 
> suggests so.
>
> what is your standpoint on that?
>
> similar issues are probably to be found in WMS/WFS, where i also didn't see 
> much escaping when building queries.
>
> ..ede
>
> --
>  ___
> 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

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


Re: [JPP-Devel] wfs enhancements

2016-01-05 Thread Rahkonen Jukka (MML)
Hi,

With WFS 1.1.0 you can test what is the server side limit for maximum number of 
features. Just remember
1) use version=1.1.0
2) use plain &request=GetFeature without any filters, maxFeatures/count, or BBOX
3) use &resulttype=hits

http://ows.terrestris.de/geoserver/osm/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=osm_waterways&resulttype=hits

Result:
http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"/>

Your conclusion was right and that server returns 1 million features at maximum.

-Jukka Rahkonen-


edgar soldin wrote:

Jukka,

with an 8core 20GB box i can receive 1Mio. items from osm_waterways, seems they 
limited the layer to that count. can you confirm?

..ede

On 02.01.2016 17:33, edgar.sol...@web.de wrote:
> hey Jukka,
> 
> just committed r4737 . if that builds could you please check
> 
> 1. wfs auth is working properly (looked like it didn't work before, 
> did it?)
> 
> 2. it should be faster now, can you compare an old and r4737 against each 
> other?
> 
> 3. what is the max. item count you can download on a high powered machine 
> (lot's of ram, x64 java, plenty of cores). on my laptop (2core,Xmx6GB) it was 
> roughly 500.000 from http://ows.terrestris.de/geoserver/osm/wfs 
> 'osm_waterways' dataset.
> limiting factor seems to be the deegree2 parser, which seems to be 
> multithreaded but also memory leaky. it get's cleaned up after it is finished 
> though.
> 
> thx ..ede
> 
> 
>  Forwarded Message 
> Subject: [JPP-Devel] SVN: [4737] core/trunk
> Date: Sat,  2 Jan 2016 16:19:28 +
> From: jump-pilot-...@lists.sourceforge.net
> Reply-To: OpenJump develop and use 
> 
> To: jump-pilot-devel@lists.sourceforge.net
> 
> Revision: 4737
>   http://sourceforge.net/p/jump-pilot/code/4737
> Author:   edso
> Date: 2016-01-02 16:19:28 + (Sat, 02 Jan 2016)
> Log Message:
> ---
> - finetuned wfs httpclient access, unified proxy and auth handling
> - wfs request is now buffered to disk for optimal performance
> - wfs item count is now limited by RAM only
> NOTE: we should probably switch to deegree3+ instead of patching 
> things up
> 
> ...
> 
> --
>  ___
> 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

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


Re: [JPP-Devel] wfs enhancements

2016-01-08 Thread Rahkonen Jukka (MML)
Hi Ede,

I made a test about 

> 1. wfs auth is working properly (looked like it didn't work before, did it?)

It did not work before but works now. I could only test with a demo WFS service 
I made with Mapserver. The plugin can read data through proxy, https, and basic 
authentication up till getting GML data into the "response" tab. Making an 
OpenJUMP layer fails, though, with this short error message:

java.lang.NullPointerException
at 
de.latlon.deejump.wfs.data.JUMPFeatureFactory.createFromDeegreeFC(JUMPFeatureFactory.java:415)
at de.latlon.deejump.wfs.plugin.WFSPlugIn.run(WFSPlugIn.java:184)
at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
at java.lang.Thread.run(Unknown Source)

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 2. tammikuuta 2016 18:33
Vastaanottaja: OpenJump develop and use
Aihe: [JPP-Devel] wfs enhancements

hey Jukka,

just committed r4737 . if that builds could you please check

1. wfs auth is working properly (looked like it didn't work before, did it?)

2. it should be faster now, can you compare an old and r4737 against each other?

3. what is the max. item count you can download on a high powered machine 
(lot's of ram, x64 java, plenty of cores). on my laptop (2core,Xmx6GB) it was 
roughly 500.000 from http://ows.terrestris.de/geoserver/osm/wfs 'osm_waterways' 
dataset.
limiting factor seems to be the deegree2 parser, which seems to be 
multithreaded but also memory leaky. it get's cleaned up after it is finished 
though.

thx ..ede


 Forwarded Message 
Subject: [JPP-Devel] SVN: [4737] core/trunk
Date: Sat,  2 Jan 2016 16:19:28 +
From: jump-pilot-...@lists.sourceforge.net
Reply-To: OpenJump develop and use 
To: jump-pilot-devel@lists.sourceforge.net

Revision: 4737
  http://sourceforge.net/p/jump-pilot/code/4737
Author:   edso
Date: 2016-01-02 16:19:28 + (Sat, 02 Jan 2016)
Log Message:
---
- finetuned wfs httpclient access, unified proxy and auth handling
- wfs request is now buffered to disk for optimal performance
- wfs item count is now limited by RAM only
NOTE: we should probably switch to deegree3+ instead of patching things up

...

--
___
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


Re: [JPP-Devel] wfs enhancements

2016-01-08 Thread Rahkonen Jukka (MML)
Hi,

Yes, ows.terrestris.de works for me.

Here is an open Mapserver WFS that gives the same error than our own Mapserver: 
http://demo.mapserver.org/cgi-bin/wfs

I created the request and copy-pasted the response from the "cites" layer into 
a file and checked the file with GDAL. It found all the data so at least for 
GDAL the GML is valid.

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 8. tammikuuta 2016 14:07
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] wfs enhancements

does http://ows.terrestris.de/geoserver/osm/wfs work for you?

..ede

On 08.01.2016 12:54, edgar.sol...@web.de wrote:
> hmm.. can you give me access to that? looks like it returns an unexpected 
> null somewhere.
> 
> ..ede
> 
> On 08.01.2016 12:45, Rahkonen Jukka (MML) wrote:
>> Hi Ede,
>>
>> I made a test about
>>
>>> 1. wfs auth is working properly (looked like it didn't work before, 
>>> did it?)
>>
>> It did not work before but works now. I could only test with a demo WFS 
>> service I made with Mapserver. The plugin can read data through proxy, 
>> https, and basic authentication up till getting GML data into the "response" 
>> tab. Making an OpenJUMP layer fails, though, with this short error message:
>>
>> java.lang.NullPointerException
>>  at 
>> de.latlon.deejump.wfs.data.JUMPFeatureFactory.createFromDeegreeFC(JUMPFeatureFactory.java:415)
>>  at de.latlon.deejump.wfs.plugin.WFSPlugIn.run(WFSPlugIn.java:184)
>>  at 
>> com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
>>  at java.lang.Thread.run(Unknown Source)
>>
>> -Jukka-
>>
>>
>> -Alkuperäinen viesti-
>> Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de]
>> Lähetetty: 2. tammikuuta 2016 18:33
>> Vastaanottaja: OpenJump develop and use
>> Aihe: [JPP-Devel] wfs enhancements
>>
>> hey Jukka,
>>
>> just committed r4737 . if that builds could you please check
>>
>> 1. wfs auth is working properly (looked like it didn't work before, 
>> did it?)
>>
>> 2. it should be faster now, can you compare an old and r4737 against each 
>> other?
>>
>> 3. what is the max. item count you can download on a high powered machine 
>> (lot's of ram, x64 java, plenty of cores). on my laptop (2core,Xmx6GB) it 
>> was roughly 500.000 from http://ows.terrestris.de/geoserver/osm/wfs 
>> 'osm_waterways' dataset.
>> limiting factor seems to be the deegree2 parser, which seems to be 
>> multithreaded but also memory leaky. it get's cleaned up after it is 
>> finished though.
>>
>> thx ..ede
>>
>>
>>  Forwarded Message 
>> Subject: [JPP-Devel] SVN: [4737] core/trunk
>> Date: Sat,  2 Jan 2016 16:19:28 +
>> From: jump-pilot-...@lists.sourceforge.net
>> Reply-To: OpenJump develop and use 
>> 
>> To: jump-pilot-devel@lists.sourceforge.net
>>
>> Revision: 4737
>>   http://sourceforge.net/p/jump-pilot/code/4737
>> Author:   edso
>> Date: 2016-01-02 16:19:28 + (Sat, 02 Jan 2016)
>> Log Message:
>> ---
>> - finetuned wfs httpclient access, unified proxy and auth handling
>> - wfs request is now buffered to disk for optimal performance
>> - wfs item count is now limited by RAM only
>> NOTE: we should probably switch to deegree3+ instead of patching 
>> things up
>>
>> ...
>>
>> -
>> - ___
>> 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
>>
> 
> --
>  ___
> 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

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


Re: [JPP-Devel] wfs enhancements

2016-01-08 Thread Rahkonen Jukka (MML)
Most WFS servers nowadays can also send data as GeoJSON which is not so 
flexible and therefore not as painful as GML. Also, most GIS data are still 
plain 2D or 2.5D simple features and there in not much gain in using GML for 
such simple data. Sometimes using GeoJSON as outputformat could be useful as a 
workaround. 

http://demo.opengeo.org/geoserver/topp/wfs?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:states&outputFormat=application/json

However, filters for WFS  must still be written as GML despite the BBOX that 
can be given as key-value pair.


-Jukka Rahkonen-



-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 8. tammikuuta 2016 17:24
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] wfs enhancements

found the bug already. it was in the deegreefc to ojfc converter code.

generally you are right and we should port wfs support to use fresh still 
developed code including proper gml reading.

..ede

On 08.01.2016 16:18, Stefan Steiniger wrote:
> so, if this may be a GML problem that its probably not that Ede can fix. 
> GML is so flexible (and GML 3 vs GML 2 is so different) that it is a 
> pain to make it work. I also tried to move/load GML from one other GIS 
> to OJ and vice versa... but that seem to be more like luck if it worked.
> So its actually good to know that  Terrestris / GeoServer works. 
> Perhaps specifying a lower WFS/GML version helps?
> 
> my 2 cents,
> stefan
> 
> On 08-01-2016 10:40, Rahkonen Jukka (MML) wrote:
>> Hi,
>>
>> Yes, ows.terrestris.de works for me.
>>
>> Here is an open Mapserver WFS that gives the same error than our own 
>> Mapserver: http://demo.mapserver.org/cgi-bin/wfs
>>
>> I created the request and copy-pasted the response from the "cites" layer 
>> into a file and checked the file with GDAL. It found all the data so at 
>> least for GDAL the GML is valid.
>>
>> -Jukka-
>>
>>
>> -Alkuperäinen viesti-
>> Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de]
>> Lähetetty: 8. tammikuuta 2016 14:07
>> Vastaanottaja: OpenJump develop and use
>> Aihe: Re: [JPP-Devel] wfs enhancements
>>
>> does http://ows.terrestris.de/geoserver/osm/wfs work for you?
>>
>> ..ede
>>
>> On 08.01.2016 12:54, edgar.sol...@web.de wrote:
>>> hmm.. can you give me access to that? looks like it returns an unexpected 
>>> null somewhere.
>>>
>>> ..ede
>>>
>>> On 08.01.2016 12:45, Rahkonen Jukka (MML) wrote:
>>>> Hi Ede,
>>>>
>>>> I made a test about
>>>>
>>>>> 1. wfs auth is working properly (looked like it didn't work 
>>>>> before, did it?)
>>>> It did not work before but works now. I could only test with a demo WFS 
>>>> service I made with Mapserver. The plugin can read data through proxy, 
>>>> https, and basic authentication up till getting GML data into the 
>>>> "response" tab. Making an OpenJUMP layer fails, though, with this short 
>>>> error message:
>>>>
>>>> java.lang.NullPointerException
>>>>at 
>>>> de.latlon.deejump.wfs.data.JUMPFeatureFactory.createFromDeegreeFC(JUMPFeatureFactory.java:415)
>>>>at de.latlon.deejump.wfs.plugin.WFSPlugIn.run(WFSPlugIn.java:184)
>>>>at 
>>>> com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
>>>>at java.lang.Thread.run(Unknown Source)
>>>>
>>>> -Jukka-
>>>>
>>>>
>>>> -Alkuperäinen viesti-
>>>> Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de]
>>>> Lähetetty: 2. tammikuuta 2016 18:33
>>>> Vastaanottaja: OpenJump develop and use
>>>> Aihe: [JPP-Devel] wfs enhancements
>>>>
>>>> hey Jukka,
>>>>
>>>> just committed r4737 . if that builds could you please check
>>>>
>>>> 1. wfs auth is working properly (looked like it didn't work before, 
>>>> did it?)
>>>>
>>>> 2. it should be faster now, can you compare an old and r4737 against each 
>>>> other?
>>>>
>>>> 3. what is the max. item count you can download on a high powered machine 
>>>> (lot's of ram, x64 java, plenty of cores). on my laptop (2core,Xmx6GB) it 
>>>> was roughly 500.000 from http://ows.terrestris.de/geoserver/osm/wfs 
>>>> 'osm_waterways' dataset.
>>>> limiting factor seems to be the deegr

Re: [JPP-Devel] wfs mapserver 1.0 vs. 1.1

2016-01-10 Thread Rahkonen Jukka (MML)
Hi Ede,

It is the same feature than with the BBOX in WMS 1.3.0, axis order must suit 
with official definitions of the coordinate system. So this is right with 
WFS 1.0.0
http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&typename=cities&maxfeatures=1
-58.672500,-34.587500

and this is right with WFS 1.1.0
http://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=getfeature&typename=cities&maxfeatures=1
-34.587500 -58.672500

Geoserver folks decided to keep some backward interoperability and if srsName 
is given as short epsg: format the easting northing order is remained
http://demo.opengeo.org/geoserver/wfs?service=wfs&version=1.1.0&request=GetFeature&typename=topp:states&maxfeatures=1&srsName=epsg:4326

However, with the longer and recommended format for WFS 1.1.0 and above the 
axis order follows the definition of the coordinate system
http://demo.opengeo.org/geoserver/wfs?service=wfs&version=1.1.0&request=GetFeature&typename=topp:states&maxfeatures=1&srsName=urn:x-ogc:def:crs:EPSG:4326

If you test with WFS 1.1.0 and deom.opengeo.org you will flipped "states". This 
axis order thing goes very nasty when you start building spatial filters for 
WFS 1.1.0 on the client side because the geometries in the filters are then 
encoded also as GML.

-Jukka-







-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de [mailto:edgar.sol...@web.de] 
Lähetetty: 10. tammikuuta 2016 18:45
Vastaanottaja: OpenJump develop and use
Aihe: [JPP-Devel] wfs mapserver 1.0 vs. 1.1

hey Jukka,

something fishy happens when loading the same 'cities' layer as wfs 1.0 and 1.1 
.. the result seems to be rotated and mirrored (see attachement). any idea?

..ede
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Few suggestions

2016-02-04 Thread Rahkonen Jukka (MML)
Hi,

Isn't it so that what is dissolve for ESRI 
http://wiki.gis.com/wiki/index.php/Dissolve is Union for OGC Simple Feature 
access:
a geometric object that is the set union of g1 and g2? Then the name could be 
also "union by".

-Jukka Rahkonen-

Michaël Michaud wrote:

Hi Stefan,

Thank you for the suggestion. Group by is a reference to SQL (I use Postgis a 
lot).
Maybe for a GIS program, dissolve is better. I'll change the terms, maybe with
"Dissolve (new)" until we get rid of the old plugin.

Michaël

Le 03/02/2016 15:31, Stefan Steiniger a écrit :
perfecto.

@Michael:  If we replace "dissolve" then we need to take care about the name of 
the new plugin. Ideally its the same, because "Dissolve" is a Function well 
known and used in ArcGIS. So people may look for such, because they know the 
name. So, while "Group by" is intuitive, we probably need to stick to  some 
conventions here :/

http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?id=1577&pid=1574&topicname=Dissolve_%28Data_Management%29

http://gis.stackexchange.com/questions/118377/qgis-2-4-dissolve-doesnt-work-properly-why

cheers,
Stefan
On 2/3/16 09:45, Michaël Michaud wrote:
Hi Peppe,

+1 for removing old plugins which have been replaced by new ones (if the new 
one includes former plugin capabilities).

I've also the project to remove dissolve plugin (which should be replaced by 
the new Group By plugin), but I'll wait after 1.9.1 release (if any) to make 
sure I don't change a working plugin by a buggy one ;-)

Michaël

I'm not much concerned by measures in feet, but let's listen t
Le 03/02/2016 09:35, Giuseppe Aruta a écrit :
Thanks Stefafan for the answer
- RasterColorEditor. We can substitute the menu entry (under Raster menu) in 
order to point to RasterStylesExtension to save compatibility with user habits. 
This plugin derives from SIGLE similar tool that you ported to OpenJUMP, 
removing external libs depency - so I feel it is up to you the decision to 
remove it.

- "Color Editor" panel on ChangeRasterImagePropertiesPlugIn. I hope one day 
Alberto has time to move all RasterStylesExtension tools under Change  Raster 
Style, as tabbed panels. That seems to me the right place. Anyhow actual "Color 
Panel" derives form RasterColorEditor where I added some extra tools.
Personally I feel that removing these tools has a small effect on users. AFAIR 
only students at Padua University uses OpenJUMP with raster support and they 
prefer Alberto's RasterStylesExtension.

- Measure in Feet. We probably should add this capability to 
com.vividsolutions.jump.workbench.ui.cursortool.CoordinateListMetrics. I did it 
for the plugin MeasureExtension (using an external class UnitConverter for the 
conversion between units) and it works fine. By the time we find a solution, I 
will leave the plugin on the menu.
So, if you agree,
-I will remove only the two "Color" plugins from the menu,
- add a link to  RasteStyleExtension under Raster menu,
- add a note on readme text file as you suggested,
- leave MeasureM_F for now
Peppe


2016-02-02 18:43 GMT+01:00 Stefan Steiniger 
mailto:sst...@geo.uzh.ch>>:
Hey,

I am not sure about the first one - as I can't assess who is using it. The 
advantage is its easy/fast access or not? Couldn't we merge it with the other 
plugin? OR we remove it, put a notice in the readme (probably for all three 
functions) and wait for someone screaming out loud that it is missing...

The rest is fine with me.

cheers,
stefan

On 2/2/16 14:14, Giuseppe Aruta wrote:
Hi all,
these are my suggestions:
- remove org.openjump.core.ui.plugin.tools.MeasureM_FPlugIn (measure in feet). 
MeasurePlugin embedded into OpenJUMP PLUS has this option, plus other (convert 
from/to meter/feet, etc)
- remove org.openjump.core.ui.plugin.raster.color.RasterColorEditorPlugIn.
RasterStylesExtension has more option (and it is compatible to 
RasterColorEditorPlugIn)
- from ChangeRasterImagePropertiesPlugIn, remove "Color Editor" panel. Even in 
this cas RasterStylesExtension  has more option (and it is compatible)
Peppe



--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140



___

Jump-pilot-devel mailing list

Jump-pilot-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot 

[JPP-Devel] Parsing XYZ geometries from Geopackage

2016-02-08 Thread Rahkonen Jukka (MML)
Hi,

I tried to open a GeoPackage file through the new Spatialite datastore but got 
just JTS errors like "unknown wkb type 235". I discovered soon that my data had 
also Z-coordinates and this Stackoverflow question 
http://stackoverflow.com/questions/29142663/parse-wkb-string-using-jts-topology-suite
 handles the same issue. But don't we have some support for 3d geometries in 
WKB range 1001-1007 in other places of OpenJUMP?

The full list of WKB types from page 66 of "OpenGIS(r) Implementation Standard 
for Geographic information - Simple feature access - Part 1: Common 
architecture" is as follows:

enum WKBGeometryType {
wkbPoint = 1,
wkbLineString = 2,
wkbPolygon = 3,
wkbTriangle = 17
wkbMultiPoint = 4,
wkbMultiLineString = 5,
wkbMultiPolygon = 6,
wkbGeometryCollection = 7,
wkbPolyhedralSurface = 15,
wkbTIN = 16
wkbPointZ = 1001,
wkbLineStringZ = 1002,
wkbPolygonZ = 1003,
wkbTrianglez = 1017
wkbMultiPointZ = 1004,
wkbMultiLineStringZ = 1005,
wkbMultiPolygonZ = 1006,
wkbGeometryCollectionZ = 1007,
wkbPolyhedralSurfaceZ = 1015,
wkbTINZ = 1016
wkbPointM = 2001,
wkbLineStringM = 2002,
wkbPolygonM = 2003,
wkbTriangleM = 2017
wkbMultiPointM = 2004,
wkbMultiLineStringM = 2005,
wkbMultiPolygonM = 2006,
wkbGeometryCollectionM = 2007,
wkbPolyhedralSurfaceM = 2015,
wkbTINM = 2016
wkbPointZM = 3001,
wkbLineStringZM = 3002,
wkbPolygonZM = 3003,
wkbTriangleZM = 3017
wkbMultiPointZM = 3004,
wkbMultiLineStringZM = 3005,
wkbMultiPolygonZM = 3006,
wkbGeometryCollectionZM = 3007,
wkbPolyhedralSurfaceZM = 3015,
wkbTinZM = 3016,
}

-Jukka Rahkonen-
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Parsing XYZ geometries from Geopackage

2016-02-09 Thread Rahkonen Jukka (MML)
Hi Michaël,

Please find attached one GeoPackage blob that OpenJUMP does not convert.  It is 
of type POLYGON Z, thus 1003 and 03ea as hexadecimal.

I am not good in reading bits and bytes but I have tried.

Bytes 1-3:
47 50 00
"GP" and "0" Means that file is Geopackage, version 1

Byte 4: 05
This is a lag byte with bit values 0 0 0 0 0 1 0 1
Of those flags bits 5-7 "010" makes number "2", which means that envelope is 
[minx, maxx, miny, maxy, minz, maxz] and it takes 48 bytes. Remember this.

Bytes 5-8:
fb 0b 00 00
SRID, value as decimal number "3067"

Bytes 9-56
48 bytes used for the envelope

Bytes 57 ->
WKB
starts 00 01 eb 03 ...
In reversed order "03 eb" is 1003 as decimal, which means "wkbPolygonZ" which 
is correct.


Regards,

-Jukka-




Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 9. helmikuuta 2016 10:13
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Parsing XYZ geometries from Geopackage

Hi Jukka,

GeoPackage geometry is read with JTS WKBReader which is supposed to handle 3D 
geometries.
I think it cannot read ZM though.
The WKB type returned in the error message is the geometry type truncated to 
the 2 last bytes,
z information is held in a separate boolean variable for every type > 128.
Maybe the reading of the wkb part does not start exactly where it should. Or 
maybe there is an
endianness problem.
In the example of stackoverflow, I would say that the input wkb is actually not 
valid (I would write
wkb type as 03ea0000, not ea03), but I may be wrong.

Michaël
Le 08/02/2016 23:40, Rahkonen Jukka (MML) a écrit :
Hi,

I tried to open a GeoPackage file through the new Spatialite datastore but got 
just JTS errors like "unknown wkb type 235". I discovered soon that my data had 
also Z-coordinates and this Stackoverflow question 
http://stackoverflow.com/questions/29142663/parse-wkb-string-using-jts-topology-suite
 handles the same issue. But don't we have some support for 3d geometries in 
WKB range 1001-1007 in other places of OpenJUMP?

The full list of WKB types from page 66 of "OpenGIS® Implementation Standard 
for Geographic information - Simple feature access - Part 1: Common 
architecture" is as follows:

enum WKBGeometryType {
wkbPoint = 1,
wkbLineString = 2,
wkbPolygon = 3,
wkbTriangle = 17
wkbMultiPoint = 4,
wkbMultiLineString = 5,
wkbMultiPolygon = 6,
wkbGeometryCollection = 7,
wkbPolyhedralSurface = 15,
wkbTIN = 16
wkbPointZ = 1001,
wkbLineStringZ = 1002,
wkbPolygonZ = 1003,
wkbTrianglez = 1017
wkbMultiPointZ = 1004,
wkbMultiLineStringZ = 1005,
wkbMultiPolygonZ = 1006,
wkbGeometryCollectionZ = 1007,
wkbPolyhedralSurfaceZ = 1015,
wkbTINZ = 1016
wkbPointM = 2001,
wkbLineStringM = 2002,
wkbPolygonM = 2003,
wkbTriangleM = 2017
wkbMultiPointM = 2004,
wkbMultiLineStringM = 2005,
wkbMultiPolygonM = 2006,
wkbGeometryCollectionM = 2007,
wkbPolyhedralSurfaceM = 2015,
wkbTINM = 2016
wkbPointZM = 3001,
wkbLineStringZM = 3002,
wkbPolygonZM = 3003,
wkbTriangleZM = 3017
wkbMultiPointZM = 3004,
wkbMultiLineStringZM = 3005,
wkbMultiPolygonZM = 3006,
wkbGeometryCollectionZM = 3007,
wkbPolyhedralSurfaceZM = 3015,
wkbTinZM = 3016,
}

-Jukka Rahkonen-




--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140




___

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

GPûj¼t“˜¨û@u“Rü@ÁÊ¡í<YAä>YAëRü@s<YAu“Rü@ÁÊ¡í<YAj¼t“˜¨û@ä>YAÀµû@ä>YAÕû@ä>YA@ôû@ä>YA€ü@ä>YAÀ2ü@ä>YARü@ä>YARü@g>YARü@ê=YARü@m=YARü@ð<YARü@s<YA--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Parsing XYZ geometries from Geopackage

2016-02-09 Thread Rahkonen Jukka (MML)
Hi,

Sorry, I was thinking that you programmers are interested in the deep details. 
That file can't be read directly with OJ because it is just the geometry BLOB 
from the database. Perhaps somebody who knows the source code could feed the 
blob into the Spatialite code in the debug environment and see what happens.

Here is a small GeoPackage that shows the problem with parsing XYZ geometries 
http://latuviitta.org/downloads/mtk.gpkg.
Make a spatialite connection to the database file and try to read some layer. 
My example was from the "kunta"  layer which is POLYGON Z.

-Jukka-

Michaël Michaud wrote:

Jukka,

Can you give me some some hints to test the file with OpenJUMP ?
I tried to open the file with datastore / spatialite driver, but it does not 
seem to recognize the file as a sqlite database.
Is it supposed to be recognized as is.

With

Le 09/02/2016 11:09, Rahkonen Jukka (MML) a écrit :
Hi Michaël,

Please find attached one GeoPackage blob that OpenJUMP does not convert.  It is 
of type POLYGON Z, thus 1003 and 03ea as hexadecimal.

I am not good in reading bits and bytes but I have tried.

Bytes 1-3:
47 50 00
"GP" and "0" Means that file is Geopackage, version 1

Byte 4: 05
This is a lag byte with bit values 0 0 0 0 0 1 0 1
Of those flags bits 5-7 "010" makes number "2", which means that envelope is 
[minx, maxx, miny, maxy, minz, maxz] and it takes 48 bytes. Remember this.

Bytes 5-8:
fb 0b 00 00
SRID, value as decimal number "3067"

Bytes 9-56
48 bytes used for the envelope

Bytes 57 ->
WKB
starts 00 01 eb 03 ...
In reversed order "03 eb" is 1003 as decimal, which means "wkbPolygonZ" which 
is correct.


Regards,

-Jukka-




Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 9. helmikuuta 2016 10:13
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] Parsing XYZ geometries from Geopackage

Hi Jukka,

GeoPackage geometry is read with JTS WKBReader which is supposed to handle 3D 
geometries.
I think it cannot read ZM though.
The WKB type returned in the error message is the geometry type truncated to 
the 2 last bytes,
z information is held in a separate boolean variable for every type > 128.
Maybe the reading of the wkb part does not start exactly where it should. Or 
maybe there is an
endianness problem.
In the example of stackoverflow, I would say that the input wkb is actually not 
valid (I would write
wkb type as 03ea, not ea03), but I may be wrong.

Michaël
Le 08/02/2016 23:40, Rahkonen Jukka (MML) a écrit :
Hi,

I tried to open a GeoPackage file through the new Spatialite datastore but got 
just JTS errors like "unknown wkb type 235". I discovered soon that my data had 
also Z-coordinates and this Stackoverflow question 
http://stackoverflow.com/questions/29142663/parse-wkb-string-using-jts-topology-suite
 handles the same issue. But don't we have some support for 3d geometries in 
WKB range 1001-1007 in other places of OpenJUMP?

The full list of WKB types from page 66 of "OpenGIS® Implementation Standard 
for Geographic information - Simple feature access - Part 1: Common 
architecture" is as follows:

enum WKBGeometryType {
wkbPoint = 1,
wkbLineString = 2,
wkbPolygon = 3,
wkbTriangle = 17
wkbMultiPoint = 4,
wkbMultiLineString = 5,
wkbMultiPolygon = 6,
wkbGeometryCollection = 7,
wkbPolyhedralSurface = 15,
wkbTIN = 16
wkbPointZ = 1001,
wkbLineStringZ = 1002,
wkbPolygonZ = 1003,
wkbTrianglez = 1017
wkbMultiPointZ = 1004,
wkbMultiLineStringZ = 1005,
wkbMultiPolygonZ = 1006,
wkbGeometryCollectionZ = 1007,
wkbPolyhedralSurfaceZ = 1015,
wkbTINZ = 1016
wkbPointM = 2001,
wkbLineStringM = 2002,
wkbPolygonM = 2003,
wkbTriangleM = 2017
wkbMultiPointM = 2004,
wkbMultiLineStringM = 2005,
wkbMultiPolygonM = 2006,
wkbGeometryCollectionM = 2007,
wkbPolyhedralSurfaceM = 2015,
wkbTINM = 2016
wkbPointZM = 3001,
wkbLineStringZM = 3002,
wkbPolygonZM = 3003,
wkbTriangleZM = 3017
wkbMultiPointZM = 3004,
wkbMultiLineStringZM = 3005,
wkbMultiPolygonZM = 3006,
wkbGeometryCollectionZM = 3007,
wkbPolyhedralSurfaceZM = 3015,
wkbTinZM = 3016,
}

-Jukka Rahkonen-




--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140




___

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




--

Re: [JPP-Devel] Parsing XYZ geometries from Geopackage

2016-02-10 Thread Rahkonen Jukka (MML)
Instead of continuing with the old samples I created a new one in a 
systematical way.


1)  Create a polygon z with OpenJUMP

POLYGON (( 340 580 1, 560 580 2, 560 420 3, 340 580 1 ))

2)  Save as jml

3)  Convert with ogr2ogr

ogr2ogr -f gpkg polygonz.gpkg polygonz.jml

4)  Check with ogrinfo

ogrinfo polygonz.gpkg -al

INFO: Open of `polygonz.gpkg'

  using driver `GPKG' successful.



Layer name: polygonz

Geometry: Unknown (any)

Feature Count: 1

Extent: (340.00, 420.00) - (560.00, 580.00)

Layer SRS WKT:

(unknown)

FID Column = fid

Geometry Column = geom

OGRFeature(polygonz):1

  POLYGON ((340 580 1,560 580 2,560 420 3,340 580 1))



Good so far, GDAL can round trip and GeoPackage contains the same XYZ geometry 
which I made with OpenJUMP

5)  Open polygonz.gpkg with Spatialite-gui v. 1.8.0-devel

Spatialite-gui creates an virtual table vgpkg_polygonz that converts GeoPackege 
blobs into Spatialite blobs on-the-fly. Geometry preview shows that Spatialite 
does understand the blob.

6)  Study the GeoPackage blob from the original "polygonz" table with the 
BLOB explore tool. Use the Export BLOB option and save into a file.

Trying to analyze the first bytes:

-  47 50 00 = It is GeoPackage blob, version 1

-  05 = flags, 48 bytes reserved for the envelope

-  00 00 00 00 = srid, not defined

-  after srid bytes skip 48 bytes and read from byte 57

-  Now I think that byte 57 is not yet WKB but perhaps some binary flag 
byte; the value is "40"

-  WKB starts: 01 EB 03 00 00 ...

This seems to be the same as last time. You say that EB 03 00 00 is not correct 
but still GDAL writes it so and it seems that both GDAL and Spatialite-gui can 
read it right. But what if it is not a 4-byte integer but a 2-byte integer? 
Wouldn't little endian EB 03 be correct then?


GeoPackage and BLOB attached.

-Jukka-






Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 10. helmikuuta 2016 22:36
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Parsing XYZ geometries from Geopackage

Hi,

I suspect your geometry is malformed. Do you intend something like the 
following ?
[cid:image001.png@01D1645E.61B6D310]

- I am not encline to suspect JTS parser because I have used it to parse 
PostGIS 2D and 3D WKB for a long time.
- When I saw your example on stackoverflow, I suspected EB 03 is not a valid 
geometry type.
- When I swapp byte 2 and 3 of the wkb (what I would have done to write 1003 
geometry type with little endian convention), I can read it and get the above 
geometry.

More about endianess
The wkb first byte is an endianess flag. It says the geometry type is coded 
using little endian convention (01)
But actual int value EB 03 00 00 is neither 1003 in little endian convention 
nor in big endian convention
little endian (less significant bit first) : 1003 (as a 4 bytes integer) = 03 
EB 00 00
big endian   (most significant bit first) : 1003 (as a 4 bytes integer) = 00 00 
EB 03

Also, I made a quick test with Spatialite, and when I tried to read geometry 
(ST_AsText(geom)), it returned null.

Could you read this table with spatialite ?
Do you know how this gpkg file has been produced ?

Michaël


Le 10/02/2016 10:24, edgar.sol...@web.de<mailto:edgar.sol...@web.de> a écrit :

hehe :)),



it was probably less a lack of interest and more a lack of directly usable test 
data ;).. anyway,



Mike: afair WKB blob parsing is done via JTS, or? so the bug is probably in 
there and must be fixed there as well. maybe i makes sense if you forward the 
testdata to them.



..ede



On 09.02.2016 23:40, Rahkonen Jukka (MML) wrote:

Hi,



Sorry, I was thinking that you programmers are interested in the deep details. 
That file can't be read directly with OJ because it is just the geometry BLOB 
from the database. Perhaps somebody who knows the source code could feed the 
blob into the Spatialite code in the debug environment and see what happens.



Here is a small GeoPackage that shows the problem with parsing XYZ geometries 
http://latuviitta.org/downloads/mtk.gpkg.

Make a spatialite connection to the database file and try to read some layer. 
My example was from the "kunta"  layer which is POLYGON Z.



-Jukka-



Michaël Michaud wrote:



Jukka,



Can you give me some some hints to test the file with OpenJUMP ?

I tried to open the file with datastore / spatialite driver, but it does not 
seem to recognize the file as a sqlite database.

Is it supposed to be recognized as is.



With



Le 09/02/2016 11:09, Rahkonen Jukka (MML) a écrit :

Hi Michaël,



Please find attached one GeoPackage blob that OpenJUMP does not convert.  It is 
of type POLYGON Z, thus 1003 and 03ea as hexadecimal.



I am not good in reading bits and bytes but I have tried.



Bytes 1-3:

47 50 00

"GP" and "0" Means that file is G

[JPP-Devel] Enhanse WKT reader to understand POINT Z etc.

2016-02-11 Thread Rahkonen Jukka (MML)
Hi,

OpenJUMP does understand Well Know Text features with XYZ coordinates in format 
POINT (2 2 2).  However, in "OpenGIS(r) Implementation Standard for Geographic 
information - Simple feature access - Part 1: Common architecture" such feature 
is defined to be POINT Z (2 2 2). It would be nice to get OpenJUMP to accept 
also the "geometry Z" WKT because that is what some other software are 
generating.

-Jukka Rahkonen-
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

2016-02-11 Thread Rahkonen Jukka (MML)
Hi,

Pasting this thread 
https://lists.osgeo.org/pipermail/geos-devel/2013-December/006757.html for 
making it easier to find from the OpenJUMP archives what is the difference 
between XYZ  geometries as they appear in OGC WKT and in the PostGIS EWKB. 
Adding also some keywords from the original error:
unknown wkb type 235

It seems that the fix requires enhancement to JTS WKBReader/Writer for making 
it possible to the OGC style XYZ, XYM, and XYZM WKB.



Quotation from JTS 1.14 source file 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts/java/src/com/vividsolutions/jts/io/WKBWriter.java

* This implementation also supports the Extended WKB
 * standard. Extended WKB allows writing 3-dimensional coordinates
* and including the geometry SRID value.
 * The presence of 3D coordinates is signified
* by setting the high bit of the wkbType word.
* The presence of an SRID is signified
 * by setting the third bit of the wkbType word.
* EWKB format is upward compatible with the original SFS WKB format.

If you will write to JTS list you could perhaps suggest to at least add here 
and there in the code and javadocs a clear notice telling that only 2D OGC WKB 
is supported.

-Jukka Rahkonen-
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

2016-02-16 Thread Rahkonen Jukka (MML)
Hi,

I can confirm that with the patched jts jar I can read XYZ geometries from 
GeoPackage database. Points, lines, and polygons tested. It would be very nice 
to get even a patched temporary read-only support for OGC style XYZ geometries 
into OpenJUMP soon without a need to wait until JTS will support them.

-Jukka Rahkonen-


Michaël Michaud wrote:

Thanks Jukka,

I was not aware of this difference between postgis wkb and ogc wkb.
Now, it is clear why I've never had problem with postgis 3D wkb and why there 
is problem with geopackage driver.

We'll have to make some suggestion to MD for JTS, but we have some options 
there.
JTS can manage 2D coordinates (very well), 3D coordinates (just holding 
information), and even 4D geometries (poorly = 4th dimension is generally lost 
after geometry processing)
JTS has not clear semantic for Z, M, ZM.

In the attached prototype, I made the simplest patch I could do :
if geometry type is > 1000, consider it is a 3D geometry (may be buggy for 
geometryZM which is 4D)
another option would be :
if geometry type is > 1000 and < 2000, consider it is a 3D geometry and throw 
an error over 2000

For wkb writer, it is another problem as we cannot write postgis wkb AND ogc 
wkb at the same time.
We'll have to add an option to the writer. We have to discuss that with MD.

Please, let me know if the attached proto resolve the problem (you have to add 
.jar and drop it in /lib folder in replacement of jts-1.14.0.jar).

As official JTS-1.14 has just been released and 1.15 is probably far ahead, we 
can also circumvent the problem by changing the wkb byte array in the 
geopackage reader so that it conforms to postgis wkb. It would need to extract 
and transform the four geometry type bytes. Not too difficult, but a bit 
convoluted

Michaël

Le 11/02/2016 11:26, Rahkonen Jukka (MML) a écrit :
Hi,

Pasting this thread 
https://lists.osgeo.org/pipermail/geos-devel/2013-December/006757.html for 
making it easier to find from the OpenJUMP archives what is the difference 
between XYZ  geometries as they appear in OGC WKT and in the PostGIS EWKB. 
Adding also some keywords from the original error:
unknown wkb type 235

It seems that the fix requires enhancement to JTS WKBReader/Writer for making 
it possible to the OGC style XYZ, XYM, and XYZM WKB.



Quotation from JTS 1.14 source file 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts/java/src/com/vividsolutions/jts/io/WKBWriter.java

* This implementation also supports the Extended WKB
 * standard. Extended WKB allows writing 3-dimensional coordinates
* and including the geometry SRID value.
 * The presence of 3D coordinates is signified
* by setting the high bit of the wkbType word.
* The presence of an SRID is signified
 * by setting the third bit of the wkbType word.
* EWKB format is upward compatible with the original SFS WKB format.

If you will write to JTS list you could perhaps suggest to at least add here 
and there in the code and javadocs a clear notice telling that only 2D OGC WKB 
is supported.

-Jukka Rahkonen-




--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140




___

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

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

2016-02-17 Thread Rahkonen Jukka (MML)
Hi Michaël,

Here is a test database that should contain one feature of each geometrytype 
which are valid in GeoPackage:
http://latuviitta.org/downloads/gpkg_geometrytype_test.gpkg

Just the byte order that comes from my Windows/Intel, unfortunately. You can 
create the same database with SQL script 
http://latuviitta.org/downloads/make_gpkg.txt but it requires  mod_spatialite 
with all the dependencies. Script can also be run from the SQL window of 
spatialite-gui but it may also help to just have a look at the script with bare 
eyes because all the geometries which are written into GeoPackage are there as 
WKT.

I had time for only a quick test. To start testing was by the way amazingly 
easy because with the new Spatialite datastore I could select all the layers at 
the same time and open them into an OJ project.

Geometries with Z seem to be mostly readable except GEOMETRYCOLLECTION Z. It 
looks like most or all ZM geometries behave badly.

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 17. helmikuuta 2016 14:48
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

Hi Jukke,

Just patched spatialite driver in OpenJUMP.
Can you try different geometry types, and if possible, with different byte 
order ?
Not sure what happens wih geometry M and geometry ZM.

Michaël
Le 16/02/2016 13:40, Rahkonen Jukka (MML) a écrit :
Hi,

I can confirm that with the patched jts jar I can read XYZ geometries from 
GeoPackage database. Points, lines, and polygons tested. It would be very nice 
to get even a patched temporary read-only support for OGC style XYZ geometries 
into OpenJUMP soon without a need to wait until JTS will support them.

-Jukka Rahkonen-


Michaël Michaud wrote:

Thanks Jukka,

I was not aware of this difference between postgis wkb and ogc wkb.
Now, it is clear why I've never had problem with postgis 3D wkb and why there 
is problem with geopackage driver.

We'll have to make some suggestion to MD for JTS, but we have some options 
there.
JTS can manage 2D coordinates (very well), 3D coordinates (just holding 
information), and even 4D geometries (poorly = 4th dimension is generally lost 
after geometry processing)
JTS has not clear semantic for Z, M, ZM.

In the attached prototype, I made the simplest patch I could do :
if geometry type is > 1000, consider it is a 3D geometry (may be buggy for 
geometryZM which is 4D)
another option would be :
if geometry type is > 1000 and < 2000, consider it is a 3D geometry and throw 
an error over 2000

For wkb writer, it is another problem as we cannot write postgis wkb AND ogc 
wkb at the same time.
We'll have to add an option to the writer. We have to discuss that with MD.

Please, let me know if the attached proto resolve the problem (you have to add 
.jar and drop it in /lib folder in replacement of jts-1.14.0.jar).

As official JTS-1.14 has just been released and 1.15 is probably far ahead, we 
can also circumvent the problem by changing the wkb byte array in the 
geopackage reader so that it conforms to postgis wkb. It would need to extract 
and transform the four geometry type bytes. Not too difficult, but a bit 
convoluted

Michaël

Le 11/02/2016 11:26, Rahkonen Jukka (MML) a écrit :
Hi,

Pasting this thread 
https://lists.osgeo.org/pipermail/geos-devel/2013-December/006757.html for 
making it easier to find from the OpenJUMP archives what is the difference 
between XYZ  geometries as they appear in OGC WKT and in the PostGIS EWKB. 
Adding also some keywords from the original error:
unknown wkb type 235

It seems that the fix requires enhancement to JTS WKBReader/Writer for making 
it possible to the OGC style XYZ, XYM, and XYZM WKB.



Quotation from JTS 1.14 source file 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts/java/src/com/vividsolutions/jts/io/WKBWriter.java

* This implementation also supports the Extended WKB
 * standard. Extended WKB allows writing 3-dimensional coordinates
* and including the geometry SRID value.
 * The presence of 3D coordinates is signified
* by setting the high bit of the wkbType word.
* The presence of an SRID is signified
 * by setting the third bit of the wkbType word.
* EWKB format is upward compatible with the original SFS WKB format.

If you will write to JTS list you could perhaps suggest to at least add here 
and there in the code and javadocs a clear notice telling that only 2D OGC WKB 
is supported.

-Jukka Rahkonen-





--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/c

Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

2016-02-17 Thread Rahkonen Jukka (MML)
Sorry Michaël, I noticed that I used the version of OpenJUMP with a hacked JTS 
instead of the version with patched spatialite driver (r4823). My observations 
below are useless.

-Jukka-

Lähettäjä: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi]
Lähetetty: 17. helmikuuta 2016 17:34
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

Hi Michaël,

Here is a test database that should contain one feature of each geometrytype 
which are valid in GeoPackage:
http://latuviitta.org/downloads/gpkg_geometrytype_test.gpkg

Just the byte order that comes from my Windows/Intel, unfortunately. You can 
create the same database with SQL script 
http://latuviitta.org/downloads/make_gpkg.txt but it requires  mod_spatialite 
with all the dependencies. Script can also be run from the SQL window of 
spatialite-gui but it may also help to just have a look at the script with bare 
eyes because all the geometries which are written into GeoPackage are there as 
WKT.

I had time for only a quick test. To start testing was by the way amazingly 
easy because with the new Spatialite datastore I could select all the layers at 
the same time and open them into an OJ project.

Geometries with Z seem to be mostly readable except GEOMETRYCOLLECTION Z. It 
looks like most or all ZM geometries behave badly.

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 17. helmikuuta 2016 14:48
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

Hi Jukke,

Just patched spatialite driver in OpenJUMP.
Can you try different geometry types, and if possible, with different byte 
order ?
Not sure what happens wih geometry M and geometry ZM.

Michaël
Le 16/02/2016 13:40, Rahkonen Jukka (MML) a écrit :
Hi,

I can confirm that with the patched jts jar I can read XYZ geometries from 
GeoPackage database. Points, lines, and polygons tested. It would be very nice 
to get even a patched temporary read-only support for OGC style XYZ geometries 
into OpenJUMP soon without a need to wait until JTS will support them.

-Jukka Rahkonen-


Michaël Michaud wrote:

Thanks Jukka,

I was not aware of this difference between postgis wkb and ogc wkb.
Now, it is clear why I've never had problem with postgis 3D wkb and why there 
is problem with geopackage driver.

We'll have to make some suggestion to MD for JTS, but we have some options 
there.
JTS can manage 2D coordinates (very well), 3D coordinates (just holding 
information), and even 4D geometries (poorly = 4th dimension is generally lost 
after geometry processing)
JTS has not clear semantic for Z, M, ZM.

In the attached prototype, I made the simplest patch I could do :
if geometry type is > 1000, consider it is a 3D geometry (may be buggy for 
geometryZM which is 4D)
another option would be :
if geometry type is > 1000 and < 2000, consider it is a 3D geometry and throw 
an error over 2000

For wkb writer, it is another problem as we cannot write postgis wkb AND ogc 
wkb at the same time.
We'll have to add an option to the writer. We have to discuss that with MD.

Please, let me know if the attached proto resolve the problem (you have to add 
.jar and drop it in /lib folder in replacement of jts-1.14.0.jar).

As official JTS-1.14 has just been released and 1.15 is probably far ahead, we 
can also circumvent the problem by changing the wkb byte array in the 
geopackage reader so that it conforms to postgis wkb. It would need to extract 
and transform the four geometry type bytes. Not too difficult, but a bit 
convoluted

Michaël

Le 11/02/2016 11:26, Rahkonen Jukka (MML) a écrit :
Hi,

Pasting this thread 
https://lists.osgeo.org/pipermail/geos-devel/2013-December/006757.html for 
making it easier to find from the OpenJUMP archives what is the difference 
between XYZ  geometries as they appear in OGC WKT and in the PostGIS EWKB. 
Adding also some keywords from the original error:
unknown wkb type 235

It seems that the fix requires enhancement to JTS WKBReader/Writer for making 
it possible to the OGC style XYZ, XYM, and XYZM WKB.



Quotation from JTS 1.14 source file 
https://sourceforge.net/p/jts-topo-suite/code/HEAD/tree/trunk/jts/java/src/com/vividsolutions/jts/io/WKBWriter.java

* This implementation also supports the Extended WKB
 * standard. Extended WKB allows writing 3-dimensional coordinates
* and including the geometry SRID value.
 * The presence of 3D coordinates is signified
* by setting the high bit of the wkbType word.
* The presence of an SRID is signified
 * by setting the third bit of the wkbType word.
* EWKB format is upward compatible with the original SFS WKB format.

If you will write to JTS list you could perhaps suggest to at least add here 
and there in the code and javadocs a clear notice telling that only 2D 

Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

2016-02-17 Thread Rahkonen Jukka (MML)
Hi,

I got basically same results. I do not agree with simple geometries and ZM, for 
example linestingZM (1 2 3 200, 4 5 6 200) becomes
LINESTRING (1 2 3,  200 4 5). And I have something odd with 2D 
geometrycollection. OJ reads the feature but it does not show on the map and 
there is a message at lower left corner "Unknown WKB type 233". However, I can 
copy the WKT from attribute table and paste it into another layer and then the 
geometry becomes visible.

I agree that JTS is the right place for the fix. There may be something to look 
in the WKT part of JTS as well. For example GDAL has just been changed to 
output ISO style WKT like "POINT Z(1 2 3)".  Read more from 
https://trac.osgeo.org/gdal/wiki/rfc61_support_for_measured_geometries and 
https://trac.osgeo.org/gdal/wiki/MeasuredGeometriesInDrivers

I wonder how well JUMP JML format supports XYZ, XYM, and XYZM geometries.

-Jukka Rahkonen-



Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 18. helmikuuta 2016 0:14
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

Hi Jukka,

Here are some results  (thanks for the test database).

- Simple geometries 2D, Z, M, ZM are read correctly (Z, M and ZM are 
interpreted the same way = 3D coordinates)
- MultiGeometries and GeometryCollections are read correctly in 2D, but are not 
read if there is Z, M or ZM.

Explanation : I made a simple patch to change the geometry type in wkb (byte 1 
to 4). Unfortunately, in geometry collections, geometry type is repeated in 
front of each single geometry. Patching spatialite driver to change them all is 
not reasonable (it means re-implementing a significative part of the wkb 
parser).
I will let it as is and try to work with Martin Davis to have it included fully 
in JTS in the future.

Michaël
Le 17/02/2016 16:49, Rahkonen Jukka (MML) a écrit :
Sorry Michaël, I noticed that I used the version of OpenJUMP with a hacked JTS 
instead of the version with patched spatialite driver (r4823). My observations 
below are useless.

-Jukka-

Lähettäjä: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi]
Lähetetty: 17. helmikuuta 2016 17:34
Vastaanottaja: OpenJump develop and use
Aihe: Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

Hi Michaël,

Here is a test database that should contain one feature of each geometrytype 
which are valid in GeoPackage:
http://latuviitta.org/downloads/gpkg_geometrytype_test.gpkg

Just the byte order that comes from my Windows/Intel, unfortunately. You can 
create the same database with SQL script 
http://latuviitta.org/downloads/make_gpkg.txt but it requires  mod_spatialite 
with all the dependencies. Script can also be run from the SQL window of 
spatialite-gui but it may also help to just have a look at the script with bare 
eyes because all the geometries which are written into GeoPackage are there as 
WKT.

I had time for only a quick test. To start testing was by the way amazingly 
easy because with the new Spatialite datastore I could select all the layers at 
the same time and open them into an OJ project.

Geometries with Z seem to be mostly readable except GEOMETRYCOLLECTION Z. It 
looks like most or all ZM geometries behave badly.

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 17. helmikuuta 2016 14:48
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] OJ reads XYZ in PostGIS style EWKB, not in OGC style WKB

Hi Jukke,

Just patched spatialite driver in OpenJUMP.
Can you try different geometry types, and if possible, with different byte 
order ?
Not sure what happens wih geometry M and geometry ZM.

Michaël
Le 16/02/2016 13:40, Rahkonen Jukka (MML) a écrit :
Hi,

I can confirm that with the patched jts jar I can read XYZ geometries from 
GeoPackage database. Points, lines, and polygons tested. It would be very nice 
to get even a patched temporary read-only support for OGC style XYZ geometries 
into OpenJUMP soon without a need to wait until JTS will support them.

-Jukka Rahkonen-


Michaël Michaud wrote:

Thanks Jukka,

I was not aware of this difference between postgis wkb and ogc wkb.
Now, it is clear why I've never had problem with postgis 3D wkb and why there 
is problem with geopackage driver.

We'll have to make some suggestion to MD for JTS, but we have some options 
there.
JTS can manage 2D coordinates (very well), 3D coordinates (just holding 
information), and even 4D geometries (poorly = 4th dimension is generally lost 
after geometry processing)
JTS has not clear semantic for Z, M, ZM.

In the attached prototype, I made the simplest patch I could do :
if geometry type is > 1000, consider it is a 3D geometry (may be buggy for 
geometryZM which is 4D)
another option would be :
if geometry type is > 1000 and < 2000, consider

Re: [JPP-Devel] Fwd: Re: Any features added to openjump between versions 1.7.1 and 1.8.0 worth mentioning in the Project Overview?

2016-03-03 Thread Rahkonen Jukka (MML)
I don’t think that anything essential is missing. Perhaps PDF as an 
outputformat. If we get 1.9 into LiveDVD then Coordinate conversion is worth 
mentioning, as well as H2 Spatial and GeoPackage as input formats.

-Jukka Rahkonen-

Stefan Steiniger wrote:

any comments?
I don't really now if you had major changes (e.g. renaming of functions... but 
I don't think so)

stefan

 Forwarded Message 
Subject:

Re: Any features added to openjump between versions 1.7.1 and 1.8.0 worth 
mentioning in the Project Overview?

Date:

Thu, 3 Mar 2016 08:44:57 +1100

From:

Cameron Shorter 

To:

Landon Blake 

CC:

Stefan Steiniger , Michaël Michaud 
, Edgar Soldin 




Thanks Landon,
I'll update the version in the project overview. I assume no changes are 
required for the quickstart?

Cheers Cameron
On 3/03/2016 4:55 am, Landon Blake wrote:
Cameron:
I didn't see any major changes needed to the overview. I also believe we have 
publicly released Version 1.9. What do we need to do to get the latest version 
on the LiveDVD?
Landon

On Mon, Feb 29, 2016 at 2:56 AM, 
mailto:cameron.shor...@gmail.com>> wrote:
Hi Stefan, Landon, Michaë, Edgar,

The OSGeo-Live Project Overview for openjump currently describes version 1.7.1, 
however version 1.8.0 is installed on the next OSGeo-Live9.5 release.
Are there any features which should be added to the Project Overview, or does 
the doc just require a version update?

You can see the latest nightly OSGeo-Live docs here: 
http://adhoc.osgeo.osuosl.org/livedvd/docs/en/overview/overview.html
And docs are in git here: https://github.com/OSGeo/OSGeoLive-doc

Warm regards,

--
Cameron Shorter,
Software and Data Solutions Manager
LISAsoft
Suite 112, Jones Bay Wharf,
26 - 32 Pirrama Rd, Pyrmont NSW 2009

P +61 2 9009 5000,  W 
www.lisasoft.com




--

Cameron Shorter,

Software and Data Solutions Manager

LISAsoft

Suite 112, Jones Bay Wharf,

26 - 32 Pirrama Rd, Pyrmont NSW 2009



P +61 2 9009 5000,  W www.lisasoft.com,  F +61 2 9009 
5099


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] How to find spikes with OpenJUMP?

2016-03-03 Thread Rahkonen Jukka (MML)
Hi,

I would need a topology tool that could find and possibly remove spikes from 
geometries. I believe that a spike could be defined as an angle of <-179 
degrees or >179 degrees between two adjacent segments. Any suggestions?

-Jukka Rahkonen-
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] NPE from the new Dissolve tool

2016-03-08 Thread Rahkonen Jukka (MML)
Hi,

I have tried to dissolve features (points) by a common attribute with the new 
Dissolve tool but it gives Null point exception if I have the default 
Union/Merge aggregation selected.

java.lang.NullPointerException
 at 
org.openjump.core.ui.plugin.tools.aggregate.Aggregators$Union.getResult(Aggregators.java:184)
 at 
org.openjump.core.ui.plugin.tools.aggregate.Aggregators$Union.getResult(Aggregators.java:163)
 at 
org.openjump.core.ui.plugin.tools.aggregate.FeatureCollectionAggregator.getAggregatedFeatureCollection(FeatureCollectionAggregator.java:80)
 at 
org.openjump.core.ui.plugin.tools.Dissolve2PlugIn.run(Dissolve2PlugIn.java:204)
 at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
 at java.lang.Thread.run(Unknown Source)

Method "Collect" does not through NPE. Both two old Dissolve tools gives result 
without complaints. Should I not use Union/Merge for points or what might be 
the reason for NPE?

Environment:
Version 20160217 snapshot rev.4824
Java 1.7.0_07(amd64)
Windows 7

-Jukka Rahkonen-

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval___
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 find spikes with OpenJUMP?

2016-03-09 Thread Rahkonen Jukka (MML)
Hi Landon,

Data comes from external provider, I do not know which software they use for 
creating the spikes. I am interested in getting rid of the spikes because a 
certain browser application is sometimes snapping the spikes into dangling 
segments which make real problem for us later.

-Jukka Rahkonen-



Landon Blake wrote:

What creates the spikes in your geometry?
I've got some code in JTS Warped that might help with this tool if anyone is 
interested.
Landon

On Thu, Mar 3, 2016 at 1:38 PM, Michaël Michaud 
mailto:m.michael.mich...@orange.fr>> wrote:
Hi,

QA option do find spikes (but not inside corner). Removing spikes is another 
story. I had already to do that with JTS but it is a difficult problem because 
you can't make sure that removing a spike will not create an invalid  polygon 
(auto-intersection).
Would be nice to have something in OpenJUMP though. I will check what I had 
already done to see if it can find its way as a plugin.

[cid:image001.png@01D17A07.422B2AA0]

Michaël


Le 03/03/2016 15:25, Stefan Steiniger a écrit :
Hey,

I couldn't find a standard tool either. So it would need to be via scripting.
Interestingly in QA theres is an option to check for min angle... so what you 
want is the reverse. But I also don't know of a tool to fix that. Don't even 
remeber if I implemented something alike in the mapgen toolbox, but it was 
rather focused on buildings :/

stefan
On 3/3/16 09:57, Rahkonen Jukka (MML) wrote:
Hi,

I would need a topology tool that could find and possibly remove spikes from 
geometries. I believe that a spike could be defined as an angle of <-179 
degrees or >179 degrees between two adjacent segments. Any suggestions?

-Jukka Rahkonen-


--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


___

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



--

Site24x7 APM Insight: Get Deep Visibility into Application Performance

APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month

Monitor end-to-end web transactions and take corrective actions now

Troubleshoot faster and improve end-user experience. Signup Now!

http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


___

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


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
___
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

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] NPE from the new Dissolve tool

2016-03-10 Thread Rahkonen Jukka (MML)
Hi,

Confirmed, works perfectly now with my original data.

-Jukka-

Michaël Michaud wrote:

Hi Jukka,

Thanks for reporting, should be fixed in r4837
UnaryUnionOp returns unexpectedly a null for an empty list input (while I was 
expecting an empty geometry as output)

Michaël
Le 08/03/2016 12:54, Rahkonen Jukka (MML) a écrit :
Hi,

I have tried to dissolve features (points) by a common attribute with the new 
Dissolve tool but it gives Null point exception if I have the default 
Union/Merge aggregation selected.

java.lang.NullPointerException
 at 
org.openjump.core.ui.plugin.tools.aggregate.Aggregators$Union.getResult(Aggregators.java:184)
 at 
org.openjump.core.ui.plugin.tools.aggregate.Aggregators$Union.getResult(Aggregators.java:163)
 at 
org.openjump.core.ui.plugin.tools.aggregate.FeatureCollectionAggregator.getAggregatedFeatureCollection(FeatureCollectionAggregator.java:80)
 at 
org.openjump.core.ui.plugin.tools.Dissolve2PlugIn.run(Dissolve2PlugIn.java:204)
 at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
 at java.lang.Thread.run(Unknown Source)

Method "Collect" does not through NPE. Both two old Dissolve tools gives result 
without complaints. Should I not use Union/Merge for points or what might be 
the reason for NPE?

Environment:
Version 20160217 snapshot rev.4824
Java 1.7.0_07(amd64)
Windows 7

-Jukka Rahkonen-





--

Transform Data into Opportunity.

Accelerate data analysis in your applications with

Intel Data Analytics Acceleration Library.

Click to learn more.

http://makebettercode.com/inteldaal-eval




___

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

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Remove spike plugin

2016-03-13 Thread Rahkonen Jukka (MML)
Hi Michaël,

I tested the plugin with my problematic data. Plugin is at least very fast and 
it processed the whole layer in 25 seconds. However, it is a bit difficult to 
investigate what it really did because the majority of polygons are without 
spikes. Could it be possible to add an option that only locates the spikes and 
creates same kind of report layers than the basic QA tool does?


-Jukka-


Michaël Michaud wrote:

> Hi Jukka,

> Just added a plugin to remove spikes. We can include it in the 1.9.1 or 
> deactivate it from default-plugin.xml to let you more time to test.
I used two parameters (distance / angle) which may have a slightly different 
effect, but it may be more difficult to use. Let me know what you think.
I did not make any difference between internal and external angles.

| vertex A is removed if angle < angle-tolerance AND distance < dist-tolerance

A
|\angle
|  \
|\
|  \
|<--> distance
|
|

Michaël

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics 
Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Remove spike plugin

2016-03-13 Thread Rahkonen Jukka (MML)
Hi,

With these data OJ is using 7 GB of memory out of 8 that I have and calculating 
the differences has continued for 45 minutes now. It is quite a much compared 
with the 25 seconds that was needed for running the Remove spikes.

We got the data from outside and we would like to send a report about the 
spikes so that they could be removed already in the native data. The layer 
showing the removed vertices would be good also for that purpose.

-Jukka-

Michaël Michaud wrote>

Hi,

A good tool to find what the plugin did is "QA>Calculate geometry differences"

I have two enhancements in mind :
- produce a layer with the location of removed vertices (as removed vertices 
will often be out of the new polygon, I'm not sure it will be readable though, 
maybe I'll choose to copy the full original polygon of just the two segments 
involved in the correction...)
- an option to prevent the production of invalid geometries (currently, 
removing a spike can produce invalid geometries)

Michaël


Le 13/03/2016 19:24, Rahkonen Jukka (MML) a écrit :
> Hi Michaël,
>
> I tested the plugin with my problematic data. Plugin is at least very fast 
> and it processed the whole layer in 25 seconds. However, it is a bit 
> difficult to investigate what it really did because the majority of polygons 
> are without spikes. Could it be possible to add an option that only locates 
> the spikes and creates same kind of report layers than the basic QA tool does?
>
>
> -Jukka-
>
>
> Michaël Michaud wrote:
>
>> Hi Jukka,
>> Just added a plugin to remove spikes. We can include it in the 1.9.1 or 
>> deactivate it from default-plugin.xml to let you more time to test.
> I used two parameters (distance / angle) which may have a slightly different 
> effect, but it may be more difficult to use. Let me know what you think.
> I did not make any difference between internal and external angles.
>
> | vertex A is removed if angle < angle-tolerance AND distance < 
> | dist-tolerance
>
> A
> |\angle
> |  \
> |\
> |  \
> |<--> distance
> |
> |
>
> Michaël
>
> --
> 
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with Intel Data Analytics 
> Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> --
> 
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with Intel Data 
> Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics 
Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJUMP adopts java 1.7

2016-03-15 Thread Rahkonen Jukka (MML)
Hi,

Because 1.7 is practically end-of-life 
https://java.com/en/download/faq/java_7.xml I wouldn't call this as an too 
early step.



-Jukka Rahkonen-
 
Michaël Michaud wrote:

Hi all,

I just switched compilation environment to java1.7 in the pom.
If any of you has strong argument against a switch to 1.7 for the next official 
release, please speak now,

Michaël

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics 
Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Cleaning, formatting rewriting

2016-03-23 Thread Rahkonen Jukka (MML)
Hi,

Michaël seems to do much work with "Cleaning, formatting rewriting". As a 
non-programmer I would like to know what and why, and what benefit OpenJUMP 
will have from this code review.

Regards,

-Jukka Rahkonen-
--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cleaning, formatting rewriting

2016-03-24 Thread Rahkonen Jukka (MML)
Hi,

I was not frightened at all, just curious and also glad. Cleaning old code that 
is not really broken is something that usually remains undone.  Another example 
is developer "goatbar" who has been cleaning the codebase of GDAL with his 
+1400 changesets
https://trac.osgeo.org/gdal/search?q=goatbar&noquickjump=1&changeset=on

I have also seen in the Geoserver project how much work it can require if there 
is a need to migrate over very many library versions like with Wicket 1.4 from 
2009 -> Wicket 7.x https://wiki.osgeo.org/wiki/GeoServer_Code_Sprint_2016. 
Upgrading to Spring-4 is also a big task even it is not so much delayed 
https://github.com/geoserver/geoserver/wiki/Spring-4-Upgrade.


-Jukka Rahkonen- 

edgar.soldin wrote:

> as far as i have seen the changes were more of a formatting natures so far. 
> but, Jukka is right of course, touching existing working code is prone to 
> introduce errors.

> that being said, i trust you'll be extra careful and try not to introduce new 
> code if not absolutely needed.

..ede

rOn 24.03.2016 00:01, Michaël Michaud wrote:
> Hi Jukka,
> 
> Some benefits are :
> - making the code more readable (with for each loop, generics, 
> autoboxing : formatting and using simpler syntax help to understand 
> the code more quickly)
> - making the code more safe (using generics, try with resource)
> - most of things I rewrite are suggestions from my IDE (it may detect actual 
> bugs, but more often
>   "potential" bug or simply bad practises )
> - removing dead code (useless bytes to load) or duplicated code (error 
> prone)
> - for me, it is also a good way to have a better knowledge of the codebase.
> ...
> 
> Benefit is not very high for the short term (it is not supposed to change the 
> way OJ works).
> But I hope it will make the code more attractive. I think it may also 
> be a first step for bigger refactoring task if needed.
> 
> Michaël
> 
> Le 23/03/2016 22:49, Rahkonen Jukka (MML) a écrit :
>>
>> Hi,
>>
>>  
>>
>> Michaël seems to do much work with "Cleaning, formatting rewriting". As a 
>> non-programmer I would like to know what and why, and what benefit OpenJUMP 
>> will have from this code review.
>>
>>  
>>
>> Regards,
>>
>>  
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> -
>> -
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with Intel Data 
>> Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
>>
>>
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 
> 
> 
> --
> 
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with Intel Data 
> Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
> 
> 
> 
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics 
Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] EPSG codes missing from CTS

2016-03-29 Thread Rahkonen Jukka (MML)
Hi,

Some Finnish projections have new definitions.  Old EPSG codes 3126-3138 have 
new variants with codes 3873-3885. The difference is in false eastings which 
are always 50 for the old codes but for the new codes false easting depends 
on the Gauss-Krüger zone number.

For example
Old:
3126 ETRS89-GK19FIN False Easting=50
New:
3873 ETRS89-GK19FIN False Easting=1950

The new definitions are attached but I am not sure if I should rather create an 
issue in https://github.com/orbisgis/cts/issues.

-Jukka Rahkonen-
# ETRS89 / ETRS-GK19FIN
<3873> +proj=tmerc +lat_0=0 +lon_0=19 +k=1 +x_0=1950 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK20FIN
<3874> +proj=tmerc +lat_0=0 +lon_0=20 +k=1 +x_0=2050 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK21FIN
<3875> +proj=tmerc +lat_0=0 +lon_0=21 +k=1 +x_0=2150 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK22FIN
<3876> +proj=tmerc +lat_0=0 +lon_0=22 +k=1 +x_0=2250 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK23FIN
<3877> +proj=tmerc +lat_0=0 +lon_0=23 +k=1 +x_0=2350 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK24FIN
<3878> +proj=tmerc +lat_0=0 +lon_0=24 +k=1 +x_0=2450 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK25FIN
<3879> +proj=tmerc +lat_0=0 +lon_0=25 +k=1 +x_0=2550 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK26FIN
<3880> +proj=tmerc +lat_0=0 +lon_0=26 +k=1 +x_0=2650 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK27FIN
<3881> +proj=tmerc +lat_0=0 +lon_0=27 +k=1 +x_0=2750 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK28FIN
<3882> +proj=tmerc +lat_0=0 +lon_0=28 +k=1 +x_0=2850 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK29FIN
<3883> +proj=tmerc +lat_0=0 +lon_0=29 +k=1 +x_0=2950 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK30FIN
<3884> +proj=tmerc +lat_0=0 +lon_0=30 +k=1 +x_0=3050 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>
# ETRS89 / ETRS-GK31FIN
<3885> +proj=tmerc +lat_0=0 +lon_0=31 +k=1 +x_0=3150 +y_0=0 +ellps=GRS80 
+towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] EPSG codes missing from CTS

2016-03-29 Thread Rahkonen Jukka (MML)
Hi,

I tend to use epsg-registry as an ultimate reference
http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3873&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:3873

You are right, the old names were like
ETRS89 / ETRS-GK19FIN
and the new ones are like
ETRS89 / GK19FIN

Use the same names, there is no need to make even more confusion.

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr] 
Lähetetty: 30. maaliskuuta 2016 0:28
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] EPSG codes missing from CTS

Hi,

Yes, Ede is right, I should be able to do something.
Let me some days though. I may also have a few updates to do on french proj and 
I saw a flaw i must fix in z coordinate handling.

I saw ETRS / ETRS89-GK19FIN for the old CRS and ETRS89 / GK19FIN for the new 
one on https://epsg.io.
I think I will choose this terminology to avoid name clashing.

Michaël

Le 29/03/2016 16:54, edgar.sol...@web.de a écrit :
> just saw
>
> "
> Originally developed by Michaël Michaud under the name of JGeod, the library 
> was renamed to CTS in 2009. Today CTS is maintained by the Atelier SIG team 
> in collaboration with Michaël Michaud.
> "
>
> it reads like Mike should definitely be able to do something about 
> it.. ede
>
> On 29.03.2016 16:51, edgar.sol...@web.de wrote:
>> the epsg db used by cts seems to be this file
>>   
>> https://github.com/orbisgis/cts/blob/master/src/main/resources/org/ct
>> s/registry/epsg
>>
>> it's probably easy to ask them to update it to the latest EPSG codes.
>>
>> alternatively i imagine that we can provide an updated file within OJ for 
>> cts to use.
>>
>> ..ede
>>
>> On 29.03.2016 16:45, Rahkonen Jukka (MML) wrote:
>>> Hi,
>>>
>>>   
>>>
>>> Some Finnish projections have new definitions.  Old EPSG codes 3126-3138 
>>> have new variants with codes 3873-3885. The difference is in false eastings 
>>> which are always 50 for the old codes but for the new codes false 
>>> easting depends on the Gauss-Krüger zone number.
>>>
>>>   
>>>
>>> For example
>>>
>>> Old:
>>>
>>> 3126 ETRS89-GK19FIN False Easting=50
>>>
>>> New:
>>>
>>> 3873 ETRS89-GK19FIN False Easting=1950
>>>
>>>   
>>>
>>> The new definitions are attached but I am not sure if I should rather 
>>> create an issue in https://github.com/orbisgis/cts/issues.
>>>
>>>   
>>>
>>> -Jukka Rahkonen-
>>>
>>>
>>>
>>> 
>>> --
>>> Transform Data into Opportunity.
>>> Accelerate data analysis in your applications with Intel Data 
>>> Analytics Acceleration Library.
>>> Click to learn more.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
>>>
>>>
>>>
>>> ___
>>> Jump-pilot-devel mailing list
>>> Jump-pilot-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>>
>> -
>> -
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with Intel Data 
>> Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
> --
> 
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with Intel Data 
> Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with Intel Data Analytics 
Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] How to revert r4879?

2016-04-05 Thread Rahkonen Jukka (MML)
Hi,

I noticed too late that Babel Fish which I use for translations is saving End 
Of Line in Windows style LF+CR while language files in SVN have just LF. That 
lead to all too big changeset r4879 which I tried to revert TortoiseSVN but so 
fat I have only managed to revert change on my local machine. Could someone 
tell how to finalize the revert with Tortoise of revert the changeset for me?  
I could make a new changeset and change all LF+CR back to LF but reverting 
feels like a better option.

-Jukka Rahkonen-
--
___
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 revert r4879?

2016-04-05 Thread Rahkonen Jukka (MML)
Thanks Ede.  

I hope that I did it right. Fortunately a Finnish language file is good for 
training because it can't  make any big damage for other users. Somehow it 
looks like I was not editing the most new WFS language file. LF+CR was actually 
not the problem, they were there already.

-Jukka-

edgar.soldin wrote:

On 05.04.2016 15:56, Rahkonen Jukka (MML) wrote:
> Hi,
> 
>  
> 
> I noticed too late that Babel Fish which I use for translations is saving End 
> Of Line in Windows style LF+CR while language files in SVN have just LF. That 
> lead to all too big changeset r4879 which I tried to revert TortoiseSVN but 
> so fat I have only managed to revert change on my local machine. Could 
> someone tell how to finalize the revert with Tortoise of revert the changeset 
> for me?  I could make a new changeset and change all LF+CR back to LF but 
> reverting feels like a better option.
> 
>  

did you try
 https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-rollback.html
already?

make sure to commit after you reverted locally.

..ede

--
___
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] Some feedback about WFS plugin

2016-04-05 Thread Rahkonen Jukka (MML)
Hi,

I was checking the translation of the WFS plugin and made some notes:



1)  In the Properties tab, the window that shows the attributes is quite 
narrow and it can't be made any wider.

2)  In the Request tab, button "response" can't be translated.

3)  Validate Request: it would be nice if the invalid row could be 
highlighted or if the message contained a row number. There may be many 
elements with the same name in the XML request, like ogc:Literal,

4)  The Response window could have one more option: Save the body of the 
response without the headers into a file. Sometimes the GML can be valid for 
other programs but OpenJUMP can't parse it into JTS features for some reason.

Regards,

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


Re: [JPP-Devel] Some feedback about WFS plugin

2016-04-06 Thread Rahkonen Jukka (MML)
edgar.soldin wrote:
 
> On 06.04.2016 01:00, Rahkonen Jukka (MML) wrote:
>> Hi,
>> 
>>  
>> 
>> I was checking the translation of the WFS plugin and made some notes:
>> 
>> 1)  In the Properties tab, the window that shows the attributes is quite 
>> narrow and it can't be made any wider.

> fixed in latest snapshot 4884

>> 2)  In the Request tab, button "response" can't be translated.

> uses FeatureResearchDialog.response=Response from the language file now
 
>> 3)  Validate Request: it would be nice if the invalid row could be 
>> highlighted or if the message contained a row number. There may be many 
>> elements with the same name in the XML request, like ogc:Literal,

> added line numbers.. the offending line can now be seen in the details of the 
> error dialog
 
>> 4)  The Response window could have one more option: Save the body of the 
>> response without the headers into a file. Sometimes the GML can be valid for 
>> other programs but OpenJUMP can't parse it into JTS features for some reason.
>> 

> to lazy to implement that now. you can copy/paste in a text editor as a 
> workaround using Strg+C/V however.

I know, feeling too lazy for so many key clicks sometimes, however.

Thanks for the improvements.

..ede

--
___
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] Faster makeValid tool

2016-04-06 Thread Rahkonen Jukka (MML)
Hi,

I have a layer with 1.2 million polygons. I can find with geometry.isValid 
query in 30 seconds that 142 of those are not valid.  Running the make valid 
tool takes rather a long time because it seems to clone the layer and perform 
makeValid for all the features 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/org/openjump/core/ui/plugin/tools/MakeValidPlugIn.java.

As an alternative it might be nice to have a speedy tool that selects just the 
invalid geometries, makes them valid, and writes them into a new layer 
"validated features".

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


[JPP-Devel] NPE from OpenJUMP 1.9 if shapefile is without .cpg

2016-04-06 Thread Rahkonen Jukka (MML)
Hi,

OpenJUMP 1.9 can't open some of my shapefiles while they open fine with OJ 1.8. 
I noticed that NullPointerException comes from getCharset, and indeed, if I 
copied and renamed a .cpg file from another place the NPE went away. However, I 
think that it should not be mandatory to have .cpg file. Here is the error from 
the console window:

C:\data\plohkot_2013\plohkot_2013_TM35FIN.shp extract null
[INFO] 23:21:29.708 java.lang.NullPointerException
at java.io.Reader.(Unknown Source)
at java.io.InputStreamReader.(Unknown Source)
at com.vividsolutions.jump.io.ShapefileReader.getCharset(ShapefileReader
.java:319)
at com.vividsolutions.jump.io.ShapefileReader.read(ShapefileReader.java:
150)
at com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler
.read(DelegatingCompressedFileHandler.java:76)
at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.ex
ecuteQuery(ReaderWriterFileDataSource.java:64)
at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.process(DataSo
urceFileLayerLoader.java:170)
at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.open(DataSourc
eFileLayerLoader.java:258)
at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWiza
rd.java:158)
at org.openjump.core.ui.plugin.file.OpenWizardPlugIn.run(OpenWizardPlugI
n.java:109)
at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrap
per.run(TaskMonitorManager.java:152)
at java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException
at java.io.Reader.(Unknown Source)
at java.io.InputStreamReader.(Unknown Source)
at com.vividsolutions.jump.io.ShapefileReader.getCharset(ShapefileReader
.java:319)
at com.vividsolutions.jump.io.ShapefileReader.read(ShapefileReader.java:
150)
at com.vividsolutions.jump.io.datasource.DelegatingCompressedFileHandler
.read(DelegatingCompressedFileHandler.java:76)
at com.vividsolutions.jump.io.datasource.ReaderWriterFileDataSource$1.ex
ecuteQuery(ReaderWriterFileDataSource.java:64)
at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.process(DataSo
urceFileLayerLoader.java:170)
at org.openjump.core.ui.io.file.DataSourceFileLayerLoader.open(DataSourc
eFileLayerLoader.java:258)
at org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(OpenFileWiza
rd.java:158)
at org.openjump.core.ui.plugin.file.OpenWizardPlugIn.run(OpenWizardPlugI
n.java:109)
at com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrap
per.run(TaskMonitorManager.java:152)
at java.lang.Thread.run(Unknown Source)
[INFO] 23:21:29.716 Warning: Problems were encountered. See Output Window for de
tails.
[INFO] 23:21:29.733 Done. Current committed memory:plugin.AbstractPlugIn.executi
ng = Executing189 MB
[INFO] 23:21:29.768 Activating Select Features Tool
[INFO] 23:21:32.148 Activating Zoom In/Out

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


Re: [JPP-Devel] Faster makeValid tool

2016-04-06 Thread Rahkonen Jukka (MML)
Hi Michaël,

I was just thinking also about fix in place alternative which feels good. 
Experts can naturally use a manual option: select by isValid <>1, replicate to 
new layer, makeValid and continue with checking and merging the corrected 
features back to the source layer.

Thanks to 64 bit java OpenJUMP can pretty well handle a layer of million 
features with 8 GB of RAM but more memory is needed if such layers are 
duplicated.

-Jukka

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 6. huhtikuuta 2016 23:58
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Faster makeValid tool

Hi Jukka,

Right. Maybe an option to fix geometries in place (replacing geometries in the 
curent layers) would be even easier to use. What do you think ?

Michaël
Le 06/04/2016 21:19, Rahkonen Jukka (MML) a écrit :
Hi,

I have a layer with 1.2 million polygons. I can find with geometry.isValid 
query in 30 seconds that 142 of those are not valid.  Running the make valid 
tool takes rather a long time because it seems to clone the layer and perform 
makeValid for all the features 
https://sourceforge.net/p/jump-pilot/code/HEAD/tree/core/trunk/src/org/openjump/core/ui/plugin/tools/MakeValidPlugIn.java.

As an alternative it might be nice to have a speedy tool that selects just the 
invalid geometries, makes them valid, and writes them into a new layer 
"validated features".

-Jukka Rahkonen-




--




___

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

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


Re: [JPP-Devel] SVN: [4887] core/trunk

2016-04-07 Thread Rahkonen Jukka (MML)
Idea, I suppose, is not to stop if archive does not have for example .cpg part 
of shapefile but check if it can be found outside the archive. I may be wrong, 
though.

-Jukka-

Lähettäjä: edgar.sol...@web.de
Lähetetty: ‎7.‎4.‎2016 10:56
Vastaanottaja: OpenJump develop and 
use
Aihe: Re: [JPP-Devel] SVN: [4887] core/trunk

Mike,

alternatively we can throw a FileNotFoundException, as we already do when a 
file within an archive is not found. ok if i commit a quick patch?

..ede

On 07.04.2016 08:55, edgar.sol...@web.de wrote:
> morning Mike,
>
> sorry, don't like your CompressedFile.java patch. it should not silently fail 
> if a file path given does not exist. can you please test that in your calling 
> code where it belongs?
>
> ..ede
>
> PS:) http://dilbert.com/strip/2016-04-03
>
> On 06.04.2016 23:43, jump-pilot-...@lists.sourceforge.net wrote:
>> Revision: 4887
>>   http://sourceforge.net/p/jump-pilot/code/4887
>> Author:   michaudm
>> Date: 2016-04-06 21:43:57 + (Wed, 06 Apr 2016)
>> Log Message:
>> ---
>> fix a regression introduced after 1.9.1 release in shapefile (cpg) reader
>>
>> Modified Paths:
>> --
>> core/trunk/ChangeLog
>> core/trunk/src/com/vividsolutions/jump/io/CompressedFile.java
>> core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java
>>
>> Modified: core/trunk/ChangeLog
>> ===
>> --- core/trunk/ChangeLog 2016-04-06 18:53:09 UTC (rev 4886)
>> +++ core/trunk/ChangeLog 2016-04-06 21:43:57 UTC (rev 4887)
>> @@ -5,6 +5,7 @@
>>
>>  2016-04-06 mmichaud 
>>* upgrade set-attribute plugin to v0.7.1
>> +  * fix a regression introduced after 1.9.1 release in shapefile (cpg) 
>> reader
>>
>>  2016-04-05 ede
>>* fix bug 414 "Image Layer Resizing lost after loading project"
>>
>> Modified: core/trunk/src/com/vividsolutions/jump/io/CompressedFile.java
>> ===
>> --- core/trunk/src/com/vividsolutions/jump/io/CompressedFile.java
>> 2016-04-06 18:53:09 UTC (rev 4886)
>> +++ core/trunk/src/com/vividsolutions/jump/io/CompressedFile.java
>> 2016-04-06 21:43:57 UTC (rev 4887)
>> @@ -55,6 +55,7 @@
>>  import java.util.zip.ZipEntry;
>>  import java.util.zip.ZipInputStream;
>>
>> +import com.vividsolutions.jump.workbench.Logger;
>>  import org.apache.commons.compress.archivers.ArchiveEntry;
>>  import org.apache.commons.compress.archivers.ArchiveException;
>>  import org.apache.commons.compress.archivers.ArchiveInputStream;
>> @@ -212,7 +213,8 @@
>>public static InputStream openFile(String filePath, String 
>> compressedEntry)
>>throws IOException {
>>
>> -System.out.println(filePath + " extract " + compressedEntry);
>> +Logger.info(filePath + " extract " +
>> +(compressedEntry==null?"":" (" + compressedEntry + ")"));
>>
>>  //if (isTar(filePath)) {
>>  //  InputStream is = new BufferedInputStream( new 
>> FileInputStream(filePath) );
>> @@ -256,7 +258,7 @@
>>
>>  // if no compressedEntry was given we are supposed to open a plain file
>>  // return fileinputstream or compressorinputstream,
>> -if (compressedEntry == null) {
>> +if (compressedEntry == null && new File(filePath).exists()) {
>>InputStream bis = new BufferedInputStream(new 
>> FileInputStream(filePath));
>>
>>// try if we are a plain compressed file
>>
>> Modified: core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java
>> ===
>> --- core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java   
>> 2016-04-06 18:53:09 UTC (rev 4886)
>> +++ core/trunk/src/com/vividsolutions/jump/io/ShapefileReader.java   
>> 2016-04-06 21:43:57 UTC (rev 4887)
>> @@ -315,17 +315,20 @@
>>  // if a cpg file is found, charset used is the one defined in the 
>> cpg file
>>  //BufferedReader cpgCharsetReader = null;
>>  try (InputStream cpgCharsetInputStream =
>> - getCpgInputStream(shpFileName, 
>> dp.getProperty(COMPRESSED_FILE_PROPERTY_KEY));
>> - BufferedReader cpgCharsetReader =
>> - new BufferedReader(new 
>> InputStreamReader(cpgCharsetInputStream))){
>> -String cpgCharset = cpgCharsetReader.readLine();
>> -cpgCharset = esri_cp_2_java(cpgCharset);
>> -try {
>> -if (Charset.isSupported(cpgCharset)) {
>> -charsetName = cpgCharset;
>> + getCpgInputStream(shpFileName, 
>> dp.getProperty(COMPRESSED_FILE_PROPERTY_KEY))) {
>> +if (cpgCharsetInputStream != null) {
>> +try (BufferedReader cpgCharsetReader =
>> + new BufferedReader(new 
>> InputStreamReader(cpgCharsetInputStream))) {
>> +  

Re: [JPP-Devel] Database drivers and 2D/3D geometries

2016-04-13 Thread Rahkonen Jukka (MML)
Hi,

I am getting this error when r4894 is trying to read the table list from 
Oracle. I do not know if it is a regression or just a normal bug.

java.lang.RuntimeException: Invalid query: select t.column_name, t.diminfo, 
t.srid, 'SDO_GEOMETRY' as type from ALL_SDO_GEOM_METADATA t where t.owner = 
'TESTUSER' and t.table_name = 'TEST_TABLE'
at 
com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:27)
at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata.getGeometryAttributes(SpatialDatabasesDSMetadata.java:301)
at 
com.vividsolutions.jump.datastore.oracle.OracleDSMetadata.getGeometryAttributes(OracleDSMetadata.java:94)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.getTreeModelData(AddDatastoreLayerPanel.java:294)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.access$600(AddDatastoreLayerPanel.java:55)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$7.yield(AddDatastoreLayerPanel.java:337)
at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$3.run(AddDatastoreLayerPanel.java:107)
at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)
at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLException: Virheellinen saraketyyppi: getInt not 
implemented for class oracle.jdbc.driver.T4CNamedTypeAccessor
at oracle.jdbc.driver.Accessor.unimpl(Accessor.java:414)
at oracle.jdbc.driver.Accessor.getInt(Accessor.java:531)
at 
oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:936)
at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata$3.yield(SpatialDatabasesDSMetadata.java:307)
at 
com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:19)
... 8 more


-Jukka Rahkonen-

Michaël Michaud wrote:

> Hi,

> I just completed the way coord_dimension is handled through database drivers.
Intention is to improve usability of database writer (writing capability is 
available for postgis only but I tried to get something consistent through all 
database drivers to prepare future improvements).

> A quick non-regression test would be appreciated on different db environments.
(particularly for MariaDb and Oracle instances as I have never installed these 
db).

> To make it short, drivers should still work as before with both 2D or 3D 
> geometries stored in the database.

> Michaël



--
Find and fix application performance issues faster with Applications Manager 
Applications Manager provides deep performance insights into multiple tiers of 
your business applications. It resolves application problems quickly and 
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Database drivers and 2D/3D geometries

2016-04-13 Thread Rahkonen Jukka (MML)
Hi,

Yes, you should look at the first number of the GTYPE attribute which has 
nowadays 4 numbers, named as “D” in the documentation

https://docs.oracle.com/database/121/SPATL/GUID-683FF8C5-A773-4018-932D-2AF6EC8BC119.htm#SPATL490

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 13. huhtikuuta 2016 17:44
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Database drivers and 2D/3D geometries

Hi Jukka,

Thanks for the test.
Probably a regression. I did not notice that diminfo in ALL_SDO_GEOM_METADATA
returns an array of objets rather than an int as in other spatial databases.
I tried to fix it in r4895. If it does not work I think I'll have to revert the 
change.

Michaël
Le 13/04/2016 15:45, Rahkonen Jukka (MML) a écrit :

Hi,



I am getting this error when r4894 is trying to read the table list from 
Oracle. I do not know if it is a regression or just a normal bug.



java.lang.RuntimeException: Invalid query: select t.column_name, t.diminfo, 
t.srid, 'SDO_GEOMETRY' as type from ALL_SDO_GEOM_METADATA t where t.owner = 
'TESTUSER' and t.table_name = 'TEST_TABLE'

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:27)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata.getGeometryAttributes(SpatialDatabasesDSMetadata.java:301)

  at 
com.vividsolutions.jump.datastore.oracle.OracleDSMetadata.getGeometryAttributes(OracleDSMetadata.java:94)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.getTreeModelData(AddDatastoreLayerPanel.java:294)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.access$600(AddDatastoreLayerPanel.java:55)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$7.yield(AddDatastoreLayerPanel.java:337)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$3.run(AddDatastoreLayerPanel.java:107)

  at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)

  at java.lang.Thread.run(Unknown Source)

Caused by: java.sql.SQLException: Virheellinen saraketyyppi: getInt not 
implemented for class oracle.jdbc.driver.T4CNamedTypeAccessor

  at oracle.jdbc.driver.Accessor.unimpl(Accessor.java:414)

  at oracle.jdbc.driver.Accessor.getInt(Accessor.java:531)

  at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:936)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata$3.yield(SpatialDatabasesDSMetadata.java:307)

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:19)

  ... 8 more





-Jukka Rahkonen-



Michaël Michaud wrote:



Hi,



I just completed the way coord_dimension is handled through database drivers.

Intention is to improve usability of database writer (writing capability is 
available for postgis only but I tried to get something consistent through all 
database drivers to prepare future improvements).



A quick non-regression test would be appreciated on different db environments.

(particularly for MariaDb and Oracle instances as I have never installed these 
db).



To make it short, drivers should still work as before with both 2D or 3D 
geometries stored in the database.



Michaël







--

Find and fix application performance issues faster with Applications Manager 
Applications Manager provides deep performance insights into multiple tiers of 
your business applications. It resolves application problems quickly and 
reduces your MTTR. Get your free trial!

https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

___

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

--

Find and fix application performance issues faster with Applications Manager

Applications Manager provides deep performance insights into multiple tiers of

your business applications. It resolves application problems quickly and

reduces your MTTR. Get your free trial!

https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

___

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

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly an

Re: [JPP-Devel] Database drivers and 2D/3D geometries

2016-04-13 Thread Rahkonen Jukka (MML)
Sorry Michaël, all wrong information. It is the number of elements in 
DIM_INFO_ARRAY that must be checked 
http://docs.oracle.com/cd/B19306_01/appdev.102/b14255/sdo_objrelschema.htm#i1001937.

Fortunately this information should be reliable:
“The number of dimensions reflected in the DIMINFO information must match the 
number of dimensions of each geometry object in the layer.”

-Jukka-

Lähettäjä: Rahkonen Jukka (MML)
Lähetetty: 13. huhtikuuta 2016 17:51
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Database drivers and 2D/3D geometries

Hi,

Yes, you should look at the first number of the GTYPE attribute which has 
nowadays 4 numbers, named as “D” in the documentation

https://docs.oracle.com/database/121/SPATL/GUID-683FF8C5-A773-4018-932D-2AF6EC8BC119.htm#SPATL490

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 13. huhtikuuta 2016 17:44
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] Database drivers and 2D/3D geometries

Hi Jukka,

Thanks for the test.
Probably a regression. I did not notice that diminfo in ALL_SDO_GEOM_METADATA
returns an array of objets rather than an int as in other spatial databases.
I tried to fix it in r4895. If it does not work I think I'll have to revert the 
change.

Michaël
Le 13/04/2016 15:45, Rahkonen Jukka (MML) a écrit :

Hi,



I am getting this error when r4894 is trying to read the table list from 
Oracle. I do not know if it is a regression or just a normal bug.



java.lang.RuntimeException: Invalid query: select t.column_name, t.diminfo, 
t.srid, 'SDO_GEOMETRY' as type from ALL_SDO_GEOM_METADATA t where t.owner = 
'TESTUSER' and t.table_name = 'TEST_TABLE'

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:27)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata.getGeometryAttributes(SpatialDatabasesDSMetadata.java:301)

  at 
com.vividsolutions.jump.datastore.oracle.OracleDSMetadata.getGeometryAttributes(OracleDSMetadata.java:94)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.getTreeModelData(AddDatastoreLayerPanel.java:294)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.access$600(AddDatastoreLayerPanel.java:55)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$7.yield(AddDatastoreLayerPanel.java:337)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$3.run(AddDatastoreLayerPanel.java:107)

  at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)

  at java.lang.Thread.run(Unknown Source)

Caused by: java.sql.SQLException: Virheellinen saraketyyppi: getInt not 
implemented for class oracle.jdbc.driver.T4CNamedTypeAccessor

  at oracle.jdbc.driver.Accessor.unimpl(Accessor.java:414)

  at oracle.jdbc.driver.Accessor.getInt(Accessor.java:531)

  at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:936)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata$3.yield(SpatialDatabasesDSMetadata.java:307)

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:19)

  ... 8 more





-Jukka Rahkonen-



Michaël Michaud wrote:



Hi,



I just completed the way coord_dimension is handled through database drivers.

Intention is to improve usability of database writer (writing capability is 
available for postgis only but I tried to get something consistent through all 
database drivers to prepare future improvements).



A quick non-regression test would be appreciated on different db environments.

(particularly for MariaDb and Oracle instances as I have never installed these 
db).



To make it short, drivers should still work as before with both 2D or 3D 
geometries stored in the database.



Michaël







--

Find and fix application performance issues faster with Applications Manager 
Applications Manager provides deep performance insights into multiple tiers of 
your business applications. It resolves application problems quickly and 
reduces your MTTR. Get your free trial!

https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

___

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

--

Find and fix application performance issues faster with Applications Manager

Applications Manager provides deep performance insights into multiple tiers of

your business applications. It resolves application problems quickly and

reduces your MTTR. Get y

Re: [JPP-Devel] Database drivers and 2D/3D geometries

2016-04-13 Thread Rahkonen Jukka (MML)
Hi,

I made some more tests. The documentation told that all geometries must have 
same dimensions as DIMINFO in the metadata. But see this:

CREATE TABLE temp (
  mkt_id NUMBER PRIMARY KEY,
geoloc SDO_GEOMETRY);


INSERT INTO user_sdo_geom_metadata
(TABLE_NAME,
 COLUMN_NAME,
 DIMINFO,
 SRID)
  VALUES (
  'temp',
  'geoloc',
  SDO_DIM_ARRAY(   -- 20X20 grid
SDO_DIM_ELEMENT('X', 0, 20, 0.005),
SDO_DIM_ELEMENT('Y', 0, 20, 0.005)
 ),
  NULL   -- SRID
);

insert into temp values(
1, SDO_GEOMETRY('POINT (1 1)'));

insert into temp values(
2, SDO_GEOMETRY('POINT (2 2 2)'));

SQL> select geoloc from temp;

GEOLOC(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)

SDO_GEOMETRY(2001, NULL, SDO_POINT_TYPE(1, 1, NULL), NULL, NULL)
SDO_GEOMETRY(3001, NULL, SDO_POINT_TYPE(2, 2, 2), NULL, NULL)

So according to the documentation all the geometries must have the dimension 
that is defined in the SDO_GEOM_METADATA but there does not seem to be any 
constraint that really guarantees that.

When it comes to geometry type, by default there is no constraint for that in 
Oracle either. However, if the table has a spatial index which is created with 
a GTYPE parameter it creates a constraint at the same. Such index is created as

CREATE INDEX SPATIAL_IDX ON TABLE(GEOLOC)
INDEXTYPE IS MDSYS.SPATIAL_INDEX
PARAMETERS ('layer_gtype=POINT');

Checking if table has a geometry constraint is this easy:

SELECT META.SDO_LAYER_GTYPE FROM ALL_INDEXES INFO INNER JOIN 
MDSYS.ALL_SDO_INDEX_METADATA META ON INFO.INDEX_NAME = META.SDO_INDEX_NAME 
WHERE INFO.TABLE_NAME = :1  AND REPLACE(meta.sdo_column_name, '"') = :2

This is a query that Geoserver is using, taken from thread 
http://permalink.gmane.org/gmane.comp.gis.geoserver.user/47444

DB Query plugin suits very well for Oracle because it does not care about 
metadata that may be missing or can be wrong.

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 13. huhtikuuta 2016 20:11
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Database drivers and 2D/3D geometries

Hi,

Actually, the query get geo column info from ALL_SDO_GEOM_METADATA view which 
has the following definition



(

  TABLE_NAME   
VARCHAR2<http://www.oracle.com/pls/db92/db92.drilldown?word=VARCHAR2>(32),

  COLUMN_NAME  
VARCHAR2<http://www.oracle.com/pls/db92/db92.drilldown?word=VARCHAR2>(32),

  DIMINFO  SDO_DIM_ARRAY,

  SRID NUMBER<http://www.oracle.com/pls/db92/db92.drilldown?word=NUMBER>

);

I now try to get coord_dimension from DIMINFO array length (see next r4895 - 
don't know why it had not yet built).

By the way, where geometry type info can be retrieved from oracle database...

Michaël

Le 13/04/2016 16:50, Rahkonen Jukka (MML) a écrit :
Hi,

Yes, you should look at the first number of the GTYPE attribute which has 
nowadays 4 numbers, named as "D" in the documentation

https://docs.oracle.com/database/121/SPATL/GUID-683FF8C5-A773-4018-932D-2AF6EC8BC119.htm#SPATL490

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 13. huhtikuuta 2016 17:44
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] Database drivers and 2D/3D geometries

Hi Jukka,

Thanks for the test.
Probably a regression. I did not notice that diminfo in ALL_SDO_GEOM_METADATA
returns an array of objets rather than an int as in other spatial databases.
I tried to fix it in r4895. If it does not work I think I'll have to revert the 
change.

Michaël
Le 13/04/2016 15:45, Rahkonen Jukka (MML) a écrit :

Hi,



I am getting this error when r4894 is trying to read the table list from 
Oracle. I do not know if it is a regression or just a normal bug.



java.lang.RuntimeException: Invalid query: select t.column_name, t.diminfo, 
t.srid, 'SDO_GEOMETRY' as type from ALL_SDO_GEOM_METADATA t where t.owner = 
'TESTUSER' and t.table_name = 'TEST_TABLE'

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:27)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata.getGeometryAttributes(SpatialDatabasesDSMetadata.java:301)

  at 
com.vividsolutions.jump.datastore.oracle.OracleDSMetadata.getGeometryAttributes(OracleDSMetadata.java:94)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.getTreeModelData(AddDatastoreLayerPanel.java:294)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.access$600(AddDatastoreLayerPanel.java:55)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$7.yield(AddDatastoreLayerPanel.java:337)

  at 
com.vividsolutions.ju

Re: [JPP-Devel] Database drivers and 2D/3D geometries

2016-04-14 Thread Rahkonen Jukka (MML)
Hi,

I can open tables from Oracle again with r4895 thus no need to revert.

-Jukka-


Michaël Michaud wrote:

Hi,

Actually, the query get geo column info from ALL_SDO_GEOM_METADATA view which 
has the following definition



(

  TABLE_NAME   
VARCHAR2<http://www.oracle.com/pls/db92/db92.drilldown?word=VARCHAR2>(32),

  COLUMN_NAME  
VARCHAR2<http://www.oracle.com/pls/db92/db92.drilldown?word=VARCHAR2>(32),

  DIMINFO  SDO_DIM_ARRAY,

  SRID NUMBER<http://www.oracle.com/pls/db92/db92.drilldown?word=NUMBER>

);

I now try to get coord_dimension from DIMINFO array length (see next r4895 - 
don't know why it had not yet built).

By the way, where geometry type info can be retrieved from oracle database...

Michaël

Le 13/04/2016 16:50, Rahkonen Jukka (MML) a écrit :
Hi,

Yes, you should look at the first number of the GTYPE attribute which has 
nowadays 4 numbers, named as "D" in the documentation

https://docs.oracle.com/database/121/SPATL/GUID-683FF8C5-A773-4018-932D-2AF6EC8BC119.htm#SPATL490

-Jukka-

Lähettäjä: Michaël Michaud [mailto:m.michael.mich...@orange.fr]
Lähetetty: 13. huhtikuuta 2016 17:44
Vastaanottaja: 
jump-pilot-devel@lists.sourceforge.net<mailto:jump-pilot-devel@lists.sourceforge.net>
Aihe: Re: [JPP-Devel] Database drivers and 2D/3D geometries

Hi Jukka,

Thanks for the test.
Probably a regression. I did not notice that diminfo in ALL_SDO_GEOM_METADATA
returns an array of objets rather than an int as in other spatial databases.
I tried to fix it in r4895. If it does not work I think I'll have to revert the 
change.

Michaël
Le 13/04/2016 15:45, Rahkonen Jukka (MML) a écrit :

Hi,



I am getting this error when r4894 is trying to read the table list from 
Oracle. I do not know if it is a regression or just a normal bug.



java.lang.RuntimeException: Invalid query: select t.column_name, t.diminfo, 
t.srid, 'SDO_GEOMETRY' as type from ALL_SDO_GEOM_METADATA t where t.owner = 
'TESTUSER' and t.table_name = 'TEST_TABLE'

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:27)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata.getGeometryAttributes(SpatialDatabasesDSMetadata.java:301)

  at 
com.vividsolutions.jump.datastore.oracle.OracleDSMetadata.getGeometryAttributes(OracleDSMetadata.java:94)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.getTreeModelData(AddDatastoreLayerPanel.java:294)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel.access$600(AddDatastoreLayerPanel.java:55)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$7.yield(AddDatastoreLayerPanel.java:337)

  at 
com.vividsolutions.jump.workbench.ui.plugin.datastore.AddDatastoreLayerPanel$3.run(AddDatastoreLayerPanel.java:107)

  at 
com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager$TaskWrapper.run(TaskMonitorManager.java:152)

  at java.lang.Thread.run(Unknown Source)

Caused by: java.sql.SQLException: Virheellinen saraketyyppi: getInt not 
implemented for class oracle.jdbc.driver.T4CNamedTypeAccessor

  at oracle.jdbc.driver.Accessor.unimpl(Accessor.java:414)

  at oracle.jdbc.driver.Accessor.getInt(Accessor.java:531)

  at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:936)

  at 
com.vividsolutions.jump.datastore.spatialdatabases.SpatialDatabasesDSMetadata$3.yield(SpatialDatabasesDSMetadata.java:307)

  at com.vividsolutions.jump.datastore.jdbc.JDBCUtil.execute(JDBCUtil.java:19)

  ... 8 more





-Jukka Rahkonen-



Michaël Michaud wrote:



Hi,



I just completed the way coord_dimension is handled through database drivers.

Intention is to improve usability of database writer (writing capability is 
available for postgis only but I tried to get something consistent through all 
database drivers to prepare future improvements).



A quick non-regression test would be appreciated on different db environments.

(particularly for MariaDb and Oracle instances as I have never installed these 
db).



To make it short, drivers should still work as before with both 2D or 3D 
geometries stored in the database.



Michaël







--

Find and fix application performance issues faster with Applications Manager 
Applications Manager provides deep performance insights into multiple tiers of 
your business applications. It resolves application problems quickly and 
reduces your MTTR. Get your free trial!

https://ad.doubleclick.net/ddm/clk/302982198;130105516;z

___

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

--

Find and f

[JPP-Devel] Intersects and Geometrycollection

2016-04-15 Thread Rahkonen Jukka (MML)

Hi,

It seems that Intersects operation does not work with Geometrycollections but 
OpenJUMP does not throw any error or warning. JTS Test builder, version 1.13 
gives this error

java.lang.IllegalArgumentException : java.lang.IllegalArgumentException: This 
method does not support GeometryCollection arguments

Data for testing:

Layer 1:
LINESTRING (
240 260,
1100 740
)

Layer 2:


GEOMETRYCOLLECTION (
LINESTRING (
580 180,
1060 220
),
POINT (
740 420
),
POLYGON ((
300 520,
671 685,
660 320,
300 520
)),
POINT (
940 540
))

-Jukka Rahkonen-
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] SVN: [4902] core/trunk/src

2016-04-25 Thread Rahkonen Jukka (MML)
Hi,

If I can read the changeset there are lots of whitespace changes like
-  private String wfsUrl;
+   private String wfsUrl;

Do we have guidelines for coding style? GDAL has this 
https://trac.osgeo.org/gdal/wiki/rfc8_devguide

-Jukka Rahkonen-



-Alkuperäinen viesti-
Lähettäjä: jump-pilot-...@lists.sourceforge.net 
[mailto:jump-pilot-...@lists.sourceforge.net] 
Lähetetty: 24. huhtikuuta 2016 12:49
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: [JPP-Devel] SVN: [4902] core/trunk/src

Revision: 4902
  http://sourceforge.net/p/jump-pilot/code/4902
Author:   ma15569
Date: 2016-04-24 09:49:13 + (Sun, 24 Apr 2016)
Log Message:
---
Workaround to record WFS Layer SRS as SRIDStyle integer - Updated language codes

Modified Paths:
--
core/trunk/src/de/latlon/deejump/wfs/plugin/WFSPlugIn.java
core/trunk/src/language/jump.properties
core/trunk/src/language/jump_cz.properties
core/trunk/src/language/jump_de.properties
core/trunk/src/language/jump_es.properties
core/trunk/src/language/jump_fi.properties
core/trunk/src/language/jump_fr.properties
core/trunk/src/language/jump_hu.properties
core/trunk/src/language/jump_it.properties
core/trunk/src/language/jump_ja_JP.properties
core/trunk/src/language/jump_ml.properties
core/trunk/src/language/jump_pt.properties
core/trunk/src/language/jump_pt_BR.properties
core/trunk/src/language/jump_ta_IN.properties
core/trunk/src/language/jump_te.properties
core/trunk/src/language/jump_zh_CN.properties
core/trunk/src/language/jump_zh_HK.properties

Modified: core/trunk/src/de/latlon/deejump/wfs/plugin/WFSPlugIn.java
===
--- core/trunk/src/de/latlon/deejump/wfs/plugin/WFSPlugIn.java  2016-04-19 
16:40:13 UTC (rev 4901)
+++ core/trunk/src/de/latlon/deejump/wfs/plugin/WFSPlugIn.java  2016-04-24 
09:49:13 UTC (rev 4902)
@@ -20,6 +20,7 @@
 import org.deegree.datatypes.QualifiedName;
 import org.deegree.framework.util.StringTools;
 import org.deegree.model.spatialschema.JTSAdapter;
+import org.openjump.core.ccordsys.srid.SRIDStyle;
 
 import com.vividsolutions.jts.geom.Coordinate;
 import com.vividsolutions.jts.geom.Envelope;
@@ -69,241 +70,257 @@
  */
 public class WFSPlugIn extends ThreadedBasePlugIn {
 
-  public final static String I18NPREFIX = WFSExtension.class.getPackage()
-  .getName();
+   public final static String I18NPREFIX = WFSExtension.class.getPackage()
+   .getName();
 
-  private WFSDialog wfsDialog;
+   private WFSDialog wfsDialog;
 
-  private String wfsUrl;
+   private String wfsUrl;
 
-  private static final String[] DEFAULTURLS = new String[] {
-  "http://ows.terrestris.de/geoserver/osm/wfs";,
-  "http://demo.opengeo.org/geoserver/wfs"; };
+   private static final String[] DEFAULTURLS = new String[] {
+   "http://ows.terrestris.de/geoserver/osm/wfs";,
+   "http://demo.opengeo.org/geoserver/wfs"; };
 
-  @Override
-  public void initialize(PlugInContext context) throws Exception {
-WorkbenchContext wbcontext = context.getWorkbenchContext();
+   @Override
+   public void initialize(PlugInContext context) throws Exception {
+   WorkbenchContext wbcontext = context.getWorkbenchContext();
 
-// only active if there's a map panel
-MultiEnableCheck mec = createEnableCheck(wbcontext);
+   // only active if there's a map panel
+   MultiEnableCheck mec = createEnableCheck(wbcontext);
 
-wbcontext.getWorkbench().getFrame().getToolBar()
-.addPlugIn(getIcon(), this, mec, wbcontext);
+   wbcontext.getWorkbench().getFrame().getToolBar()
+   .addPlugIn(getIcon(), this, mec, wbcontext);
 
-// also create menu item
-/*
- * Disabled due to incompatibility to Vivid solutions JUMP1.2 SH, 
2007-05-08
- * context.getFeatureInstaller().addMainMenuItem(this, new String[] {
- * MenuNames.LAYER }, getName(), false, getIcon(), mec);
- */
-  }
+   // also create menu item
+   /*
+* Disabled due to incompatibility to Vivid solutions JUMP1.2 
SH,
+* 2007-05-08 
context.getFeatureInstaller().addMainMenuItem(this, new
+* String[] { MenuNames.LAYER }, getName(), false, getIcon(), 
mec);
+*/
+   }
 
-  @Override
-  public synchronized boolean execute(PlugInContext context) throws Exception {
+   @Override
+   public synchronized boolean execute(PlugInContext context) throws 
Exception {
 
-if (wfsDialog == null) {
-  wfsDialog = new WFSDialog(context.getWorkbenchContext(),
-  context.getWorkbenchFrame(), i18n("mainDialogTitle"));
-}
+   if (wfsDialog == null) {
+   wfsDialog = new WFSDialog(context.getWorkbenchContext(),
+ 

<    1   2   3   4   5   6   >