Ted_Buzz | 1 Jul 2010 01:37
Picon
Favicon

Re: One Meter ???converted to Longitude and latitude and viceversa


Is there is a class to calculate the angle between three points similar  to
GeodeticCalculator  ??? 
--

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/One-Meter-converted-to-Longitude-and-latitude-and-viceversa-tp5222998p5241360.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
Jan Torben Heuer | 1 Jul 2010 01:42
Picon

Re: Geotools+Djikstra Module

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
Jody Garnett | 1 Jul 2010 02:20
Picon
Gravatar

Re: Geotools+Djikstra Module

The EdgeWeighter is how you tell how much each "edge" costs to traverse.

Examples:
-  Usually this is just the distance; if you want to find the shortest route
- or maybe you want to consider distance/speed (ie time) if you are trying to find the quickest route.

Jody

On 01/07/2010, at 6:52 AM, laura siewe wrote:

hello everybody,

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

Thanks for your help.

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Jody Garnett | 1 Jul 2010 02:31
Picon
Gravatar

Re: Legend

The WMS layes support a get legend graphics operation so you should be able to make a legend graphic from that.
There is an example request on the user guide wiki.

I had a bit of trouble with it myself as many WMS servers ignore your requested width and height and return a small image that is part of a larger icon + title. So in uDig I went to some trouble to extract a 16x16 icon if in fact the WMS ignored me and returned something larger then the 16x16 icon I asked for.

If you are interested the code is here:

For vector layers you need to roll up your sleeves and generate something - In uDig I used code to look at the SLD for the vector layers and generate an icon.


If you could tame these two uDig specific examples into something for java swing we could add them to the gt-swing module (and it would be a great help).

I think the geoserver project also started drawing icons by hand based on SLD?

Jody

On 01/07/2010, at 7:51 AM, Parker, Peter R (DNR) wrote:

Hello,

I currently have a MapContent that contains some vector data layers and some WMS source layers.  I want to create a Legend image based on the styles associated with the features in the vector layers and combine that with images created from the WMS GetLegendGraphic request for the WMS layers.  Any suggestions?

 

Thank you,

Peter

 

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
Andrea Aime | 1 Jul 2010 08:14
Favicon

Re: oracle.sql.RAW in Oracle table

Tobia Di Pisa ha scritto:
> Hi all,
>  
> I'm working on a Oracle table that has an attribute of type 
> 'oracle.sql.RAW'.
> 
> The write operation on this table is not permitted since the table is 
> considered by GT as read-only.
> 
> In debug I seem to have understood that the reason for this is that GT, 
> unable to map the RAW attribute, set the table as read-only.
> 
> This is the log message:
> 
> AVVERTENZA: Could not find mapping for 'ESP_COMP_COMPARABILE', ignoring 
> the column and setting the feature type read only.
> 
> Can you show me the way to resolve this problem? The use of a 
> 'OracleRawConverterFactory' is the right way forward ?

I see two options, both require some patching:
- we change the store to mark only the column as read only and
   ignore its contents during all updates and inserts
- you create a mapping for that type (I guess, towards byte[]?)
   and setup reading code for it.

For the latter you can get inspiration from the patch
at http://jira.codehaus.org/browse/GEOT-2005 that added
support for LOB data types.

Cheers
Andrea

--

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
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
Andrea Aime | 1 Jul 2010 08:18
Favicon

Re: Map parameters in OracleNGDataStoreFactory

Tobia Di Pisa ha scritto:
> Hi all,
> 
> I need to access an Oracle data store using the following parameters:
> 
> USER: xxx
> 
> PASSWD: xxx
> 
> DATABASE: (DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST 
> = xxx)(PORT = xxxx))(ADDRESS = (PROTOCOL = TCP)(HOST = xxx)(PORT = 
> xxxx))(LOAD_BALANCE = 
> yes))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=xxx.xxx.xxx.xx)(FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)(RETRIES=180)(DELAY=5))))
> 
> When you run the OracleNGDataStoreFactory.getJDBCUrl (Map params) 
> protected method, the execution of the 'lookUp' function throws an 
> IOException as the HOST and PORT parameters are required.
> 
> This is the method code:
> 
>     ...
>      
>      <at> Override
>     protected String getJDBCUrl(Map params) throws IOException {
>         String host = (String) HOST.lookUp(params);
>         String db = (String) DATABASE.lookUp(params);
>         int port = (Integer) PORT.lookUp(params);
> 
>         if( db.startsWith("(") )
>             return JDBC_PATH + db;
>         else if( db.startsWith("/") )
>             return JDBC_PATH + "//" + host + ":" + port + db;
>         else
>             return JDBC_PATH + host + ":" + port + ":" + db;
>     }
>    
>     ...
>    
>    
> In fact, if the DATABASE parameter starts with "(", the HOST and PORT 
> parameters are not used because the function returns 'JDBC_PATH + db'.
> To resolve this problem I used this code:
> 
>     ...
>    
>      <at> Override
>     protected String getJDBCUrl(Map params) throws IOException {
>         String db = (String) DATABASE.lookUp(params);
>        
>         if(db.startsWith("("))
>             return JDBC_PATH + db;       
>        
>         String host = (String) HOST.lookUp(params);       
>         int port = (Integer) PORT.lookUp(params);
>        
>         if( db.startsWith("/") )
>             return JDBC_PATH + "//" + host + ":" + port + db;
>         else
>             return JDBC_PATH + host + ":" + port + ":" + db; 
>     }
>    
>     ...
> 
> Are there any contraindications to change the method 'getJDBCUrl' in 
> this way ?

