Re: [JPP-Devel] WMS Layer / SID Layer

2013-04-16 Thread Michaël Michaud

Hi,

For info (wiki will probably need an update about this format)
The exe is available on http://www.lizardtech.com/
under category
Downloads  Tools  Utilities  GeoExpress Command Line Utilities
Don't know if libroject directory is needed and where it must be installed

First time I tried it, I get an error message and had to change my windows
regional parameter from , (comma) to . (dot).

I still get no image, but I have not yet followed the whole procedure 
described in

https://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=MrSID
Do not have error message anymore...

to follow...

Michaël

PS : I just removed the SIDLayer and AddSIDLayerPlugIn class from the 
project.


The main task to keep it working is maintaining the command line 
parameters to support the latest version of the MRSIDS utilities.  
I'll be doing that for SkyJUMP so it is a simple matter to keep OJ up 
to date too.  MRSID,  ECW,  and ArcSDE are OpenJump's gateway to the 
non-free GIS world.  Some of us are still tied to the commercial and 
government sector.


regards,

Larry

On Mon, Apr 15, 2013 at 2:47 PM, Michaël Michaud 
michael.mich...@free.fr mailto:michael.mich...@free.fr wrote:


Hi Larry,

OK, I've located the problem that was causing the NPE.  The MRSID
executables now depend on the geos.dll (C++ port of the Java
Topology Suite) which must be located in the same directory. 
MRSID files now work fine, although not as well as in SkyJUMP.

;-)  (SkyJUMP has added a simple plugin called EditMrSID which
allows adjustment of dynamic range and transparancy.)  I can't
see a reason to keep the SIDLayer class.  Does anyone else?

Thanks a lot,

I hadn't even caught that SIDLayer was deprecated in favour of
MrSIDReferencedImage.
Probably the reason why Stefan removed some references to SID
Layers in WMSLayer code.

SIDLayer has probably to be removed then.


On Mon, Apr 15, 2013 at 10:10 AM, edgar.sol...@web.de
mailto:edgar.sol...@web.de wrote:

is MrSid a format still in use? should we fix it? .. ede


Don't now. I personnaly do not wish to spend time to support this
format, but if we (Larry) can
keep it working without too much effort, maybe some users will be
happy to have it.

Michaël



On 15.04.2013 16:46, Larry Becker wrote:
 HI Michaël,

   Yes, you are correct.  I believe his is not the first
time changes to WMSLayer have affected SIDLayer.  The
original SIDLayer was a quick hack that never got the
refactoring it deserved.  A common abstract parent is
probably the best practice.

   However, I'm not sure why OJ still has the SIDLayer class
since it was incorporated into the last version of
vividsolutions JUMP as MrSIDReferencedImage (which is not
descended from WMSLayer)..  Is there some feature of the
original class that isn't in it? The java2xml perhaps doesn't
support saving to the project as well?   I would like to test
this, but after an hour of trying I was unable to get a MRSID
file to load in OJ.  There are many different wiki pages and
readme files that contradict each other, but I couldn't get
any of them to work.  I finally resorted to debug and found
the required path for the support executables, however I got
an NPE when I tried to open a SID file  at

com.vividsolutions.jump.workbench.imagery.mrsid.MrSIDReferencedImage.getEnvelope(MrSIDReferencedImage.java:98).
 This is the version that doesn't depend on WMSLayer so
something else is going on, but I don't have time right now
to trace it down.

 The path to the executables is: ../lib/ext/etc/  for
mrsidgeodecode.exe and mrsidgeoinfo.exe, and also a tmp
folder for the tiles.

 regards,

 Larry

 On Sun, Apr 14, 2013 at 11:34 AM, Michaël Michaud
michael.mich...@free.fr mailto:michael.mich...@free.fr
mailto:michael.mich...@free.fr
mailto:michael.mich...@free.fr wrote:

 Hi Stefan, Larry

 While updating WMS code, I've found several patches
from Stefan
 about SID Layer handling.
 Seems that SIDLayer inherits from WMS Layer, hence, patches
 have been added in WMS code to exclude cases where WMS
Layers
 are instances of SIDLayer.

 The design seems error prone and probably currently
buggy (and
 maybe more now that I've updated the code with WMS only in
 mind).
 Maybe the model would need an abstract parent for both WMS
 and SID Layer.
 The reason of sharing is probably the common createImage()
 method, but WMSLayer has also references to the WMService
 

