Hi,
In my case, I was thinking about the second way: Layer > Run SQL Query.
Like this:
1 - the query layer is saved with the project. (just sql and connection...)
2 - that reload in-memory happens when opening the project.
3 - There a button to refresh that query when we want...
In my case, I was thinking about the second way: Layer > Run SQL Query.
Like this:
1 - the query layer is saved with the project. (just sql and connection...)
2 - that reload in-memory happens when opening the project.
3 - There a button to refresh that query when we want...
The new nightly build does not start for me on Windows XP and Java 1.6.
Error is:
ava.lang.ExceptionInInitializerError
at
org.openjump.OpenJumpConfiguration.loadOpenJumpPlugIns(OpenJumpConfiguration.java:428)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.setup(JUMPConfiguration.java:371)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:353)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:319)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at org.openjump.core.ui.images.IconLoader.icon(IconLoader.java:44)
at
org.openjump.core.ui.plugin.datastore.RefreshDataStoreQueryPlugIn.<clinit>(RefreshDataStoreQueryPlugIn.java:35)
... 4 more
-Jukka Rahkonen-
Micha�l Michaud kirjoitti:
> Micha�l
>
>
> Le 13/03/2011 15:35, Etienne Bellemare a �crit :
Hi,
The new nightly build does not start for me on Windows XP and Java 1.6.
Error is:
ava.lang.ExceptionInInitializerError
at
org.openjump.OpenJumpConfiguration.loadOpenJumpPlugIns(OpenJumpConfiguration.java:428)
at
com.vividsolutions.jump.workbench.JUMPConfiguration.setup(JUMPConfiguration.java:371)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:353)
at
com.vividsolutions.jump.workbench.JUMPWorkbench.main(JUMPWorkbench.java:319)
Caused by: java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at org.openjump.core.ui.images.IconLoader.icon(IconLoader.java:44)
at
org.openjump.core.ui.plugin.datastore.RefreshDataStoreQueryPlugIn.<clinit>(RefreshDataStoreQueryPlugIn.java:35)
... 4 more
-Jukka Rahkonen-
Michaël Michaud kirjoitti:
> Michaël
I tested these functionalities with new nightly build and everything
worked as you described against PostGIS 9.0. Great features which make
OpenJUMP even more powerful PostGIS query tool.
-Jukka Rahkonen-
Micha�l Michaud kirjoitti:
> Micha�l
>
>
> Le 13/03/2011 15:35, Etienne Bellemare a �crit :
I tested these functionalities with new nightly build and everything
worked as you described against PostGIS 9.0. Great features which make
OpenJUMP even more powerful PostGIS query tool.
-Jukka Rahkonen-
Micha�l Michaud kirjoitti:
> Micha�l
>
>
> Le 13/03/2011 15:35, Etienne Bellemare a �crit :
Hi,
I tested these functionalities with new nightly build and everything
worked as you described against PostGIS 9.0. Great features which make
OpenJUMP even more powerful PostGIS query tool.
-Jukka Rahkonen-
Michaël Michaud kirjoitti:
> Michaël
I believe I've found one possible bug. The feature count limit given
through the text box is not saved into the project file. It is hard to
detect because somehow OpenJUMP keeps the value that was fed into a box in
memory even if you close the project but you can see it by closing and
restarting OpenJUMP before opening the project with saved query layers.
This has a deadly effect if the layer comes from some multimillion row
table. OJ reads the table until all the memory is used. Only way to
re-open the saved project I discovered was to hand-edit the project file
and add some reasonable limit into the query.
It would be a good habit to use always a feature count limit with SQL
query layers and especially if the automatic refresh after zooming will be
implemented. Perhaps it would even be good to have some max value of 50000
- 100000 as a default.
Automatic refresh after panning or zooming gives exciting views. If
combined with the live-GPS plugin OpenJUMP could be made to a very nice
featured vector based moving map application. Layers with free SQL queries
could be used to select, for example, just a hundred biggest lakes (ORDER
BY area limit 100;) that fall inside the view area which would make
rendering and refreshing much faster at small scales.
If OJ would refresh views automatically after panning (naturally user
should select this option for each layer) then perhaps the time based
refresh could be tweaked by doing timed one pixel pan after n seconds? Or
would even recentering work?
Now there are buttons for view and fence. How about a third one for the
centre point of the view? It could be used for "distance within" queries
or another fascinating possibility, "n closest features".
-Jukka Rahkonen-
Micha�l Michaud kirjoitti:
> Hi all,
>
> Thanks for feedback and encouragments,
>
> Here are some answers to your suggestions :
>
> A - I think I'll try to do this (as a plugin option or as a new plugin)
>
> B - I get an error in both cases (fence and view) where fence/view srid
> and server data srid do not fit
> Note that ${view:-1} means view using srid -1
> You should be able to do [...WHERE the_geom && ${view:27492}] instead of
> [...WHERE the_geom && st_setsrid(${view:-1},27492)]
> Let me know if it works, my data mostly use the undefined -1 SRID
>
> C.1 - refreshing on pan and zoom has pro and cons. I often use long
> queries taking time to refresh...
> Let le know why you don't use Open > Datastore option to get more
> dynamic layers.
> This way, you can get a table, add a where condition and keep the layer
> in sync with the server (on the other hand, you can't do complex queries).
>
> C.2 - interesting alternative. Not very easy to implement (needs to
> manage a timer in each layer).
> Note that to ease layers updating, I made it possible to refresh several
> query-based layer at a time.
>
> Regards,
>
> Micha�l
>
> Le 23/03/2011 19:17, Etienne Bellemare a �crit :
-Jukka Rahkonen-
Michaël Michaud kirjoitti:
> Hi all,
>
> Thanks for feedback and encouragments,
>
> Here are some answers to your suggestions :
>
> A - I think I'll try to do this (as a plugin option or as a new plugin)
>
> B - I get an error in both cases (fence and view) where fence/view srid
> and server data srid do not fit
> Note that ${view:-1} means view using srid -1
> You should be able to do [...WHERE the_geom && ${view:27492}] instead of
> [...WHERE the_geom && st_setsrid(${view:-1},27492)]
> Let me know if it works, my data mostly use the undefined -1 SRID
>
> C.1 - refreshing on pan and zoom has pro and cons. I often use long
> queries taking time to refresh...
> Let le know why you don't use Open > Datastore option to get more
> dynamic layers.
> This way, you can get a table, add a where condition and keep the layer
> in sync with the server (on the other hand, you can't do complex queries).
>
> C.2 - interesting alternative. Not very easy to implement (needs to
> manage a timer in each layer).
> Note that to ease layers updating, I made it possible to refresh several
> query-based layer at a time.
>
> Regards,
>
> Michaël
Beautiful. You folks still stuck with shapefiles, look at this!
PostGIS is a bit hard to install and administrate. On the other hand, we
have two nice Spatialite extensions. I wonder if either of them could be
integrated into OpenJUMP so we would have a native support for Spatialite.
QGis supports Spatialite but our plugins are much better because they
support queries.
-Jukka-
>>> Micha�l Michaud kirjoitti:
>>> > Micha�l
>>> >
>>> > Le 23/03/2011 19:17, Etienne Bellemare a �crit :
If there is a box where you can enter max feature count then some people
will use it. I think there are two as good alternatives, either remove the
box or make it to work in a logical way.
Text box for naming the layer would be useful.
Center button or taking coordinates from a clicked point would help also
in selecting more features than included inside the map view. For example
"Select addresses closer than 80 km from this smoking nuclear plant". Sure
it is always possible to do it with SQL but we do have users who are
frightened with things like
select asbinary(the_geom), * FROM my_tab
WHERE ST_dwithin(the_geom,ST_Centroid(${view:mySrid}),myDistance)
Perhaps some day we could have a spatial query wizard for PostGIS.
Something like we already have for Spatialite, see last images of the
tutorial
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=OpenJUMP_with_SpatialLite
-Jukka Rahkonen-
Micha�l Michaud kirjoitti:
> Hi Jukka, Fred,
>
> You're right, I forgot to mention I did not persist the feature count
> limit,
> The reason is I never use it and I'm not sure it is useful.
> I agree with Fred that SQL users generally know how to use the LIMIT
> clause in SQL
> Also the limit is both application and hardware dependant
>
> I also agree with Fred that a textField to enter the layer name could be
> more useful.
> I'll try to get more feedback about this point before making decision.
>
> But you're right, currently, it appears as a bug, and must find a
> solution before 1.4.1 release.
>
> About automatic refreshing, can you fill a feature request.
> I think it can definitely be useful... in some cases. So an option could
> be added, but I'll not put that request very high in my priorities.
>
> Center button : IMHO, the feature will not be very useful because you
> rarely want to see less features than the ones included in the view
> bounding box, and because you can always do it in SQL as shown by Fred.
> On the other hand, this one is quite easy to implement, so if several
> users find it useful, I can add it.
>
> Anyway, thanks very much for feedback. It is very useful for developpers
> get comments,
>
> Micha�l
>
>
>
>
> Le 24/03/2011 13:19, Fred Lehodey a �crit :
>> Hi Jukka,
>>
>> I agree, who uses SQL Query knows about LIMIT clause....
>> Not sure, but would be more useful to replace that text box to "name
>> of query", avoiding to rename queries in layers panel. :)
>>
>> For the center point of the view, you already can do this:
>> select asbinary(the_geom), * FROM my_tab
>> WHERE ST_dwithin(the_geom,ST_Centroid(${view:mySrid}),myDistance)
>>
>> Works fine for me...
>>
>> Fred.
>>
>>
>> On Thu, Mar 24, 2011 at 11:54 AM, Jukka Rahkonen
>> <jukka.r...@latuviitta.fi <mailto:jukka.r...@latuviitta.fi>>
>> Micha�l Michaud kirjoitti:
>> > Micha�l
>> >
>> > Le 23/03/2011 19:17, Etienne Bellemare a �crit :
Hi,
If there is a box where you can enter max feature count then some people
will use it. I think there are two as good alternatives, either remove the
box or make it to work in a logical way.
Text box for naming the layer would be useful.
Center button or taking coordinates from a clicked point would help also
in selecting more features than included inside the map view. For example
"Select addresses closer than 80 km from this smoking nuclear plant". Sure
it is always possible to do it with SQL but we do have users who are
frightened with things like
select asbinary(the_geom), * FROM my_tabPerhaps some day we could have a spatial query wizard for PostGIS.
WHERE ST_dwithin(the_geom,ST_Centroid(${view:mySrid}),myDistance)
Something like we already have for Spatialite, see last images of the
tutorial
http://sourceforge.net/apps/mediawiki/jump-pilot/index.php?title=OpenJUMP_with_SpatialLite
-Jukka Rahkonen-
Michaël Michaud kirjoitti:
> Hi Jukka, Fred,
>
> You're right, I forgot to mention I did not persist the feature count
> limit,
> The reason is I never use it and I'm not sure it is useful.
> I agree with Fred that SQL users generally know how to use the LIMIT
> clause in SQL
> Also the limit is both application and hardware dependant
>
> I also agree with Fred that a textField to enter the layer name could be
> more useful.
> I'll try to get more feedback about this point before making decision.
>
> But you're right, currently, it appears as a bug, and must find a
> solution before 1.4.1 release.
>
> About automatic refreshing, can you fill a feature request.
> I think it can definitely be useful... in some cases. So an option could
> be added, but I'll not put that request very high in my priorities.
>
> Center button : IMHO, the feature will not be very useful because you
> rarely want to see less features than the ones included in the view
> bounding box, and because you can always do it in SQL as shown by Fred.
> On the other hand, this one is quite easy to implement, so if several
> users find it useful, I can add it.
>
> Anyway, thanks very much for feedback. It is very useful for developpers
> get comments,
>
> Michaël
>> <jukka.r...@latuviitta.fi <mailto:jukka.r...@latuviitta.fi>>
>> Michaël Michaud kirjoitti:
>> > Michaël
A strange behaviour I've noticed is that when you open a project, refresh a layer and close the project, Open Jumps warns you that you've made changes (which is not really true). That might mix up some users as even if you save the project, the warning doesn't stop.