[Geotools-gt2-users] Raster interpolation that ignores NO_DATA?

2015-02-04 Thread Jan Torben Heuer
Hi, I load dem (srtm) data that contains NO_DATA cells. I want to calculate
z-values for Coordinates (using bilinear interpolation). My problem is now
that some cells have NO_DATA (-32767) values. Is there an interpolation
method that can ignore NO_DATA? I know there is no perfect solution and in
theory all cells could be NO_DATA.
A simple approach that uses only the valid neighbors coul work in my case.
Any ideas how to achieve that?

Here is the code I currently use:


GeoTiffReader reader = new GeoTiffReader(f);
GridCoverage2D c = reader.read(null);
GridCoverage2D coverage = Interpolator2D.create(c,
Interpolation.getInstance(Interpolation.INTERP_BILINEAR));

Point2D.Double p = new Point2D.Double(10.4, 52.1);
double[] r = new double[1];
coverage.evaluate(p, r);

Cheers,


Jan
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Problem with gt-epsg-hsql in application jar

2012-08-16 Thread Jan Torben Heuer
Eike Hinderk Jürrens wrote:

Hi Eike,

 My problem is, that I have gt-epsg-hsql as direct dependency for my
 application and I am building my application jar with
 maven-assembly-plugin + jar-with-dependencies.
 All required files are present in the final jar.


I finally used the gt-epsg-wkt implementation that does not use an internal 
hsql db. I think that one is sufficient for most use cases.

Cheers,

Jan
-- 
komoot GmbH
Jan Torben Heuer
Friedrich-Wilhelm-Boelcke-Straße 2
14473 Potsdam

j...@komoot.de
http://www.komoot.de
Tel +49 331 2316790
Fax +49 331 2353725

Amtsgericht Potsdam HRB 23672 P
USt-IdNr. DE270695170
Geschäftsführer: Markus Hallermann


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Error geotools + maven

2011-11-08 Thread Jan Torben Heuer
Doeslei Schuster wrote:

 To see the full stack trace of the errors, re-run Maven with the-e switch.
 Re-run Maven using the-X switch to enable full debug logging.

 Anyone know how to fix it?

You can try to enable the switches above. In eclipse, you can do this in the 
run dialog of maven, for netbeans I don't know.

Jan
-- 
From address is valid until 01.06.2011


--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] newbie: Snap a Point to a Line problem with openstreetmap shape file

2011-11-01 Thread Jan Torben Heuer
Vittorio Carloni wrote:

 I tried to use SnapToLine.java with a openstreetmap shape
 
http://downloads.cloudmade.com/europe/southern_europe/italy/marche/marche.shapefiles.zip
 
 i tried with the shp file without success.

Could you explain what happend or what did not work?

'snapping' isn't a trivial task, at least if you want to go beyond nearest 
node/line.


Jan
-- 
From address is valid until 01.06.2012


--
RSAreg; Conference 2012
Save #36;700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Problem iterating over a graph

2011-08-11 Thread Jan Torben Heuer
Nicolas Malleson wrote:

 You got me thinking though, is it possible that there is some manipulation
 of the underlying graph going on in the background? It looks like the
 sub-graphs might be changing the underlying graph somehow (which would
 explain why the rate of success drops as more and more are created), but I
 can't see how they would be doing this. To get the subgraph I use the
 visited nodes and edges in the BasicGraph constructor, but again I don't
 think that this should do anything to the underlying graph.

You should read the source code of the involved GT components in order to 
understand how the traversal works. For me, it wasn't intiutive at the 
beginning but the author clearly had a plan. It just wasn't my plan ;-)

Cheers,

Jan
-- 
From address is valid until 01.06.2012


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. 
http://p.sf.net/sfu/wandisco-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] Finding subgraphs in graph

2011-07-11 Thread Jan Torben Heuer
Hi,

I have a graph (org.geotools.graph.structure.basic.BasicGraph) and I 
want to find alls its subgraphs (that is, all componenents that are not 
connected with each other).

I think there is no such algorithm already implemented in GT and I only 
came up with a n^2 solution, yet. I think n log(n) should be possible.