[JPP-Devel] build 3507 to 3509 broken

2013-04-16 Thread Michaël Michaud
... but snapshots are back with r3510

sorry for the inconvenience

Michaël

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] OpenJUMP and Inspire

2013-04-16 Thread Rahkonen Jukka
Hi,

For Inspire view services not much necessarily but it depends on needs. Inspire 
view services mean practically WMS 1.3.0 with some additional features 
concerning Multilanguage support, Inspire metadata, layer groups and layer 
style selection.  Additional features should be implemented so that standard 
WMS 1.3.0 client should still get the maps. Making a full featured Inspire 
viewer would mean
- Parsing the list of supported languages from the GetCapabilities and showing 
a selection menu for the users
- Parsing the Inspire metadata and showing the contents of it.  Links to remote 
metadata should be active
- Parsing the list of available layer styles and showing a menu for the users

The Mapserver page is a good and short introduction 
http://www.mapserver.org/ogc/inspire.html.

Inspire view service does not need to be based on WMS 1.3.0 but a tiling WMTS 
1.0 service is also possible. Making OpenJUMP to handle that would mean quite a 
big work.

It is much harder with the vector download service because OpenJUMP does not 
have much ready for it.  I fear you must read this document first even it is 
not so big pleasure
http://inspire.jrc.ec.europa.eu/documents/Network_Services/Technical_Guidance_Download_Services_3.0.pdf

Inspire download service client should be able to read WFS 2.0 or at least GML 
3.2 which is the default output format for WFS 2.0.  Another option for 
implementing the download service is to use Atom feeds. I haven't yet 
understood what kind of client would be needed for consuming Atom feeds but 
here is an example from QGis project 
http://www.weichand.de/2012/06/20/inspire-pre-defined-atom-download-service-client-for-qgis/

Another problem comes from the definitions of Inspire datasets because they do 
not contain just simple features. Here is couple of examples
http://inspire.jrc.ec.europa.eu/documents/Data_Specifications/INSPIRE_DataSpecification_AU_v3.0.1.pdf
http://inspire.jrc.ec.europa.eu/documents/Data_Specifications/INSPIRE_DataSpecification_HY_v3.0.1.pdf

Visualizing everything that belong to the hydrography would perhaps mean 
loading the hydrography data and inserting everything into a database first 
because hydrography set contains something like 13 layers of all point, line 
and area types.
Also the administrational units dataset contains several layers. It you want to 
have a look, here is the Finnish dataset in GML format with schema
http://latuviitta.org/documents/inspire_au.xml
http://latuviitta.org/documents/inspire_au.xsd

-Jukka Rahkonen-

Michaël Michaud wrote:

 Hi,
 
 I've been asked by my employer (the french NMA) how much OpenJUMP
 takes or will take INSPIRE directive into account.
 
 My feeling is that OpenJUMP will not be strongly involved into Inspire
 directive before long as there has never been interest shown on the list, but
 who knows, some of you maybe involved in Inspire implementation and are
 greatly interested in taking better account the directive into OpenJUMP.
 
 Michaël
 
 
 
 
 
 --
 Precog is a next-generation analytics platform capable of advanced analytics
 on semi-structured data. The platform includes APIs for building apps and a
 phenomenal toolset for data science. Developers can use our toolset for
 easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] WMS Layer / SID Layer

2013-04-16 Thread edgar . soldin
Michael,

while you're at it. could you please move the mrsid binary path to 'lib/native 
? it is already in the PATH variable. all you have to do is 

- remove these senseless absolute paths for the binaries in MrSIDImageFactory 
(ca. line 100)
- assign and use the system temp folder
- move the binaries into 'lib/native'

if MrSID is not working properly you might want to compare skyjump parameter in 
MrSIDReferencedImage (ca. line 233) with those used in SkyJUMP.

it might be a good idea to hint the date and version of the binaries in the 
wiki once it is working again.

..ede