I don't think so, but for jdbc-ng changes you should open a Jira and
cc me, Justin and Christian (the module maintainers).

Is the above really solving the issue? Host and port are marked
as required at the JDBCDataStoreFactory declaration.
I think you also create clones in OracleDataStoreFactory
that do not have the "required" flag set up and use those
in getParametersInfo

Cheers
Andrea

--

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
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
arnauld ndefo | 1 Jul 2010 08:28
Picon
Favicon

geotools+refreshing

hello everybody,
i  have a really problem with the refreshing of the map.

Firstly, i have displayed the map without problem with DefaultMapContext. Now i want to add a LineString on this map. This work succefully but the map on JMapFrame
disappear and appear with this Linestring. I want to add this lineString without this disappearance and appearance of the map.

Remember that, i use postgis to generate my map.

Thank you


Ndefo Kamgne Arnauld
Cité Ettayour,Immeuble Bolbol 1,Appartement A2,Ariana
0021624249357

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
andrea antonello | 1 Jul 2010 08:53
Picon
Gravatar

Re: svg in style

[...]
> Did you add the gt-svg module to the classpath?
> Without it the external graphics factory that can handle svg is not going to
> be there. That in turn depends on Batik

Hmpf, yes, the way round didn't work, my bad. Thanks Andrea, that now
works awsome.

Ciao
Andrea

>
> Cheers
> Andrea
>
>
> --
> Andrea Aime
> OpenGeo - http://opengeo.org
> Expert service straight from the developers.
>

------------------------------------------------------------------------------
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
Simon Hartley | 1 Jul 2010 10:21
Picon

Re: One Meter ???converted to Longitude and latitude and viceversa

Are you looking for the Angle class?
Maybe the method interiorAngle or angleBetween.

-----Original Message-----
From: Ted_Buzz [mailto:ahmad-darweesh@...] 
Sent: 01 July 2010 00:38
To: geotools-gt2-users@...
Subject: Re: [Geotools-gt2-users] One Meter ???converted to Longitude and latitude and viceversa

Is there is a class to calculate the angle between three points similar  to
GeodeticCalculator  ??? 
*** This communication has been sent from World Fuel Services 
Corporation or its subsidiaries or its affiliates for the intended recipient 
only and may contain proprietary, confidential or privileged information. 
If you are not the intended recipient, any review, disclosure, copying, 
use, or distribution of the information included in this communication 
and any attachments is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to this 
communication and delete the communication, including any 
attachments, from your computer. Electronic communications sent to or 
from World Fuel Services Corporation or its subsidiaries or its affiliates 
may be monitored for quality assurance and compliance purposes.***

------------------------------------------------------------------------------
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
Felix Bache | 1 Jul 2010 12:13
Picon
Favicon

Can not load CRSAuthorityFactory with GWT and Windows 7

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 org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:866)
	at org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:773)
	at org.geotools.factory.FactoryRegistry.scanForPluginsIfNeeded(FactoryRegistry.java:808)
	at org.geotools.factory.FactoryRegistry.getUnfilteredProviders(FactoryRegistry.java:229)
	at org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistry.java:429)
	at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364)
	at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143)
	at org.geotools.referencing.ReferencingFactoryFinder.getFactory(ReferencingFactoryFinder.java:193)
	at org.geotools.referencing.ReferencingFactoryFinder.getMathTransformFactory(ReferencingFactoryFinder.java:503)
	at org.geotools.referencing.factory.ReferencingFactoryContainer.getMathTransformFactory(ReferencingFactoryContainer.java:273)
	at org.geotools.referencing.factory.ReferencingFactoryContainer.initialize(ReferencingFactoryContainer.java:180)
	at org.geotools.referencing.factory.ReferencingFactoryContainer.getImplementationHints(ReferencingFactoryContainer.java:205)
	at org.geotools.factory.FactoryRegistry.usesAcceptableHints(FactoryRegistry.java:551)
	at org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:505)
	at org.geotools.factory.FactoryRegistry.getServiceImplementation(FactoryRegistry.java:436)
	at org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364)
	at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:143)
	at org.geotools.referencing.factory.ReferencingFactoryContainer.instance(ReferencingFactoryContainer.java:170)
	at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.<init>(ThreadedEpsgFactory.java:188)
	at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.<init>(ThreadedEpsgFactory.java:150)
	at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.<init>(ThreadedEpsgFactory.java:143)
	at org.geotools.referencing.factory.epsg.DefaultFactory.<init>(DefaultFactory.java:37)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at sun.misc.Service$LazyIterator.next(Service.java:271)
	... 39 more

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Gmane