Here is a code snippet provided by Andreas Poth. It shows how to
reproject a world file from WGS84 to California State Plane
Coordinates. I thought the code was quite simple:

import org.deegree.model.coverage.grid.WorldFile;
import org.deegree.model.crs.CRSFactory;
import org.deegree.model.crs.CoordinateSystem;
import org.deegree.model.crs.GeoTransformer;
import org.deegree.model.spatialschema.Envelope;

public class Test {

   public static void main( String[] args )
                           throws Exception {

       // myImage.jpg must have a assigned worldfile
       WorldFile wf = WorldFile.readWorldFile( "myImage.jpg",
WorldFile.TYPE.CENTER );
       Envelope env = wf.getEnvelope();
       GeoTransformer gt = new GeoTransformer( "EPSG:26747" );
       CoordinateSystem sourceCRS = CRSFactory.create( "EPSG:4326" );
       env = gt.transform( env, sourceCRS, true );
       System.out.println(env);
   }

}

The Sunburned Surveyor

On Thu, Apr 3, 2008 at 11:26 AM, Martin Davis <[EMAIL PROTECTED]> wrote:
>
>
> Stefan Steiniger wrote:
> > Hei.. did you know that we talked a while ago to the Deegree people on
> > that subject (Lat/Lon). And they told us, that there is the need for
> > some rewriting - which they planned to do (at that time - now, they are
> > probably to busy). That is why we did not start yet to adopt any code of
> > them. Also DeeJUMP has (had?) coordinate system support, the problem was
> > that it did not use a native java lib but rather a wrapper.
> >
> > so I wouldn't touch the topic right now with respect to deegree.
> > However, Martin posted on his blog a link to a new FOS software that has
> > some projection features:
> >
> > http://lin-ear-th-inking.blogspot.com/2008/03/tired-of-those-boring-old-conformal-map.html
> >
> > Maybe we look rather at this one? But .. an interface for this must be
> > well thought when starting from scratch, to also allow custom projections
> >
> Well.... that post was made really just for bizarreness value, not as a
> suggestion that this would provide a good projection library!
>
> Here's some more food for thought:  http://wiki.osgeo.org/wiki/MetaCRS
>
> However, what's really needed is a Java CRS library.  Two directions
> would be to use deegrees, or GeoTools.  GT's came with some ugly baggage
> last time I looked, but I think they are stripping it down to make it
> more pluggable.
>
> --
> Martin Davis
> Senior Technical Architect
> Refractions Research, Inc.
> (250) 383-3022
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to