Hello Jairo,
Please keep your replies directed to the list - that way you will get
the benefit of the collective wisdom there rather than just my feeble
brain...
> I'm not generate a fat jar, now im working with webstart. and set the
> dependences in jnlp
> http://pastebin.com/X5y3KTLQ
> But now i get another problem, this exeption
> http://pastebin.com/EPuKX43q
> Im unzip the jar files and the class
> org.geotools.renderer.lite.StreamingRenderer exists in jars dependences
> Could i works with geotools in java webstart applications?
I've no direct experience with GeoTools / JNLP. A search of the list
archives doesn't turn up very much either...
http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=search_page&node=4317834&query=webstart&days=0
...although the thread there about loading a shapefile suggests
someone did have things working.
Sorry I can't be more helpful. I've updated the subject in the hope
that it will attract advice from others here.
Michael

On Fri, Nov 9, 2012 at 11:05 AM, Jan Torben <jan_key67234@...> wrote:
> Jody Garnett wrote:
>
> > Staging into a temp file would be smarter.
> That is my fallback approach currently.
>
> Does anyone know (Simone?) *why* the reader needs to be threadsafe or if it
> possible to derive a simpler version of the GeoTiffReader? I'm willing to
> change the source code and contribute back another reader but I couldn't
> find the crucial part in the code.
>
Readers have to be thread safe because opening spatially referenced files
is expensive, so the reader has to be reusable, the thread safety comes
from web serving requirements where we have multiple requests coming
in hitting the same data source, and they have to be able to work in
parallel
at the highest possible performance.
Thus the requirements of re-usability and thread safety
>
> I'd be nice to have a not in the javadoc that only File is supported, or
> better, change the Constructor.
>
> I have to admit that I'm still using GT 2.6.4 maybe things changed by now?
>
Nothing changed regarding the rules above.
As said before, the only way I can think of to make the reader still work
properly in your case is to have the client build a byte[] and have the
code in the reader recognize that case and use the byte[] as the source.
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------

I take it back, it is crazy not me.
In LocalGeoServerOnlineTest by the time I hit … CRS.decode("urn:x-ogc:def:crs:EPSG::4326",false)
It ends up with a backing store that is configured with a FORCE_LONGITUDE_FIRST_AXIS_ORDER - thus my inability to get back NORTH_EAST axis order.
Jody
By the time I get around to
--
Jody Garnett

