Re: [JPP-Devel] Review of OpenJUMP Functions Help Docs

2007-09-10 Thread Giuseppe Aruta
Sunburned Surveyor <[EMAIL PROTECTED]> ha scritto:Peppe, I would like to try and review some your help documentation for OpenJUMP functions/menu items. Do you care if I make these edits directly in the wiki, or should I make them in a separate document so you can review them? What do you t

[JPP-Devel] ColorThemingStyle Problem

2007-09-10 Thread Malte Weller
Hello List, I use a Thread to create several Layers from a Database. My run-Method calls two other Methods. First one to create and add the layers. Second one to create a ColorThemingStyle-Object to add this to the created Layer. If the Layer holds a ColorThemingStyle-Object it should be remov

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
How about the following interface? The ordinates array has the same semantics as ordinates in a JTS CoordinateSequence. The values in the ordinates array are modified in place by the CoordinateOperation. public interface CoordinateOperation { void perform(double[] ordinates); } For projections

[JPP-Devel] Review of OpenJUMP Functions Help Docs - discussion on use of wiki

2007-09-10 Thread Stefan Steiniger
On the wiki... i am not very happy with the idea of transfering all the stuff of the OJ wiki to the sourceforge wiki. Only the function-help would i consider so far. The point is, that the current wiki is quite established and there is lots of information on the site. It is further impossible f

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
I want to add some comments to this conversation. I hope that I don't really confuse things. I think Paul is heading in a great direction with his interface, and I believe Michael is adding some important things to the conversation. First, I agree with Paul on avoiding the JTS Coordinate object at

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Stefan, I always liked getNorthing() and getEasting over getX and getY myself. It must be a surveyor thing! Still, getX and getY work to, as long as this is explained in the Javadoc or developer documentation. SS On 9/10/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: > I want to add some com

Re: [JPP-Devel] Review of OpenJUMP Functions Help Docs - discussion on use of wiki

2007-09-10 Thread Stefan Steiniger
btw.. i about internationalization of the wiki: i am not sure if this can be done either for the oj-wiki (instiki) or the sf-wiki. But I have seen international ones - such as tikiwi.. stefan PS: i just played around as well with the sf wiki (i put Sunburneds structure into the side menu) .. b

Re: [JPP-Devel] Review of OpenJUMP Functions Help Docs

2007-09-10 Thread Sunburned Surveyor
Peppe, I have commited to testing some code for someone after work today, but I will start directly editing your help docs on the OJ wiki tomorrow after work. I think we will keep everything on the OJ wiki for the time being, as this is what Stefan recommends. (I have no preference for one wiki o

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Hi Paul, That's close to what I can imagine. Can you explain why you choosed to return void instead of double[]. To avoid object creation ? Returning a double[] would have been clearer for me, but may be returning void is more efficient... getInverseOperation is not limited to Projection. Datum

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Landon, 1. For your point 3, I think defining a simple interface is essential for what we are trying to do. This will allow us to do things such as chaining of operations together which I'll cover in response to your point 4. The key is to make the interfaces as simple as possible so as to make it

Re: [JPP-Devel] About embedded help

2007-09-10 Thread Sunburned Surveyor
On 9/8/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote: > Hei.. > > last week i tested and i could extract the html pages of the wiki.. > (after downloading the complete wiki from the backup location) > > But it will still need a bit more testing, e.g. if we can just copy the > html files into an

Re: [JPP-Devel] Review of OpenJUMP Functions Help Docs - discussion on use of wiki

2007-09-10 Thread Stefan Steiniger
Hei again, Sunburned Surveyor schrieb: > Stefan, > > I didn't mean to dig up a bone of contention. Please remember what I > laid out on the wiki was just a suggestion. I can delete it at any > time. not yet.. i played around as well ;) > > I brought up the suggestion of using the SourceForge w

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Michael, I avoided the return type as I don't want to have the extra object creation, I consider the double[] array parameter to be a temporary array used just for the one or more operations, rather than the actual storage of the ordinates. By this I mean when calling an operation you must expect

Re: [JPP-Devel] About embedded help

2007-09-10 Thread Stefan Steiniger
yupp.. i like it this way much more. :o) and i never tested gmail - due to google's "acquisitiveness". But just recently i thought about using it as incomming address for the jpp stuff stefan Sunburned Surveyor schrieb: > On 9/10/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: >> On 9/8/07, Ste

Re: [JPP-Devel] About embedded help

2007-09-10 Thread Sunburned Surveyor
On 9/10/07, Sunburned Surveyor <[EMAIL PROTECTED]> wrote: > On 9/8/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote: > > Hei.. > > > > last week i tested and i could extract the html pages of the wiki.. > > (after downloading the complete wiki from the backup location) > > > > But it will still need

