I did a proof of concept but sadly that money did not come through. Rough
approach was to make the "Factory" system for GeoTools plug able. This also
would enable limited Android support.
Best advice is to have a look at what uDig does, since we do have epsg hsql
working.
Jody Garnett
On Thu, Jun 19, 2014 at 11:12 AM, Anuruddha Premalal <
anuruddhaprema...@gmail.com> wrote:
> Hi Jody,
>
> Thanks for the information.
>
> I've tried using a Hint to define the CRS_AUTHORITY_FACTORY
>
> *static {*
> * Hints hints = new Hints(Hints.CRS_AUTHORITY_FACTORY,
> FactoryUsingWKT.class);*
> * GeoTools.init(hints); *
> * }*
>
> What I'm doing is a simple coordinate transformation according to a given
> CRS (source_CRS & target_CRS are user inputs).
>
> sourceCrs = CRS.decode(sourcecrs);
> targetCrs = CRS.decode(targetcrs);
>
> Still I was not able to get it working. The documentation you directed
> says geotools is still working on supporting OSGI environment. Is there any
> way which I could get this working?
>
> Thanks & Regards,
> - Anuruddha.
>
>
>
> On Wed, Jun 18, 2014 at 6:52 PM, Jody Garnett <jody.garn...@gmail.com>
> wrote:
>
>> We have a page in the user guide for OSGi use.
>>
>> http://docs.geotools.org/stable/userguide/welcome/integration.html
>>
>> Jody Garnett
>>
>>
>> On Wed, Jun 18, 2014 at 11:04 PM, Anuruddha Premalal <
>> anuruddhaprema...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to transform coordinates using JTS transform. And I'm using
>>> geotools version 12-SNAPSHOT dependencies. Following are the dependencies
>>> used in the pom file.
>>>
>>> * gt-shapefile
>>> * gt-epsg-hsql
>>>
>>> The transformation function works well when it runs as an eclipse
>>> project. But when i bundled it as a jar and use in a OSGI enviornment, it
>>> throws the following error.
>>>
>>> *org.opengis.referencing.NoSuchAuthorityCodeException: Authority "EPSG"
>>> is unknown or doesn't match the supplied hints. Maybe it is defined in an
>>> unreachable JAR file?*
>>>
>>> I've exported all the needed packages when building the jar, also
>>> checked inside the jar to verify.
>>>
>>> I found a thread, which says there might be issues in using
>>> transformation function in OSGI environment.
>>>
>>> Is this a known issuecr?.
>>>
>>>
>>> Regards,
>>> --
>>> *Anuruddha Premalala(STMIEEE,STMACM) Mobile : +94710461070
>>> <%2B94710461070>E-mail : anuruddhaprema...@gmail.com
>>> <anuruddhaprema...@gmail.com>Sri Lanka.*
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>>> Find What Matters Most in Your Big Data with HPCC Systems
>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>> Leverages Graph Analysis for Fast Processing & Easy Data Exploration
>>> http://p.sf.net/sfu/hpccsystems
>>> _______________________________________________
>>> GeoTools-GT2-Users mailing list
>>> GeoTools-GT2-Users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>>
>>>
>>
>
>
> --
> *Anuruddha Premalala(STMIEEE,STMACM)Mobile : +94710461070
> <%2B94710461070>E-mail : anuruddhaprema...@gmail.com
> <anuruddhaprema...@gmail.com> Sri Lanka.*
>
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users