I have going through a couple laps of the WMS code around handling of bounding boxes, and I am stuck :(
I need a reliable way to represent "EPSG:4326" in the official NORTH_EAST axis order - *all* the time (so I can represent internally what WMS 1.3.0 server is thinking).
0 ) When using no special settings:
- "EPSG:4326" EAST_NORTH
- "urn:x-ogc:def:crs:EPSG::4326" EAST_NORTH
1) When using Hints.putSystemDefault(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE)
- "EPSG:4326" EAST_NORTH
- "urn:x-ogc:def:crs:EPSG::4326" NORTH_EAST
2) When using System.setProperty("org.geotools.referencing.forceXY", "true");
- "EPSG:4326" EAST_NORTH
- "urn:x-ogc:def:crs:EPSG::4326" EAST_NORTH
So I need a get out of jail free card, someway to arrive at NORTH_EAST axis order, even when the global system forceXY property is set :(
Is this possible?
If not I will need to switch uDig from using technique (2) to using technique (1)...
Here is the code I am using for testing (interesting that "urn:x-ogc:def:crs:EPSG::4326" ignores the longitudeFirst boolean parameter):
CoordinateReferenceSystem WORLD = (CoordinateReferenceSystem) CRS.decode("EPSG:4326",false);
assertEquals( AxisOrder.NORTH_EAST, CRS.getAxisOrder(WORLD));
CoordinateReferenceSystem WORLD2 = (CoordinateReferenceSystem) CRS.decode("EPSG:4326",true);
assertEquals( AxisOrder.EAST_NORTH, CRS.getAxisOrder(WORLD2));
CoordinateReferenceSystem WORLD3 = (CoordinateReferenceSystem) CRS.decode("urn:x-ogc:def:crs:EPSG::4326",false);
assertEquals( AxisOrder.NORTH_EAST, CRS.getAxisOrder(WORLD3));
CoordinateReferenceSystem WORLD4 = (CoordinateReferenceSystem) CRS.decode("urn:x-ogc:def:crs:EPSG::4326",true);
assertEquals( AxisOrder.NORTH_EAST, CRS.getAxisOrder(WORLD4));
--
Jody Garnett

Jody Garnett wrote:
> Staging into a temp file would be smarter.
That is my fallback approach currently.
Does anyone know (Simone?) *why* the reader needs to be threadsafe or if it
possible to derive a simpler version of the GeoTiffReader? I'm willing to
change the source code and contribute back another reader but I couldn't
find the crucial part in the code.
I'd be nice to have a not in the javadoc that only File is supported, or
better, change the Constructor.
I have to admit that I'm still using GT 2.6.4 maybe things changed by now?
Cheers,
Jan

Does service provider interface lookup work with Hadoop? That is how we
look stuff up on the class path.
The other common way to screw things up is in a system which manages jars
into different classpaths ( like OSGi )
--
Jody Garnett
On 09/11/2012, at 6:01 AM, Sugandha Naolekar <sugandha.n87@...> wrote:
*The ShapefileDataStore class not found in main *is the error. Inspite of
specifying all the relevant jars in the classpath. Also, the same code
works in Eclipse. But not, in hadoop's prompt.
--
Thanks & Regards,
Sugandha Naolekar
On Fri, Nov 9, 2012 at 1:13 PM, Jody Garnett <jody.garnett@...> wrote:
> No experience with Hadoop - what kind of errors are you getting?
>
> --
> Jody Garnett
>
> On 09/11/2012, at 5:08 AM, Sugandha Naolekar <sugandha.n87@...>
> wrote:
>
> Hello!
>
> I am running a GIS code through hadoop's prompt in following manner:\
>
> -> Wrote the GIS code in Eclipse including all the GIS jars (relevant).
> -> Went into the dir. where my eclipse workspace is.
> -> Compiled the code by adding all the relevant jars in the classpath.
> *(The compilation was successful).
> -> Built the jar.
> -> Now running the same jar using hadoop: bin/hadoop jar
> my_jar_file_name.jar my_pkg_structure.Main_class_file
>
> Now, inspite of the code being error free, when i try to execute through
> hadoop's propmpt, it gives me multiple issues.
>
> Is there a workable alternative way to do the same without any hassles?
>
> *Also note, the gid code runs beautifully in eclipse. Since, I have to do
> Geo processing over hadoop, I need to run it through hadoop's prompt.*
> *
> *
> --
> Thanks & Regards,
> Sugandha Naolekar
>
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>

Staging into a temp file would be smarter.
--
Jody Garnett
On 09/11/2012, at 6:21 AM, Andrea Aime <andrea.aime@...> wrote:
On Fri, Nov 9, 2012 at 8:49 AM, Jody Garnett <jody.garnett@...> wrote:
> Looks like you need a reader that is thread safe - any recommendations?
>
>
The only thing I can think of that would not break the thread safety
contract would
be that the reader does a full copy of the stream into an in memory byte[]
and then
works off it.
Scary if you ask me, if someone by mistake points to a large content the OOM
is just round the corner
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------

On 9 November 2012 19:23, Andrea Aime <andrea.aime@...> wrote:
> Never use the Maven eclipse integration, it's way too slow to handle the
> 150+
> projects one gets by loading all geotools and geoserver in a single
> IDE instance.
>
> Command line for the win!
>
Ah - the "IDEs are for wimps" school of thought :)
Must admit - I always feel like I've come home when I can get back to
the command line.
Michael

On Fri, Nov 9, 2012 at 8:55 AM, Michael Bedward
<michael.bedward@...>wrote:
> Hi Jody,
>
> Yep, Jairo has included the shade plugin in his project pom and it
> looks to be set up properly. He's just having problems getting it to
> work from within Eclipse. Have you any experience with that ?
>
Never use the Maven eclipse integration, it's way too slow to handle the
150+
projects one gets by loading all geotools and geoserver in a single
IDE instance.
Command line for the win!
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------

On Fri, Nov 9, 2012 at 8:49 AM, Jody Garnett <jody.garnett@...> wrote:
> Looks like you need a reader that is thread safe - any recommendations?
>
>
The only thing I can think of that would not break the thread safety
contract would
be that the reader does a full copy of the stream into an in memory byte[]
and then
works off it.
Scary if you ask me, if someone by mistake points to a large content the OOM
is just round the corner
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it
-------------------------------------------------------

Hi Jody,
Yep, Jairo has included the shade plugin in his project pom and it
looks to be set up properly. He's just having problems getting it to
work from within Eclipse. Have you any experience with that ?
(NetBeans is so much easier :)
Michael
On 9 November 2012 18:44, Jody Garnett <jody.garnett@...> wrote:
> You may be able to configure your Pom.xml with shade plugin ( and see of
> eclipse maven support can handle it).
>
> Let us know how it goes :)
>
> Other thank that merge the service files by hand for the jars you use?!
>
> --
> Jody Garnett
>
> On 07/11/2012, at 10:24 PM, Jairo de Almeida <jairodealmeida@...>
> wrote:
>
> Hi group,
> How to export a executable jar using geotools
> I found this article
> http://docs.geotools.org/stable/userguide/advanced/build/faq.html
> But isn't works and shows this error log http://pastebin.com/gLkDcics
> could i make a executable fat jar file with all META-INF/services merged
> Thanks guys
>
> ------------------------------------------------------------------------------
>
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
>
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