Do you know if there is an Algorithm in n log(n) which is not 
recursive? My graph has a max depth of ~ 200Mio so I *think* recursion 
matters (I might be wrong) and a simple depth-first traversal is not 
efficient.

Cheers, Jan

-- 
From address is valid until 01.06.2011


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Drawing a circle given a lat/long and feet, WGS84

2011-03-17 Thread Jan Torben Heuer
Mike Hampton wrote:

 I have a lat/long, and a radius in feet.  My ellipsoid is WGS84.
 
 Is there any simple way to calculate the lat/long points on a circle given
 this information?  I understand the math, and can do that if needed, but I
 find it hard to believe that this type of functionality has not already
 been written.

You explicitly mention WGS84, so one question: Do we speak about a circle of 
a few tens of meters or about really large scales?

In the first case, I recommend the GeodeticCalculator. I think you can 
define a point in certain direction (lat,lng,azimuth) with a distance of x 
meters.

In the second case, I think it is more difficult.

Jan
-- 
From address is valid until 01.06.2011


--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] commit does not return

2010-10-20 Thread Jan Torben Heuer
francesca.marte...@iit.cnr.it wrote:

 Can anyone help me in fixing this problem?

At first, you should check with your preferred database monitoring tool if 
the transaction is still executed on the database. If not, debug and inspect 
the stacktrace with your IDE to see where where the Thread is hanging.

Do you have a large dataset?

Cheers,

Jan

-- 
From address is valid until 01.06.2011


--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Anybody interested in a little wms server?

2010-09-27 Thread Jan Torben Heuer
ciber...@gmail.com wrote:

I'd love to see such a full-featured tutorial. Do you publish some parts or 
do you plan to put the full project in some repository?

And, just create a wiki page. I think you can link from the right place,  
later!

Cheers,

Jan
-- 
From address is valid until 01.06.2011


--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] How to use FeatureLock.TRANSACTION when modifying features and committing changes

2010-09-08 Thread Jan Torben Heuer
Augusttown wrote:

 Is there a JUnit test or example written for testing
 FeatureLock.TRANSACTION? There seems to be a problem when using
 FeatureLock.TRANSACTION to lock and modify features. There is always a
 java.lang.IllegalMonitorStateException exception being thrown out when the
 release() is called on instance of TransactionLock. The change has
 actually been committed to the database already before the exception.

Maybe you can create a testcase from your snippet?

One question, is it fine to call #shutdown() on the threadpool at that 
point? There are still threads running.

Cheers,

Jan
-- 
From address is valid until 01.06.2011


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] 3D Delaunay triangulation

2010-09-06 Thread Jan Torben Heuer
LSA wrote:

 I need to triangualate the set of 3D points (given their x,y,z
 coordinates).
 
 As far as I can see, JTS no use for this, because it ignores the z
 coordinate in computations.
 What can I use for this purpose?

Do you know if there is an efficent algorithm for this problem?

Jan
-- 
From address is valid until 01.06.2011


--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Plotting com.vividsolutions.jts.geom.Geometry in a GeoTools MapContext

2010-08-30 Thread Jan Torben Heuer
Paulo Angelo wrote:

 Could you send it for us?  :)

Couldn't find it. Some old svn revision. Have a look at the FeatureBuilder 
docs in the wiki. The JTS part is easy, then.
-- 
From address is valid until 01.06.2011


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Plotting com.vividsolutions.jts.geom.Geometry in a GeoTools MapContext

