Landon,

The Java Projection Library works purely on coordinates not on features.
I defined a simple interface for projections that project forward and
inverse on JTS Geometries. I think what we need to do in JUMP is define
an interface for projections something like shown below. And then define
a ProjectionFactory interface that creates the projection. Within JUMP
we just deal with these interfaces, we are then free to switch between
different projection libraries, they just have to implement those two
interfaces

package com.revolsys.gis.projection;

import com.vividsolutions.jts.geom.Coordinate;

public interface Projection {

  Envelope project(final Envelope envelope);

  Geometry project(final Geometry geometry);

  Point project(final Point point);

  LineString project(final LineString ring);

  Polygon project(final Polygon polygon);

  MultiPoint project(final MultiPoint point);

  MultiLineString project(final MultiLineString line);

  MultiPolygon project(final MultiPolygon polygon);

  LinearRing project(final LinearRing ring);

  Coordinate[] project(final Coordinate[] coordinates);

  CoordinateSequence project(final CoordinateSequence coordinates);

  Coordinate project(final Coordinate coordinate);

  Coordinate project(double x, double y);

  Coordinate project(double x, double y, double z);

  Geometry projectInverse(final Geometry geometry);

  Envelope projectInverse(final Envelope envelope);

  Polygon projectInverse(final Polygon polygon);

  LinearRing projectInverse(final LinearRing ring);

  LineString projectInverse(final LineString ring);

  Coordinate[] projectInverse(final Coordinate[] coordinates);

  CoordinateSequence projectInverse(final CoordinateSequence coordinates);

  Coordinate projectInverse(final Coordinate coordinate);

  Coordinate projectInverse(double x, double y);

  Coordinate projectInverse(double x, double y, double z);

  GeometryFactory getInverseGeometryFactory();

  GeometryFactory getProjectionGeometryFactory();

}

Sunburned Surveyor wrote:
> Paul,
>
> This is great. We need more efforts at collaboration like this.
>
> Markus and Andreas,
>
> What is the status of the projection code in Deegree? Could it be
> modified for use in OpenJUMP? (It would probably be easier to use a
> library from Deegree, since using the port of Proj4 will probably
> require conversion to another feature model, or at least a geometry
> conversion of some sort. [Unless the library works with raw file
> formats.])
>
> Maybe we need to consider using the Deegree projection code in
> OpenJUMP and if this is sucsessful promoting the library as the "Java"
> solution for map projection and coordinate transformations. It seems
> like this would be a logical area for coordination among teams.
>
> The Sunburned Surveyor
>
> On 8/24/07, Paul Austin <[EMAIL PROTECTED]> wrote:
>   
>> Larry the code can be got from
>> http://www.jhlabs.com/java/maps/proj/javaproj-1.0.4.zip so you can see
>> the size of it.
>>
>> I've emailed the author to find out what is missing and to see if he
>> wants to get involved in the discussion.
>>
>> Paul
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >>  http://get.splunk.com/
>> _______________________________________________
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>     
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to