I also have been unable to try out h2 support - do you have a java code
example I could add to the docs?
--
Jody Garnett
On 08/11/2012, at 2:56 PM, Justin Deoliveira <jdeolive@...> wrote:
Hi Suraj,
Just by accessing it with GeoTools it will be "spatially enabled". And any
tables you create through the GeoTools DataStore api will be spatially
indexed, etc...
Also if you are looking for an easier way to interact with H2/GeoTools (and
want to play around at a command prompt, etc...) I suggest you checkout
geoscript. For instance, the following snippet (in python) will create an
H2 database, create a spatial table and populate it with some data:
from geoscript.workspace import H2
from geoscript.geom import Point
db = H2('cities')
l = ws.create('cities', [('geom', geom.Point), ('name', str)])
l.add([geom.Point(37.78, -122.42), 'San Francisco'])
l.add([geom.Point(40.47, -73.58), 'New York'])
db.close()
For more info:
http://geoscript.orghttp://geoscript.org/learning/layer.html#layers-and-workspaces
On Thu, Nov 8, 2012 at 3:51 AM, suraj patil <surajhpatil@...> wrote:
> Hello there.
>
> I want to create a spatial database using H2. I have installed H2 on my
> windows 7.
> But how to "Spatialy enable" it? I have worked with SQLite or postgres and
> know how to enable them "Spatially" but have hard time with H2. Any
> guideline or reference is much appreciated.
>
> p.s.- I have gone through
> http://docs.geotools.org/latest/userguide/library/jdbc/h2.html this page,
> but don't get how to use this plugin. Can anybody suggest procedure for it?
>
>
> Thanks,
> Suraj.
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

You may be able to configure your Pom.xml with shade plugin ( and see of
eclipse maven support can handle it).
Let us know how it goes :)
Other thank that merge the service files by hand for the jars you use?!
--
Jody Garnett
On 07/11/2012, at 10:24 PM, Jairo de Almeida <jairodealmeida@...>
wrote:
Hi group,
How to export a executable jar using geotools
I found this article
http://docs.geotools.org/stable/userguide/advanced/build/faq.html
But isn't works and shows this error log http://pastebin.com/gLkDcics
could i make a executable fat jar file with all META-INF/services merged
Thanks guys
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

No experience with Hadoop - what kind of errors are you getting?
--
Jody Garnett
On 09/11/2012, at 5:08 AM, Sugandha Naolekar <sugandha.n87@...> wrote:
Hello!
I am running a GIS code through hadoop's prompt in following manner:\
-> Wrote the GIS code in Eclipse including all the GIS jars (relevant).
-> Went into the dir. where my eclipse workspace is.
-> Compiled the code by adding all the relevant jars in the classpath.
*(The compilation was successful).
-> Built the jar.
-> Now running the same jar using hadoop: bin/hadoop jar
my_jar_file_name.jar my_pkg_structure.Main_class_file
Now, inspite of the code being error free, when i try to execute through
hadoop's propmpt, it gives me multiple issues.
Is there a workable alternative way to do the same without any hassles?
*Also note, the gid code runs beautifully in eclipse. Since, I have to do
Geo processing over hadoop, I need to run it through hadoop's prompt.*
*
*
--
Thanks & Regards,
Sugandha Naolekar
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Hello!
I am running a GIS code through hadoop's prompt in following manner:\
-> Wrote the GIS code in Eclipse including all the GIS jars (relevant).
-> Went into the dir. where my eclipse workspace is.
-> Compiled the code by adding all the relevant jars in the classpath.
*(The compilation was successful).
-> Built the jar.
-> Now running the same jar using hadoop: bin/hadoop jar
my_jar_file_name.jar my_pkg_structure.Main_class_file
Now, inspite of the code being error free, when i try to execute through
hadoop's propmpt, it gives me multiple issues.
Is there a workable alternative way to do the same without any hassles?
*Also note, the gid code runs beautifully in eclipse. Since, I have to do
Geo processing over hadoop, I need to run it through hadoop's prompt.*
*
*
--
Thanks & Regards,
Sugandha Naolekar

Hi Jairo,
Please direct replies to the list rather than to me personally.
>> What happens if you do "mvn clean install" from the command line ?
> Nothing, because i don't have mvn mapped in windows system variables,
> im using maven from m2eclipse eclipse plugin.
> Would I have to set the environment variable PATH?
You would need maven installed on your system
(http://maven.apache.org/download.html) and either put it into a
directory already on your PATH or append its location to the PATH.
Sorry I'm not much help with what's happening from inside Eclipse. I
use NetBeans. However, most list members use Eclipse so perhaps
someone else can provide guidance.
As far as running maven from the command line, your pom sets the shade
plugin to run as part of the normal build so just doing "mvn clean
install" should result in the executable jar.
Michael