2010-08-27 Thread Jan Torben Heuer
Paulo Angelo wrote:

 Is there any way to  get a FeatureSource from
 a com.vividsolutions.jts.geom.Geometry (or from a collection of Geometry

Once I just hacked a few lines using a featurebuilder. It was just to build 
points and lines; maybe this approach is sufficient for you.

Jan
-- 
From address is valid until 01.06.2011


--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Can not load CRSAuthorityFactory with GWT and Windows 7

2010-07-02 Thread Jan Torben Heuer
Felix Bache wrote:

Hi Felix,

I had a similar problem a few days ago (also referencing+epsg-hsql). By 
looking at the source file I found a parameter (System property) called:  
-DEPSG-HSQL.directory=/tmp

HTH,

Jan

Mabye
 Hello everyone,
 
 I´m new to geotools and I want to use the CRS.decode() method on the
 server side of my GWT (Jetty Servlet Container) application. But I
 always get an Exception. I included all the jars from the binarys
 except the epsg ones, because I read about that (only extension and
 hsql are included). I´m using geotools 2.7 M1, Eclipse Helios, Java
 JDK 1.6.0_18 and Windows 7 32bit. It might be the case that Windows
 prevents the hsql-epsg from writing its database to the harddisk, I id
 not find any of the files. I do not know how to give geotools write
 access if that´s whats causing the error...
 
 I appreciate all comments and ideas.
 
 Thank you and Best regards
 Felix
 
 WARNUNG: Can't load a service for category CRSAuthorityFactory.
 Cause is ServiceConfigurationError:
 org.opengis.referencing.crs.CRSAuthorityFactory: Provider org (...)
 lang.ClassCastException: class
 org.geotools.referencing.operation.DefaultMathTransformFactory.
 sun.misc.ServiceConfigurationError:
 org.opengis.referencing.crs.CRSAuthorityFactory: Provider
 org.geotools.referencing.factory.epsg.DefaultFactory could not be
 instantiated: java.lang.ClassCastException: class
 org.geotools.referencing.operation.DefaultMathTransformFactory
 at sun.misc.Service.fail(Service.java:120)
 at sun.misc.Service.access$200(Service.java:111)
 at sun.misc.Service$LazyIterator.next(Service.java:276)
 at org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:829)
 at
 
org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773)
 at
 
org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:808)
 at
 
org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:195)
 at
 
org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:176)
 at
 
org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:451)
 at
 
org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:88)
 at
 
org.geotools.referencing.DefaultAuthorityFactory.init(DefaultAuthorityFactory.java:69)
 at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:199) at
 org.geotools.referencing.CRS.decode(CRS.java:437) at
 org.geotools.referencing.CRS.decode(CRS.java:365) at
 
org.n52.server.oxf.serviceImpl.StationPositionsServiceImpl.getStationPositions(StationPositionsServiceImpl.java:100)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597) at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
 at
 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
 at
 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
 at
 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
 at
 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at
 
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
 at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
 at org.mortbay.jetty.Server.handle(Server.java:324) at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at
 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at
 org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at
 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
 at
 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
 Caused by: java.lang.ClassCastException: class
 org.geotools.referencing.operation.DefaultMathTransformFactory at
 java.lang.Class.asSubclass(Class.java:3018) at
 

Re: [Geotools-gt2-users] Geotools+Djikstra Module

2010-06-30 Thread Jan Torben Heuer
laura siewe wrote:

 Please what is the dependency of DijkstraIterator.EdgeWeighter. I have
 an error to this line.

I'd help to actually know the error. The EdgeWeighter is a static inner 
class, so no dependency is needed unless the DijkstraIterator class itself 
is missing. gt-graph contains it.

Cheers,

Jan
-- 
From address is valid until 01.06.2011


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Geotools+ Djisktra

2010-06-26 Thread Jan Torben Heuer
laura siewe wrote:

 Please, I want to know if someone in the forum, has already
 implemented  Djikstra module with a graph using the database
 PostGIS.

I didn't follow you last conversations but what Is your current status? Did 
you manage to read nodes and edges from your database? Do you know WHY you 
need graphs and edges?

And yes, I did it already.

Jan
-- 
Do not put me on CC, always reply to list/group.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Splitting LineStrings at their intersection for DijkstraShortestPathFinder

2010-06-17 Thread Jan Torben Heuer
Oleg Demchenko wrote:

 Well, there are RegionName.osm.bz2 and RegionName.highway.bz2
 available for each region/country on CloudsMade.
 I've loaded it to my postGIS DB wiith osm2pgsql Utility. File *

I took the OSMOSIS importer. It creates graphs.

Jan

P.S. Please only reply to list, not to my email address.
-- 
From address is valid until 01.06.2011


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Splitting LineStrings at their intersection for DijkstraShortestPathFinder