Re: [JPP-Devel] Review of OpenJUMP Functions Help Docs - discussion on use of wiki

2007-09-10 Thread Sunburned Surveyor
Stefan, I didn't mean to dig up a bone of contention. Please remember what I laid out on the wiki was just a suggestion. I can delete it at any time. I brought up the suggestion of using the SourceForge wiki for two (2) reasons: [1] Someone suggested the OJ wiki could use a little more structure

Re: [JPP-Devel] Review of OpenJUMP Functions Help Docs - discussion on use of wiki

2007-09-10 Thread Sunburned Surveyor
Yup. I guess I do sort of talk about whatever I please on the OJ blog, don't I? I wonder if I can rename the OpenJUMP blog? I'll have to check that out on the blogger interface. The Sunburned Surveyor On 9/10/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote: > Hei again, > > > Sunburned Surveyor s

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
>Thirdly, I think it may be a mistake to create a separate >CoordinateOperation interface. I believe this will lead us down the >GeoTools path. A path with many interfaces and classes. What we want >to do is pretty simple, provide ordinate values in one system and get >ordinate values back in some

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Paul You wrote: "The key is to make the interfaces as simple as possible so as to make it easy for people to use and re-use them. I would also not use abstract base classes, instead I would have concrete classes that can be parameterized for different implementations of that Projection (e.g. there

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Stefan Steiniger
on 2: i think you both know transformations but just for completeness: in: BC Albers x,y + (h) = height over geoid) => inverse-project x,y (+ h) to lat,lon + dh (dh = height over ellipsoid) (note: don't know how we will handle geoids) => convert latlon+dh(NAD83) to geocentric x,y,z(NAD83) => trans

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Landon, My vision for end user code. JtsTransform transform = JtsTransformFactory.createCoordinateConversion(3005, 26910); Paul - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Michael wrote: "CoordinateOperation should be the main interface." O.K. - The only thing I find a little confusing about this is that a CoordinateOperation might have nothing to do with spatial reference systems. I might be simpling translating all coordinates by a single XYZ shift, for example.

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
On 9/10/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote: > on 2: > > i think you both know transformations but just for completeness: > in: BC Albers x,y + (h) = height over geoid) > => inverse-project x,y (+ h) to lat,lon + dh (dh = height over ellipsoid) > (note: don't know how we will handle geoi

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Stefan Steiniger
> ... but geodesy is a bit more complicated than converting feet to > meters, and converting a coordinate to the central wgs84 may be a waste > of energy if you just wante to change the projection but stay in your > local datum (in this case, your local datum with your local ellipsoid > should

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Paul wrote: "My vision for end user code. JtsTransform transform = JtsTransformFactory.createCoordinateConversion(3005, 26910);" I like it! My concerns are about how the layer underneath this works. I think a system where the steps necessary for the transformation are left to the implementer of

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Landon, Agreed each CoordinateOperation class should only know how to go in either the direction Geographics->ProjectedSystem or ProjectedSystem->Geographics. It should not need to know about any other systems. Paul Sunburned Surveyor wrote: > Paul wrote: "My vision for end user code. > > JtsTra

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Here is my suggestion for handling ellipsoid issues: If the implementer of the transformation interface needs to move from a target spatial reference system that does not use the ellipsoid of the pivot spatial reference system we provide a helper class called something like SevenParameterEllipsoid

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
CoordinateOperations should use the Ellipsoid they are created with (can be parameterised), they should not need to know how to do Ellipsoid transformations. Ellipsoid transformations would only need to be defined once in geographics to/from one ellipsoid to another, or we could define a pivot elli

[JPP-Devel] More on Spatial Reference System Transformations...Elevations

2007-09-10 Thread Sunburned Surveyor
I wanted to mention something about out spatial reference system transformation code in a separate thread so that the water does not become too muddied. As we talked about before, support for a Z ordinate or elevation ordinate value in transformation methods is important. As you can see in the int

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Paul wrote: "CoordinateOperations should use the Ellipsoid they are created with (can be parameterised), they should not need to know how to do Ellipsoid transformations. Ellipsoid transformations would only need to be defined once in geographics to/from one ellipsoid to another, or we could define

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
On 9/10/07, Stefan Steiniger <[EMAIL PROTECTED]> wrote: > > > Paul Austin schrieb: > > CoordinateOperations should use the Ellipsoid they are created with (can > > be parameterised), they should not need to know how to do Ellipsoid > > transformations. Ellipsoid transformations would only need to b

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Stefan, Yes I did and saw that they have attempted to implements the OGC interfaces for CoordinateOperations. This unfortunately adds a whole extra amount of complexity to the implementations. Which although is useful in some respects is overkill in others. Paul Stefan Steiniger wrote: > just on

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Stefan Steiniger a écrit : >on 2: > >i think you both know transformations but just for completeness: >in: BC Albers x,y + (h) = height over geoid) >=> inverse-project x,y (+ h) to lat,lon + dh (dh = height over ellipsoid) >(note: don't know how we will handle geoids) >=> convert latlon+dh(NAD83)

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Stefan Steiniger
Paul Austin schrieb: > CoordinateOperations should use the Ellipsoid they are created with (can > be parameterised), they should not need to know how to do Ellipsoid > transformations. Ellipsoid transformations would only need to be defined > once in geographics to/from one ellipsoid to another,

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Paul Austin a écrit : >Landon, > >My vision for end user code. > >JtsTransform transform = >JtsTransformFactory.createCoordinateConversion(3005, 26910); > > Or JtsTransformFactory.createCoordinateConversion("EPSG:3005", "EPSG:26910"); to be able to manage other crs databases. Michael >Paul >

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Stefan Steiniger
just one more final comment: Paul, you looked on geotools transformation? stefan Paul Austin schrieb: > CoordinateOperations should use the Ellipsoid they are created with (can > be parameterised), they should not need to know how to do Ellipsoid > transformations. Ellipsoid transformations woul

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Sunburned Surveyor a écrit : >Michael wrote: "CoordinateOperation should be the main interface." > >O.K. - The only thing I find a little confusing about this is that a >CoordinateOperation might have nothing to do with spatial reference >systems. I might be simpling translating all coordinates by

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Michael wrote: "JtsTransformFactory.createCoordinateConversion("EPSG:3005", "EPSG:26910"); to be able to manage other crs databases." Good point Michael. Michael wrote: "A simple XYZ shift has to do with spatial coordinates, as it is one of the possible operation to transform geocentric coordinat

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Stefan Steiniger a écrit : >>... but geodesy is a bit more complicated than converting feet to >>meters, and converting a coordinate to the central wgs84 may be a waste >>of energy if you just wante to change the projection but stay in your >>local datum (in this case, your local datum with you

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Let's think in terms of layers. The lowest layer is the CoordinateOperation layer which is basically the Algorithm layer, each algorithm does a single transformation on the ordinates of a single coordinate. The highest layer would be a Geometry coordinate transformation layer which would transfor

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Paul Austin a écrit : >Landon, > >Agreed each CoordinateOperation class should only know how to go in >either the direction Geographics->ProjectedSystem or >ProjectedSystem->Geographics. It should not need to know about any other >systems. > > Coordinate operations are not just Geographics->Proj

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
Michael, I agree with all you said. I guess my statement there was regarding a particular type of CoordinateOperation. Paul Michaël Michaud wrote: > Paul Austin a écrit : > > >> Landon, >> >> Agreed each CoordinateOperation class should only know how to go in >> either the direction Geographi

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
Paul Austin a écrit : >Michael, > >I agree with all you said. I guess my statement there was regarding a >particular type of CoordinateOperation. > > So we are on the same page as Landon said ;-) >Paul > >Michaël Michaud wrote: > > >>Paul Austin a écrit : >> >> >> >> >>>Landon, >>> >>>A

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Working with so many smart people can really be a pain. :] Michael wrote: "To take an even more trivial example, imagine you just have to change the length unit (meter to feets) or the angle unit (degrees to grads) : transforming the local data to wgs84 before any operation would be a very heavy t

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
Wait a minute! Maybe we can solve this issue by delegating in the layer of functionality just under the exposed API. For example the transformation method might look like this: transformCoordinate(String argSourceSRS, String argDestinationSRS, double argXOrdinate, double argYOrdinate, double argZ

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Michaël Michaud
>I don't see a way around the cost of moving to a geographic "pivot" >spatial reference system while preserving a single-interface API >simplicity. That is something I would really love to see. To me the >wasted CPU cycles are less evil than an API where the client code >needs to determine a chain

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Paul Austin
By Clients I mean clients of the API (aka other Developers) Paul - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ __

Re: [JPP-Devel] Simple Projection Interface

2007-09-10 Thread Sunburned Surveyor
I'm sorry for the confusion I caused with my use of the term "client". I guess there are really two types of clients: [1] The application that wants to use our library for performing transformations. For example: OpenJUMP [2] The programmer that wants to implement support for a specific spatial r

[JPP-Devel] Sample CoordinateOperation interfaces...

2007-09-10 Thread Sunburned Surveyor
I quickly wrote some CoordinateOperation interfaces based on our discussion today. They are crude, but I think they may help move our conversation towards an actual implementation. Please look them over and then tear them apart. :] The Sunburned Surveyor P.S. - You have to change the attached fi