On 16.04.2013 08:38, Michaël Michaud wrote:
 Hi,
 
 For info (wiki will probably need an update about this format)
 The exe is available on http://www.lizardtech.com/
 under category
 Downloads  Tools  Utilities  GeoExpress Command Line Utilities
 Don't know if libroject directory is needed and where it must be installed
 
 First time I tried it, I get an error message and had to change my windows
 regional parameter from , (comma) to . (dot).
 
 I still get no image, but I have not yet followed the whole procedure 
 described in
 https://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=MrSID
 Do not have error message anymore...
 
 to follow...
 
 Michaël
 
 PS : I just removed the SIDLayer and AddSIDLayerPlugIn class from the project.
 
 The main task to keep it working is maintaining the command line parameters 
 to support the latest version of the MRSIDS utilities.  I'll be doing that 
 for SkyJUMP so it is a simple matter to keep OJ up to date too.  MRSID,  
 ECW,  and ArcSDE are OpenJump's gateway to the non-free GIS world.  Some of 
 us are still tied to the commercial and government sector.

 regards,

 Larry

 On Mon, Apr 15, 2013 at 2:47 PM, Michaël Michaud michael.mich...@free.fr 
 mailto:michael.mich...@free.fr wrote:

 Hi Larry,
 OK, I've located the problem that was causing the NPE.  The MRSID 
 executables now depend on the geos.dll (C++ port of the Java Topology 
 Suite) which must be located in the same directory.  MRSID files now work 
 fine, although not as well as in SkyJUMP. ;-)  (SkyJUMP has added a simple 
 plugin called EditMrSID which allows adjustment of dynamic range and 
 transparancy.)  I can't see a reason to keep the SIDLayer class.  Does 
 anyone else?
 Thanks a lot,

 I hadn't even caught that SIDLayer was deprecated in favour of 
 MrSIDReferencedImage.
 Probably the reason why Stefan removed some references to SID Layers in 
 WMSLayer code.

 SIDLayer has probably to be removed then.

 On Mon, Apr 15, 2013 at 10:10 AM, edgar.sol...@web.de 
 mailto:edgar.sol...@web.de wrote:

 is MrSid a format still in use? should we fix it? .. ede

 Don't now. I personnaly do not wish to spend time to support this 
 format, but if we (Larry) can
 keep it working without too much effort, maybe some users will be happy 
 to have it.

 Michaël


 On 15.04.2013 16:46, Larry Becker wrote:
  HI Michaël,
 
Yes, you are correct.  I believe his is not the first time 
 changes to WMSLayer have affected SIDLayer.  The original SIDLayer was a 
 quick hack that never got the refactoring it deserved.  A common abstract 
 parent is probably the best practice.
 
However, I'm not sure why OJ still has the SIDLayer class since 
 it was incorporated into the last version of vividsolutions JUMP as 
 MrSIDReferencedImage (which is not descended from WMSLayer)..  Is there 
 some feature of the original class that isn't in it? The java2xml perhaps 
 doesn't support saving to the project as well?   I would like to test this, 
 but after an hour of trying I was unable to get a MRSID file to load in OJ. 
  There are many different wiki pages and readme files that contradict each 
 other, but I couldn't get any of them to work.  I finally resorted to debug 
 and found the required path for the support executables, however I got an 
 NPE when I tried to open a SID file  at 
 com.vividsolutions.jump.workbench.imagery.mrsid.MrSIDReferencedImage.getEnvelope(MrSIDReferencedImage.java:98).
   This is the version that doesn't depend on WMSLayer so something else is 
 going on, but I don't have time right now to trace it down.
 
  The path to the executables is:   ../lib/ext/etc/  for 
 mrsidgeodecode.exe and mrsidgeoinfo.exe, and also a tmp folder for the 
 tiles.
 
  regards,
 
  Larry
 
  On Sun, Apr 14, 2013 at 11:34 AM, Michaël Michaud 
 michael.mich...@free.fr mailto:michael.mich...@free.fr 
 mailto:michael.mich...@free.fr mailto:michael.mich...@free.fr wrote:
 
  Hi Stefan, Larry
 
  While updating WMS code, I've found several patches from 
 Stefan
  about SID Layer handling.
  Seems that SIDLayer inherits from WMS Layer, hence, patches
  have been added in WMS code to exclude cases where 

Re: [JPP-Devel] Run Datastore Query with no error-message

2013-04-16 Thread Uwe Dalluege
Hi Michaël,

in the class PostgisFeatureInputStream
from the package
com.vividsolutions.jump.datastore.postgis;

there is the method