2010-06-16 Thread Jan Torben Heuer
Oleg Demchenko wrote:

 Data is given from a Denmark OSM highway shapefile downloaded from public
 CloudsMade server. In order to optimize process I'm selecting from
 database

If you use the OSM data, why don't you download their nodes and ways 
directly instead of using the generated shapefile and try to reconstruct the 
graph based on intersections? You'll end up as Geisterfahrer on the Autobahn 
;-)

Jan
-- 
From address is valid until 01.06.2011


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] geotools+spatial_ref_sys

2010-06-13 Thread Jan Torben Heuer
arnauld ndefo wrote:

 Though geotools, i have succed to draw my map from the data which are
 stored into the database. But i have always this kind of coordinate:
 x=1131270.8550 y=4418856.9693; x=1131439.2747 y=4418792.6636 etc which
 represent the point on the map and on the JMapFRame frame i have EPSG: WGS
 84 mentionned .However in the file .osm which resume all the nodes of the
 map, i have rather this kind of coordinate: long=10.1623439
 lat=36.8545816; long=10.1702667 lat=36.8532032 etc.

You apparently used the osm importer. It converts all geometries to 
EPSG:900913 (its a fake code from google). Either change the importer or the 
view's coordinate reference system.

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Geotools+Djisktra module

2010-06-08 Thread Jan Torben Heuer
laura siewe wrote:

 I want to use Djikstra module in geotools. I have readed the informations
 which are in this link http://docs.codehaus.org/display/GEOTDOC/Graphs.
 
 But I don't understand very well how to use that in my context because I
 have displayed a map of my geographic area with geotools from PostGIS
 database. Please I want a kind of example which can help me to start and
 show me how to use a graph with a geographic data which are in the PostGIS
 database.

The most critical part is actually how you store the topological data in 
your database. Having only geometries is not enough for routing (Unless you 
assume that touching geometries are connected).

Do you have Nodes and Edges in your database where you can build a graph 
from?


Jan
-- 
From address is valid until 01.06.2010
Please don't reply by mail. Reply to the list.


--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] retrieving interpolated coverage values

2010-05-31 Thread Jan Torben Heuer
Simone Giannecchini wrote:

 There is also an Interpolator2D class available. A few fixes have been

Hi, I tried:

GeoTiffReader reader = new GeoTiffReader(filenames.get(i));
cov = reader.read(null);
GridCoverage2D interpolated = 
   
Interpolator2D.create(cov,Interpolation.getInstance(Interpolation.INTERP_BILINEAR));

// crs is my world reference syste, values an empty double array,
// c is a Coordinate:
DirectPosition dp = new DirectPosition2D(crs, c.x, c.y);
interpolated.evaluate(dp, values);
c.z = values[0];

It just returns integer values. What could be wrong?

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] retrieving interpolated coverage values

2010-05-31 Thread Jan Torben Heuer
Jan Torben Heuer wrote:

 It just returns integer values. What could be wrong?

Nevermind, maybe my test case was wrong. In the real dataset are also 
floats.

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] java.lang.NoSuchMethodError:

2010-05-28 Thread Jan Torben Heuer
arnauld ndefo wrote:

 Hello every body, i have some problem and i don't know how to fix them.
 When i run my project maven on netbeans, i have these error:

You seem to have incompatible versions of jarfiles in your project. From 
your classpath I could identify at least two different ones.

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] [fixed] Re: reading geotiff: One factory fails for the operation ImageRead

2010-05-27 Thread Jan Torben Heuer
Simone Giannecchini wrote:

 So, you are telling me that you get that error right away during a
 simple read on the reader without params?
 This is rather strange, we might probably want to chat a bit on IRC
 tomorrow to spot the cause. K?

Ok, the solution was not to use an InputStream as source Object for the 
GeoTiffReader. An Url or a File works fine.

I suggest to put that at least into the javadoc. Looking at the source code 
of GeoTiffReader, there is code that handles explicitly InputStream so I 
thought it is supported. Another solution is to directly throw an 
IllegalArgumentException with an explanation.

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] rading geotiff: One factory fails for the operation ImageRead

2010-05-26 Thread Jan Torben Heuer
Hi, I'm reading a geotiff (ASTER GDEM) but it fails with the error message 
One factory fails for the operation ImageRead and Caused by: 
javax.imageio.IIOException: I/O error reading header!

I'm not sure if JAI isn't properly set up (but scaling PNGs work for 
example) or the GeoTiff is broken (should be the ASTER GDEM geotiff from 
their page).

I'm using eclipse and maven and geotools 2.6.0, the dependencies are:

  +- org.geotools:gt-geotiff:jar:2.6.0:compile
  |  \- it.geosolutions.imageio-ext:imageio-ext-tiff:jar:1.0.4:compile
  | +- it.geosolutions.imageio-ext:imageio-ext-utilities:jar:1.0.4:co
  | +- javax.media:jai_core:jar:1.1.3:compile
  | +- javax.media:jai_codec:jar:1.1.3:compile
  | \- javax.media:jai_imageio:jar:1.1:compile

The relevant code is:
GeoTiffFormat format = new GeoTiffFormat();
reader = format.getReader(source);
GridCoverage2D cov = (GridCoverage2D) reader.read(null);


Did anyone successfully import the ASTER data? I found some older post in 
this list but no one had the same problem like me.

Cheers,

Jan

-
Stacktrace:

Error: One factory fails for the operation ImageRead
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at 
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at 
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:489)
at 
Caused by: javax.imageio.IIOException: I/O error reading header!
at 
it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.readHeader(TIFFImageReader.java:246)
at 
it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.locateImage(TIFFImageReader.java:253)
at 
it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.seekToImage(TIFFImageReader.java:327)
at 
it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.getImageTypes(TIFFImageReader.java:763)
at javax.imageio.ImageReader.getRawImageType(ImageReader.java:665)
at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.layoutHelper(ImageReadOpImage.java:228)
at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.init(ImageReadOpImage.java:473)
at 
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:309)
... 38 more
Caused by: java.io.EOFException
at 
javax.imageio.stream.ImageInputStreamImpl.readShort(ImageInputStreamImpl.java:215)
at 
javax.imageio.stream.ImageInputStreamImpl.readUnsignedShort(ImageInputStreamImpl.java:228)
at 
it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReader.readHeader(TIFFImageReader.java:221)
... 45 more

-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Help please!

2010-05-26 Thread Jan Torben Heuer
Juan Ramirez wrote:

Sorry but I can just give you the hint to try maven. Its worth the time (and 
searching jar files by hand isn't really fun)

http://www.geotools.org/quickstart.html helped me to set up my project.

Cheers,

Jan
P.S. a more specific subject may give you more answers.
-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] Geotools GeoTiff java

2010-05-26 Thread Jan Torben Heuer
On Wednesday 26 May 2010 15:17:21 you wrote:
Hi,

 Hi Jan, thanks for responsing.
 I have installed Maven and now I understand how to get packages :)
 
 But still I don´t know what packages/dependencies/repositories do I need 
in
  order to compile Geotiff examples. (GeotiffReader, GeoTiffFormat... )
Please always reply to the list so other can benefit from your question.


I use:
dependency
groupIdorg.geotools/groupId
artifactIdgt-geotiff/artifactId
version${gt.version}/version
/dependency
the version can be 2.6.4 for example.

The geotools repository is:

repository
idgeotools/id
urlhttp://download.osgeo.org/webdav/geotools//url
snapshots
enabledfalse/enabled
/snapshots
/repository

And you may need the JAI libs if you play with geotiff.

repository
iddev.java.net/id
urlhttp://download.java.net/maven/2//url
releases
enabledtrue/enabled
/releases
/repository

Notice my other thread: I have all classes but didn't succeed with reading 
TIFFs, yet. There might still be some hidden issue in my config

Cheers,

Jan


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] rading geotiff: One factory fails for the operation ImageRead

2010-05-26 Thread Jan Torben Heuer
On Wednesday 26 May 2010 16:09:14 Simone Giannecchini wrote:
Hi,

 Ciao Jan,
 this does not look like a problem related to having or not some
 dependencies in your path.
 It looks like imageio is not able to correctly read this tiff.

Hi Simone, I just tried udig and it works (so it should work with geotools 
as well). But it didn't work until I set up gdal correctly. But as far as I 
understood the imageio-ext-gdal driver it doesn't handle tiff data? Do I 
need a gdal driver or do could it help in my case?


 -1- Can you try a gdalinfo on it and paste the result?

Warning 1: 
TIFFReadDirectory:src/main/resources/aster_gdem/ASTGTM_N52E010_dem.tif: 
invalid TIFF directory; tags are not sorted in ascending order
Driver: GTiff/GeoTIFF
Files: src/main/resources/aster_gdem/ASTGTM_N52E010_dem.tif
Size is 3601, 3601
Coordinate System is:
GEOGCS[WGS 84,
DATUM[WGS_1984,
SPHEROID[WGS 84,6378137,298.2572235630016,
AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4326]]
Origin = (9.9998611,53.0001391)
Pixel Size = (0.0002778,-0.0002778)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_DOCUMENTNAME=created at
  TIFFTAG_IMAGEDESCRIPTION=SILC TIFF
  TIFFTAG_SOFTWARE=IDL 6.3, Research Systems, Inc.
  TIFFTAG_DATETIME=2008:10:28 18:53:14
  TIFFTAG_XRESOLUTION=100
  TIFFTAG_YRESOLUTION=100
  TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (   9.9998611,  53.0001389) (  9d59'59.50E, 53d 0'0.50N)
Lower Left  (   9.9998611,  51.9998611) (  9d59'59.50E, 51d59'59.50N)
Upper Right (  11.0001389,  53.0001389) ( 11d 0'0.50E, 53d 0'0.50N)
Lower Right (  11.0001389,  51.9998611) ( 11d 0'0.50E, 51d59'59.50N)
Center  (  10.500,  52.500) ( 10d30'0.00E, 52d30'0.00N)
Band 1 Block=3601x1 Type=Int16, ColorInterp=Gray


 -2- Can you send over some sample data?
As far as I understood the ASTER GDEM license I'm not allowed to 
redistribute it. Here is a Link: http://www.gdem.aster.ersdac.or.jp/ but you 
have to log in. I will send you an example file as private mail.


Jan


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] reading geotiff: One factory fails for the operation ImageRead

2010-05-26 Thread Jan Torben Heuer
Simone Giannecchini wrote:

Hi Simone,

 I would try with something as simple as gdal_translate in.tif out.tiff
 to see if it s fixes the problem.

Id did it. This - at least - changes the error message: Source or 
destination region is empty.

Error: One factory fails for the operation ImageRead
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at 
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at 
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:480)
at 
de.komoot.hcn.server.analyser.filter.DEMAltitudeReader.addHeight(DEMAltitudeReader.java:42)
at 
de.komoot.hcn.server.analyser.calculators.DEMReaderTest.testAddHeight(DEMReaderTest.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: 
Source or destination region is empty.
at 
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:317)
... 38 more
Caused by: java.lang.IllegalArgumentException: Source or destination region 
is empty.
at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.computeRegions(ImageReadOpImage.java:454)
at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.layoutHelper(ImageReadOpImage.java:257)
at 
com.sun.media.jai.imageioimpl.ImageReadOpImage.init(ImageReadOpImage.java:473)
at 
com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:309)
... 38 more

The gdal_info output for the new image is now:
Driver: GTiff/GeoTIFF
Files: test.tiff
Size is 3601, 3601
Coordinate System is:
GEOGCS[WGS 84,
DATUM[WGS_1984,
SPHEROID[WGS 84,6378137,298.2572235630016,
AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0],
UNIT[degree,0.0174532925199433],
AUTHORITY[EPSG,4326]]
Origin = (9.9998611,53.0001391)
Pixel Size = (0.0002778,-0.0002778)
Metadata:
  AREA_OR_POINT=Area
  TIFFTAG_DOCUMENTNAME=created at
  TIFFTAG_IMAGEDESCRIPTION=SILC TIFF
  

Re: [Geotools-gt2-users] reading geotiff: One factory fails for the operation ImageRead

2010-05-26 Thread Jan Torben Heuer
Simone Giannecchini wrote:

I simplified the code a bit but the exception remains:

import java.io.IOException;
import java.io.InputStream;
import org.geotools.coverage.grid.GridCoverage2D;
import org.geotools.data.DataSourceException;
import org.geotools.gce.geotiff.GeoTiffFormat;
import org.geotools.gce.geotiff.GeoTiffReader;
import org.geotools.geometry.DirectPosition2D;
import org.geotools.geometry.Envelope2D;
import org.opengis.coverage.grid.GridEnvelope;
import org.opengis.geometry.DirectPosition;
import org.opengis.referencing.crs.CoordinateReferenceSystem;
import org.springframework.util.Assert;
import com.vividsolutions.jts.geom.Coordinate;

GeoTiffReader reader = new GeoTiffReader(source);
GridCoverage2D cov = (GridCoverage2D) reader.read(null);
//here it fails

My system config is:
maven, geotools 2.6.4,
java version 1.6.0_20
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

I tested it within eclipse and on the command line.


[INFO] | |  +- org.geotools:gt-geotiff:jar:2.6.4:compile
[INFO] | |  |  \- it.geosolutions.imageio-ext:imageio-ext-
tiff:jar:1.0.5:compile
[INFO] | |  | +- it.geosolutions.imageio-ext:imageio-ext-
utilities:jar:1.0.5:compile
[INFO] | |  | +- javax.media:jai_core:jar:1.1.3:compile
[INFO] | |  | +- javax.media:jai_codec:jar:1.1.3:compile
[INFO] | |  | \- javax.media:jai_imageio:jar:1.1:compile


Attached the stacktrace,

Cheers, Jan



Error: One factory fails for the operation ImageRead
Occurs in: javax.media.jai.ThreadSafeOperationRegistry
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.media.jai.FactoryCache.invoke(FactoryCache.java:122)
at 
javax.media.jai.OperationRegistry.invokeFactory(OperationRegistry.java:1674)
at 
javax.media.jai.ThreadSafeOperationRegistry.invokeFactory(ThreadSafeOperationRegistry.java:473)
at javax.media.jai.registry.RIFRegistry.create(RIFRegistry.java:332)
at javax.media.jai.RenderedOp.createInstance(RenderedOp.java:819)
at javax.media.jai.RenderedOp.createRendering(RenderedOp.java:867)
at javax.media.jai.RenderedOp.getWidth(RenderedOp.java:2179)
at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:480)
at 
de.komoot.hcn.server.analyser.filter.DEMAltitudeReader.addHeight(DEMAltitudeReader.java:39)
at 
de.komoot.hcn.server.analyser.calculators.DEMReaderTest.testAddHeight(DEMReaderTest.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.RuntimeException: 

Re: [Geotools-gt2-users] totally confused about CoordinateReferenceSystem

2010-05-24 Thread Jan Torben Heuer
ahmet temiz wrote:

 I went over maven and reinstall maven to eclipse.
 I had added GeoAPI jar.

It sounds like you added a jar manually to the classpath instead of using a 
maven dependency. Testcases use such jars but running some servlet container 
with maven does not.

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--

___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] automatic reprojections?

2010-02-22 Thread Jan Torben Heuer
Hi is it possible to automatically reproject a (jts) GeometryCollection 
which is in a Geodetic coordinate system into a cartesian coordinate system?

I have WGS84 data (from all over the world) an I want to apply simple 
operations like buffer or DouglasPeuckerSimplifier.

How can I find a projection that fits best?

Finally, I want to transform them back (which should be the simple part, I 
guess)

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] geometric operations on WGS84 data

2010-02-12 Thread Jan Torben Heuer
I have several data (JTS) in different coordinate reference systems, let's 
assume wgs84. I want to perform some simple operations on them, like buffer 
or polyline simplification.

I didn't find any buffer or simplification algorithms in geotools with let 
me specify parameters in meters. Instead all algorithm just assume a 
Cartesian coordinates.

So I either need suitable algorithms for geodetic reference systems or an 
automatic back-and-forward transformation into an Cartesian coordinate 
system on an abstract best-fit base. (I.e. convert data to the best matching 
Gauss Krueger stripe)

Is this a good approach? Or do you have a better solution?

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] JTS#transform(geometry, crs) - setting the correct SRID

2010-01-19 Thread Jan Torben Heuer
I noticed, that the JTS#transform(geometry,crs) uses internally the 
GeometryFactory from the input geometry. Therefore the old SRID ist still 
connected to the newly created Geometry.

I need a quick patch for the created Geometry in order to store it in a 
postgis database. Is it possible to retrieve the srid from the 
CoordinateReferenceSystem?

new_geometry.setSRID(crs.get...); ?

Cheers,

Jan
-- 
From address is valid until 01.06.2010


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] How to add an array of JTS Coordinates as a Layer on JMapFrame

2010-01-19 Thread Jan Torben Heuer
Development wrote:
^^^ can you fix it? Or is it ok to call you Dev? ;)

 i have a bunch of shapefiles added as Layers in the JMapFrame and no i
 simply want to show an array of JTS coordinates on the map screen! Do ii
 have them to add as a layer ? If yes i looked at the api and an array
 isn`t supportet be the addLayer() method!

I once took one of the examples from the Wiki how to use the FeatureBuilder 
stuff to create a SimpleFeatureCollection. It was very easy. You just have 
to create Point instances from you coordinates, before.

HTH

Jan

-- 
From address is valid until 01.06.2010


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] JTS, WGS84 and Coordinate

2010-01-14 Thread Jan Torben Heuer
Jan Torben Heuer wrote:

 Ok, then, how do I force JTS.transform to interpret the AXIS as x/y
 respective easting/northing?

Ok, thanks, Michael, found it i you link!

Cheers,

Jan
-- 
From address is valid until 01.01.2010


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] (Newbie) transform WGS84 (lat/lon) to UTM32

2010-01-14 Thread Jan Torben Heuer
Schuster Stefan wrote:

 Furthermore I mixed up lon and lat in my example code.

Just read my post: JTS, WGS84 ,... ;-)

Jan
-- 
From address is valid until 01.06.2010


--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] JTS, WGS84 and Coordinate

2010-01-13 Thread Jan Torben Heuer
Jody Garnett wrote:

 In geotools you have the option to force the axis order to be in XY
 order (or easting / northing if you think that way). But it is a choice
 you make as an application developer.

Ok, then, how do I force JTS.transform to interpret the AXIS as x/y 
respective easting/northing?

Cheers,

Jan
-- 
From address is valid until 01.01.2010


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


[Geotools-gt2-users] JTS, WGS84 and Coordinate

2010-01-12 Thread Jan Torben Heuer
Hi,

In which order expects JTS Coordinate the values? I thought, Coordinate(lon, 
lat) would be the correct format. For example I have some OpenStreetMap data 
in my database: SRID=4326;POINT(12.1589415 47.5672387) which is lon/lat  
somewhere in Austria. When loading such data into JTS Point (using the 
postgresql_jts JDBC driver) I get an object like;
(com.vividsolutions.jts.geom.Point) POINT (12.1589415 47.5672387)

Up to this point I was absolutely convinced that JTS stores WGS84 
coordinates as lon/lat. But, When I used the JTS#transform() I noticed the 
following:

JTS.transform(factory_wgs84.createPoint(new Coordinate(100,30), 
sometransformation)

throws the exception:

Latitude 100°00.0 is too close to a pole.

Why does JTS#transform() interpret the first axis as latitude and the second 
as longitude? And which behaviour is correct?

And more important, how/where can I fix it? How does geotools handle this in 
general?

Cheers, 

Jan


-- 



--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


Re: [Geotools-gt2-users] GPX support?

2009-11-02 Thread Jan Torben Heuer
Michael Bedward wrote:

 
 The GPX module hasn't been removed but it hasn't been finished either.
 
 You're probably best to contact the module developer directly because
 I don't think he watches this list all the time.  The email is
 sunburned.surve...@gmail.com

Yes, there are working (maven) of the GPX parser. I use it for junit tests 
to get some geodata but I cannot say anything about its general stability.

Jan
-- 
From address is valid until 01.01.2010


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users