public FeatureSchema getFeatureSchema(){  ...

which throw new Error ( ...

...
catch (SQLException ex) {
  //savedException = ex;
// from uwe
System.out.println ( PostgisFeatureInputStream getFeatureSchema() ex:  
+ ex.getNextException().getMessage() );
 throw new Error(ex.getNextException().getMessage());
 }
...

The System.out... shows me
when I made the simple wrong query:

select * from

FEHLER: Syntaxfehler am Ende der Eingabe
   Position: 14

Maybe in English:
(ERROR: Syntaxerror at the end of line...)

I do not see this exception on screen.
You told me that the class WorkbenchFrame
should catch this exception
but I can not find the method in WorkbenchFrame
which is resposible for this exception.

Can you help me?

Uwe


Am 16.04.2013 00:01, schrieb Michaël Michaud:
 Hi Uwe,

 I have tested it again with the lates nightbuild
 (20130414 rev.3505) but I get no errormessage
 like you.
 Do you tested it with JRE 1.7.0_17?

 Do you know which class is resposible for the error-message?

 This is WorkbenchFrame,

 Here is the diff from March 21th which fixed the problem (or was suposed
 to fix)
 http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java?sortby=dater1=3323r2=3393pathrev=3393

 Michaël


 Uwe


 Am 11.04.2013 20:27, schrieb Michaël Michaud:
 Hi,
 With OJ rev. 3459
 and W7 (64 bit) I do not
 see errors or exceptions.
 There is no dialog window or a message
 in the status-line.

 I tested  Run Datastore Query
 with this simple query:

 select * from xyz

 The table xyz does not exists in my database!
 But there is no error-message.
 With a more recent version, I get the following :



 Michaël
 Uwe


 Inside the fence there is a polygon
 intersects the geometry from Bauernhof
 But this does not work.

 1. I do not see an error message.
 2. What is the 0 after fence:  ?

 Regards

 uwe

 Am 10.04.2013 11:40, schrieb Rahkonen Jukka:
 Hi,

 They are helper shortcuts for adding a spatial filter into the
 query.
 The result will be something like select * from my_layer where
 geoloc
  ${view:4326}

 Thus only features intersecting the view, box drawn with the
 fence tool or
 total extents of the selected features will be selected.
 -Jukka Rahkonen-

 Uwe Dalluege wrote:

 Hi,

 I like to describe the
 function Run Datastore Query in my
 PostGIS tutorial but I can not find
 a desciption of this.
 What are the buttons
 View, Fence and Selection good for?


 Regards

 Uwe





 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Run Datastore Query with no error-message

2013-04-16 Thread edgar . soldin
you could..

A. remove the catch.. it will be caught further up
 or
B. handle the error there, via 
JumpWorkbench.getInstance().getFrame().handleThrowable(t)

..ede

On 16.04.2013 14:07, Uwe Dalluege wrote:
 Hi Michaël,
 
 in the class PostgisFeatureInputStream
 from the package
 com.vividsolutions.jump.datastore.postgis;
 
 there is the method
 
 public FeatureSchema getFeatureSchema(){  ...
 
 which throw new Error ( ...
 
 ...
 catch (SQLException ex) {
   //savedException = ex;
 // from uwe
 System.out.println ( PostgisFeatureInputStream getFeatureSchema() ex:  
 + ex.getNextException().getMessage() );
  throw new Error(ex.getNextException().getMessage());
  }
 ...
 
 The System.out... shows me
 when I made the simple wrong query:
 
 select * from
 
 FEHLER: Syntaxfehler am Ende der Eingabe
Position: 14
 
 Maybe in English:
 (ERROR: Syntaxerror at the end of line...)
 
 I do not see this exception on screen.
 You told me that the class WorkbenchFrame
 should catch this exception
 but I can not find the method in WorkbenchFrame
 which is resposible for this exception.
 
 Can you help me?
 
 Uwe
 
 
 Am 16.04.2013 00:01, schrieb Michaël Michaud:
 Hi Uwe,

 I have tested it again with the lates nightbuild
 (20130414 rev.3505) but I get no errormessage
 like you.
 Do you tested it with JRE 1.7.0_17?

 Do you know which class is resposible for the error-message?

 This is WorkbenchFrame,

 Here is the diff from March 21th which fixed the problem (or was suposed
 to fix)
 http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java?sortby=dater1=3323r2=3393pathrev=3393

 Michaël


 Uwe


 Am 11.04.2013 20:27, schrieb Michaël Michaud:
 Hi,
 With OJ rev. 3459
 and W7 (64 bit) I do not
 see errors or exceptions.
 There is no dialog window or a message
 in the status-line.

 I tested  Run Datastore Query
 with this simple query:

 select * from xyz

 The table xyz does not exists in my database!
 But there is no error-message.
 With a more recent version, I get the following :



 Michaël
 Uwe


 Inside the fence there is a polygon
 intersects the geometry from Bauernhof
 But this does not work.

 1. I do not see an error message.
 2. What is the 0 after fence:  ?

 Regards

 uwe

 Am 10.04.2013 11:40, schrieb Rahkonen Jukka:
 Hi,

 They are helper shortcuts for adding a spatial filter into the
 query.
 The result will be something like select * from my_layer where
 geoloc
  ${view:4326}

 Thus only features intersecting the view, box drawn with the
 fence tool or
 total extents of the selected features will be selected.
 -Jukka Rahkonen-

 Uwe Dalluege wrote:

 Hi,

 I like to describe the
 function Run Datastore Query in my
 PostGIS tutorial but I can not find
 a desciption of this.
 What are the buttons
 View, Fence and Selection good for?


 Regards

 Uwe





 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

 
 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
 

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Run Datastore Query with no error-message

2013-04-16 Thread Michaël Michaud
Hi,
 A. remove the catch.. it will be caught further up
I think the catch is used to throw an error instead of an exception to 
conform to
the method signature .
   or
 B. handle the error there, via 
 JumpWorkbench.getInstance().getFrame().handleThrowable(t)
I did not know this trick, thanks.
Don't know yet what is the best approach.

@Uwe,
The message you get is what SQL throws.
It is more verbose in the case of a table name which does not exist.

I made it a bit more verbose by adding the SQL string as it is sent
to PostgreSQL (see release r3512)

The modification I did in WorkbenchFrame (line 1100, I gave you the
link) is to make SQL message more verbose, but in your case,
FeatureInputStream is in charge of wrapping the message.


Michaël


 .ede

 On 16.04.2013 14:07, Uwe Dalluege wrote:
 Hi Michaël,

 in the class PostgisFeatureInputStream
 from the package
 com.vividsolutions.jump.datastore.postgis;

 there is the method

 public FeatureSchema getFeatureSchema(){  ...

 which throw new Error ( ...

 ...
 catch (SQLException ex) {
//savedException = ex;
 // from uwe
 System.out.println ( PostgisFeatureInputStream getFeatureSchema() ex: 
 + ex.getNextException().getMessage() );
   throw new Error(ex.getNextException().getMessage());
   }
 ...

 The System.out... shows me
 when I made the simple wrong query:

 select * from

 FEHLER: Syntaxfehler am Ende der Eingabe
 Position: 14

 Maybe in English:
 (ERROR: Syntaxerror at the end of line...)

 I do not see this exception on screen.
 You told me that the class WorkbenchFrame
 should catch this exception
 but I can not find the method in WorkbenchFrame
 which is resposible for this exception.

 Can you help me?

 Uwe


 Am 16.04.2013 00:01, schrieb Michaël Michaud:
 Hi Uwe,
 I have tested it again with the lates nightbuild
 (20130414 rev.3505) but I get no errormessage
 like you.
 Do you tested it with JRE 1.7.0_17?

 Do you know which class is resposible for the error-message?
 This is WorkbenchFrame,

 Here is the diff from March 21th which fixed the problem (or was suposed
 to fix)
 http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java?sortby=dater1=3323r2=3393pathrev=3393

 Michaël

 Uwe


 Am 11.04.2013 20:27, schrieb Michaël Michaud:
 Hi,
 With OJ rev. 3459
 and W7 (64 bit) I do not
 see errors or exceptions.
 There is no dialog window or a message
 in the status-line.

 I tested  Run Datastore Query
 with this simple query:

 select * from xyz

 The table xyz does not exists in my database!
 But there is no error-message.
 With a more recent version, I get the following :


 Michaël
 Uwe


 Inside the fence there is a polygon
 intersects the geometry from Bauernhof
 But this does not work.

 1. I do not see an error message.
 2. What is the 0 after fence:  ?

 Regards

 uwe

 Am 10.04.2013 11:40, schrieb Rahkonen Jukka:
 Hi,

 They are helper shortcuts for adding a spatial filter into the
 query.
 The result will be something like select * from my_layer where
 geoloc
  ${view:4326}

 Thus only features intersecting the view, box drawn with the
 fence tool or
 total extents of the selected features will be selected.
 -Jukka Rahkonen-

 Uwe Dalluege wrote:

 Hi,

 I like to describe the
 function Run Datastore Query in my
 PostGIS tutorial but I can not find
 a desciption of this.
 What are the buttons
 View, Fence and Selection good for?


 Regards

 Uwe



 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our 

Re: [JPP-Devel] Run Datastore Query with no error-message

2013-04-16 Thread edgar . soldin
On 16.04.2013 20:19, Michaël Michaud wrote:
 Hi,
 A. remove the catch.. it will be caught further up
 I think the catch is used to throw an error instead of an exception to 
 conform to
 the method signature .

ok

   or
 B. handle the error there, via 
 JumpWorkbench.getInstance().getFrame().handleThrowable(t)
 I did not know this trick, thanks.
 Don't know yet what is the best approach.
 
 @Uwe,
 The message you get is what SQL throws.
 It is more verbose in the case of a table name which does not exist.
 
 I made it a bit more verbose by adding the SQL string as it is sent
 to PostgreSQL (see release r3512)
 
 The modification I did in WorkbenchFrame (line 1100, I gave you the
 link) is to make SQL message more verbose, but in your case,
 FeatureInputStream is in charge of wrapping the message.
 

yes, make sure the correct error is re-thrown or collect multiple errors into 
one.

..ede
 
 Michaël
 
 
 .ede

 On 16.04.2013 14:07, Uwe Dalluege wrote:
 Hi Michaël,

 in the class PostgisFeatureInputStream
 from the package
 com.vividsolutions.jump.datastore.postgis;

 there is the method

 public FeatureSchema getFeatureSchema(){  ...

 which throw new Error ( ...

 ...
 catch (SQLException ex) {
//savedException = ex;
 // from uwe
 System.out.println ( PostgisFeatureInputStream getFeatureSchema() ex: 
 + ex.getNextException().getMessage() );
   throw new Error(ex.getNextException().getMessage());
   }
 ...

 The System.out... shows me
 when I made the simple wrong query:

 select * from

 FEHLER: Syntaxfehler am Ende der Eingabe
 Position: 14

 Maybe in English:
 (ERROR: Syntaxerror at the end of line...)

 I do not see this exception on screen.
 You told me that the class WorkbenchFrame
 should catch this exception
 but I can not find the method in WorkbenchFrame
 which is resposible for this exception.

 Can you help me?

 Uwe


 Am 16.04.2013 00:01, schrieb Michaël Michaud:
 Hi Uwe,
 I have tested it again with the lates nightbuild
 (20130414 rev.3505) but I get no errormessage
 like you.
 Do you tested it with JRE 1.7.0_17?

 Do you know which class is resposible for the error-message?
 This is WorkbenchFrame,

 Here is the diff from March 21th which fixed the problem (or was suposed
 to fix)
 http://jump-pilot.svn.sourceforge.net/viewvc/jump-pilot/core/trunk/src/com/vividsolutions/jump/workbench/ui/WorkbenchFrame.java?sortby=dater1=3323r2=3393pathrev=3393

 Michaël

 Uwe


 Am 11.04.2013 20:27, schrieb Michaël Michaud:
 Hi,
 With OJ rev. 3459
 and W7 (64 bit) I do not
 see errors or exceptions.
 There is no dialog window or a message
 in the status-line.

 I tested  Run Datastore Query
 with this simple query:

 select * from xyz

 The table xyz does not exists in my database!
 But there is no error-message.
 With a more recent version, I get the following :


 Michaël
 Uwe


 Inside the fence there is a polygon
 intersects the geometry from Bauernhof
 But this does not work.

 1. I do not see an error message.
 2. What is the 0 after fence:  ?

 Regards

 uwe

 Am 10.04.2013 11:40, schrieb Rahkonen Jukka:
 Hi,

 They are helper shortcuts for adding a spatial filter into the
 query.
 The result will be something like select * from my_layer where
 geoloc
  ${view:4326}

 Thus only features intersecting the view, box drawn with the
 fence tool or
 total extents of the selected features will be selected.
 -Jukka Rahkonen-

 Uwe Dalluege wrote:

 Hi,

 I like to describe the
 function Run Datastore Query in my
 PostGIS tutorial but I can not find
 a desciption of this.
 What are the buttons
 View, Fence and Selection good for?


 Regards

 Uwe



 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

 --
 Precog is a next-generation analytics platform capable 

Re: [JPP-Devel] [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[3512] core/trunk/src/com/vividsolutions/jump/ datastore/postgis/PostgisFeatureInputStream.java

2013-04-16 Thread edgar . soldin
On 16.04.2013 20:14, micha...@users.sourceforge.net wrote:  catch 
(SQLException ex) {
 -//savedException = ex;
 -throw new Error(ex.getNextException().getMessage());
 +String message = ex.getLocalizedMessage();
 +Throwable nextT = ((SQLException)ex).getNextException();
 +if (nextT != null) message = message + \n + 
 nextT.getLocalizedMessage();
 +throw new Error(message);

Michael,

wouldn't you have to loop over it until there is no next exception anymore? or, 
do i misunderstand the concept here?

..ede

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[3512] core/trunk/src/com/vividsolutions/jump/ datastore/postgis/PostgisFeatureInputStream.java

2013-04-16 Thread Michaël Michaud
Hi,

 -//savedException = ex;
 -throw new Error(ex.getNextException().getMessage());
 +String message = ex.getLocalizedMessage();
 +Throwable nextT = ((SQLException)ex).getNextException();
 +if (nextT != null) message = message + \n + 
 nextT.getLocalizedMessage();
 +throw new Error(message);
 Michael,

 wouldn't you have to loop over it until there is no next exception anymore? 
 or, do i misunderstand the concept here?
I see. I just reused a piece of code and noticed that the valuable SQL 
message
was in the next message.
Maybe we can get more information adding next message iteratively.
I'll try it and report.

Michaël

 ..ede

 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[3512] core/trunk/src/com/vividsolutions/jump/ datastore/postgis/PostgisFeatureInputStream.java

2013-04-16 Thread Michaël Michaud
Hi,

 -//savedException = ex;
 -throw new Error(ex.getNextException().getMessage());
 +String message = ex.getLocalizedMessage();
 +Throwable nextT = ((SQLException)ex).getNextException();
 +if (nextT != null) message = message + \n + 
 nextT.getLocalizedMessage();
 +throw new Error(message);
 Michael,

 wouldn't you have to loop over it until there is no next exception anymore? 
 or, do i misunderstand the concept here?
Just tested it, but did not get more message.
I prefer to keep the simple if form until we find that returned 
information is not enough.

Michaël

 ..ede

 --
 Precog is a next-generation analytics platform capable of advanced
 analytics on semi-structured data. The platform includes APIs for building
 apps and a phenomenal toolset for data science. Developers can use
 our toolset for easy data analysis  visualization. Get a free account!
 http://www2.precog.com/precogplatform/slashdotnewsletter
 ___
 Jump-pilot-devel mailing list
 Jump-pilot-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] [Jump-pilot-svn-notify] SF.net SVN: jump-pilot:[3512] core/trunk/src/com/vividsolutions/jump/ datastore/postgis/PostgisFeatureInputStream.java

2013-04-16 Thread edgar . soldin
On 16.04.2013 23:33, Michaël Michaud wrote:
 Hi,

 -//savedException = ex;
 -throw new Error(ex.getNextException().getMessage());
 +String message = ex.getLocalizedMessage();
 +Throwable nextT = ((SQLException)ex).getNextException();
 +if (nextT != null) message = message + \n + 
 nextT.getLocalizedMessage();
 +throw new Error(message);
 Michael,

 wouldn't you have to loop over it until there is no next exception anymore? 
 or, do i misunderstand the concept here?
 Just tested it, but did not get more message.
 I prefer to keep the simple if form until we find that returned 
 information is not enough.
 

on further googling
http://pages.cs.wisc.edu/~hasti/cs368/JavaTutorial/jdk1.2/api/java/sql/SQLException.html

looks like there is only one next exception .. so, good call..  ede

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel