Re: [JPP-Devel] Creating TIN with OpenJUMP

2016-12-07 Thread Rahkonen Jukka (MML)
Hi,



As far as I understand individual polygons can be presented in any order.

Excerpt from the WKT standard
https://github.com/postgis/postgis/blob/svn-trunk/doc/bnf-wkt.txt


The orientation of the polygons must be consistent and it looks like they 
should wind counterclockwise. I am reading the version 1.2.1 of the Simple 
feature access - Common architecture standard.

Support of TIN could probably be only partial and limited to triangles which 
have a vertical footprint (flat polygons, possibly Z or M coordinates for the 
vertices) which would be enough for digital elevation models which I have in my 
mind.  For example the first triangle in this example does not make sense for 
OpenJUMP while the last one is OK.

Tin Z (
((0 0 0, 0 0 1, 0 1 0, 0 0 0)),
((0 0 0, 0 1 0, 1 0 0, 0 0 0)),
((0 0 0, 1 0 0, 0 0 1, 0 0 0)),
((1 0 0, 0 1 0, 0 0 1, 1 0 0)),
)

Concrete use case is to create raw 3D data from point measurements for 
visualizing with other tools later. Here is an example 
http://latuviitta.org/documents/3D/3D-test.html (requires Open GL support in 
browser).

BTW. We have quite promising TIN tools in the Sextante toolbox including one 
with Bezier smoothing.

There might be something in TIN that would help validation: each segment must 
be shared by two triangles except the out-most ones which are used by only one 
triangle. The segments belonging to only one triangle should all together make 
a closed,  oriented ring. Holes are not allowed.

-Jukka-
Lähettäjä: Michaël Michaud <m.michael.mich...@orange.fr>
Lähetetty: 7. joulukuuta 2016 10:04
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Creating TIN with OpenJUMP


Hi,

Does it mean that the format does not include any relation between triangles ? 
Triangles can be described in a any order ?

If triangles are described as individual polygons, it should be quite easy to 
output a WKT TIN from a layer containing a triangulated dataset.

What is more difficult is to guarantee that the layer contains a consistent 
triangulation.

Concrete use cases would be useful. I can see at least two very different 
use-cases :

- using triangulation in OpenJUMP -> having an efficient internal structure to 
localize a point in a triangulation, to interpolate a z value, etc.

- being able to import/export TIN to communicate with software already having 
TIN capabilities (interpolation, 3D visualization...)

Michaël

Le 06/12/2016 à 16:49, Brian M Hamlin a écrit :
Formally valid WKT TIN  (from PostGIS regress)
-

'TIN ZM ( ((0 0 0 0, 0 0 1 0, 0 1 0 4, 0 0 0 0)), ((0 0 0 1, 0 1 0 2, 1 1 0 3, 
0 1 0 1)) )'

'TIN EMPTY'

'TIN ( ((0 0, 0 0, 0 1, 0 0)), ((0 0, 0 1, 1 1, 0 0)) )'

'TIN Z ( ((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)) )'

'TIN M ( ((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)) )'

'TIN ZM ( ((0 0 0 0, 0 0 1 0, 0 1 0 4, 0 0 0 0)), ((0 0 0 1, 0 1 0 2, 1 1 0 3, 
0 0 0 1)) )'




On Tue, 6 Dec 2016 07:42:15 -0800, Landon Blake wrote:

Jukka:

I did some work on a TIN plug-in for GeoTools a few years ago with a Summer of 
Code project. I know there is also TIN code as part of JTS.

I don't think either of these got incorporated in to JUMP/OpenJUMP.

Do you need the TIN WKT file format for a specific purpose?

Landon


On Fri, Dec 2, 2016 at 8:57 AM, Giuseppe Aruta 
<giuseppe.ar...@gmail.com<mailto:giuseppe.ar...@gmail.com>> wrote:
Good question
there was a Google summer of code some years ago about OpenJUMP and TIN.
AFAIR Landon should have more information about it
Peppe

2016-12-02 13:53 GMT+01:00 Rahkonen Jukka (MML) 
<jukka.rahko...@maanmittauslaitos.fi<mailto:jukka.rahko...@maanmittauslaitos.fi>>:
Hi,

It seems that the Triangulation function in OpenJUMP handles the Z coordinate 
and creates triangles which could be combined into TIN.

With four source points:

POINT ( 420 560 25 )
POINT ( 420 720 10 )
POINT ( 620 720 20 )
POINT ( 620 560 15 )

Triangulation creates two triangles as polygons:
POLYGON (( 420 720 10, 420 560 25, 620 560 15, 420 720 10 ))
POLYGON (( 420 720 10, 620 560 15, 620 720 20, 420 720 10 ))

I suppose that as a TIN these two triangles would look like
TIN ((( 420 720 10, 420 560 25, 620 560 15, 420 720 10 )), (( 420 720 10, 620 
560 15, 620 720 20, 420 720 10 )))

Has anybody made OpenJUMP TIN-abled?  TIN is pretty close to multipolygon, but 
OpenJUMP knows that multipolygons are not allowed to be side-by-side and 
therefore it is not possible to use a workaround to combine polygons into 
multipolygon and finally edit WKT and change MULTIPOLYGON->TIN. Now OpenJUMP 
builds a geometrycollection and there is much more to edit.

-Jukka Rahkonen-

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Sl

Re: [JPP-Devel] Creating TIN with OpenJUMP

2016-12-07 Thread Michaël Michaud

Hi,

Does it mean that the format does not include any relation between 
triangles ? Triangles can be described in a any order ?


If triangles are described as individual polygons, it should be quite 
easy to output a WKT TIN from a layer containing a triangulated dataset.


What is more difficult is to guarantee that the layer contains a 
consistent triangulation.


Concrete use cases would be useful. I can see at least two very 
different use-cases :


- using triangulation in OpenJUMP -> having an efficient internal 
structure to localize a point in a triangulation, to interpolate a z 
value, etc.


- being able to import/export TIN to communicate with software already 
having TIN capabilities (interpolation, 3D visualization...)


Michaël


Le 06/12/2016 à 16:49, Brian M Hamlin a écrit :

Formally valid WKT TIN  (from PostGIS regress)
-

'TIN ZM ( ((0 0 0 0, 0 0 1 0, 0 1 0 4, 0 0 0 0)), ((0 0 0 1, 0 1 0 2, 
1 1 0 3, 0 1 0 1)) )'


'TIN EMPTY'

'TIN ( ((0 0, 0 0, 0 1, 0 0)), ((0 0, 0 1, 1 1, 0 0)) )'

'TIN Z ( ((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)) )'

'TIN M ( ((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)) )'

'TIN ZM ( ((0 0 0 0, 0 0 1 0, 0 1 0 4, 0 0 0 0)), ((0 0 0 1, 0 1 0 2, 
1 1 0 3, 0 0 0 1)) )'





/On Tue, 6 Dec 2016 07:42:15 -0800, Landon Blake wrote:/


Jukka:
I did some work on a TIN plug-in for GeoTools a few years ago with a 
Summer of Code project. I know there is also TIN code as part of JTS.

I don't think either of these got incorporated in to JUMP/OpenJUMP.
Do you need the TIN WKT file format for a specific purpose?
Landon
On Fri, Dec 2, 2016 at 8:57 AM, Giuseppe Aruta 
> wrote:


Good question
there was a Google summer of code some years ago about OpenJUMP
and TIN.
AFAIR Landon should have more information about it
Peppe
2016-12-02 13:53 GMT+01:00 Rahkonen Jukka (MML)
>:

Hi,

It seems that the Triangulation function in OpenJUMP handles
the Z coordinate and creates triangles which could be combined
into TIN.

With four source points:

POINT ( 420 560 25 )

POINT ( 420 720 10 )

POINT ( 620 720 20 )

POINT ( 620 560 15 )

Triangulation creates two triangles as polygons:

POLYGON (( 420 720 10, 420 560 25, 620 560 15, 420 720 10 ))

POLYGON (( 420 720 10, 620 560 15, 620 720 20, 420 720 10 ))

I suppose that as a TIN these two triangles would look like

TIN ((( 420 720 10, 420 560 25, 620 560 15, 420 720 10 )), ((
420 720 10, 620 560 15, 620 720 20, 420 720 10 )))

Has anybody made OpenJUMP TIN-abled?  TIN is pretty close to
multipolygon, but OpenJUMP knows that multipolygons are not
allowed to be side-by-side and therefore it is not possible to
use a workaround to combine polygons into multipolygon and
finally edit WKT and change MULTIPOLYGON->TIN. Now OpenJUMP
builds a geometrycollection and there is much more to edit.

-Jukka Rahkonen-


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


--
Landon
"Homemade cookies. Hmm!"

Web: www.landonblake.com 

LinkedIn: https://www.linkedin.com/in/landonblake

Google+: https://plus.google.com/u/0/+LandonBlake

Facebook: https://www.facebook.com/scott.l.blake.3

Pinterest: https://www.pinterest.com/landon_blake/

Sumry: https://sumry.me/landonblake

About.Me: https://about.me/landonblake

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel 

Re: [JPP-Devel] Creating TIN with OpenJUMP

2016-12-06 Thread Brian M Hamlin




Formally valid WKT TIN (from PostGIS regress)
-

TIN ZM ( ((0 0 0 0, 0 0 1 0, 0 1 0 4, 0 0 0 0)), ((0 0 0 1, 0 1 0 2, 1 1 0 
3, 0 1 0 1)) )

TIN EMPTY

TIN ( ((0 0, 0 0, 0 1, 0 0)), ((0 0, 0 1, 1 1, 0 0)) )

TIN Z ( ((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)) 
)

TIN M ( ((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)) 
)

TIN ZM ( ((0 0 0 0, 0 0 1 0, 0 1 0 4, 0 0 0 0)), ((0 0 0 1, 0 1 0 2, 1 1 0 
3, 0 0 0 1)) )






On Tue, 6 Dec 2016 07:42:15 -0800, Landon Blake 
 wrote:





Jukka:


I did some work on a TIN plug-in for GeoTools a few years ago with a 
Summer of Code project. I know there is also TIN code as part of JTS.



I dont think either of these got incorporated in to 
JUMP/OpenJUMP.



Do you need the TIN WKT file format for a specific purpose?



Landon





On Fri, Dec 2, 2016 at 8:57 AM, Giuseppe Aruta mailto:giuseppe.ar...@gmail.com; 
target="_blank">giuseppe.ar...@gmail.com wrote:





Good question
there was a Google summer of code some years ago about OpenJUMP and TIN.
AFAIR Landon should have more information about it
Peppe




2016-12-02 13:53 GMT+01:00 Rahkonen Jukka (MML) mailto:jukka.rahko...@maanmittauslaitos.fi; 
target="_blank">jukka.rahkonen@maanmittauslaitos.fi:







Hi,



It seems that the Triangulation 
function in OpenJUMP handles the Z coordinate and creates triangles which could 
be combined into TIN.



With four source points:



POINT ( 420 560 25 )

POINT ( 420 720 10 )

POINT ( 620 720 20 )

POINT ( 620 560 15 )



Triangulation creates two triangles as 
polygons:

POLYGON (( 420 720 10, 420 560 25, 620 
560 15, 420 720 10 ))

POLYGON (( 420 720 10, 620 560 15, 620 
720 20, 420 720 10 ))



I suppose that as a TIN these two 
triangles would look like 

TIN ((( 420 720 10, 420 560 25, 620 560 
15, 420 720 10 )), (( 420 720 10, 620 560 15, 620 720 20, 420 720 10 
)))



Has anybody made OpenJUMP 
TIN-abled? TIN is pretty close to multipolygon, but OpenJUMP knows that 
multipolygons are not allowed to be side-by-side and therefore it is not 
possible to use a workaround to combine polygons into multipolygon and finally 
edit WKT and change MULTIPOLYGON-TIN. Now OpenJUMP builds a 
geometrycollection and there is much more to edit.



-Jukka Rahkonen- 






--
Check out the vibrant tech community on one of the worlds most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot; 
rel="noreferrer" target="_blank">http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
mailto:Jump-pilot-devel@lists.sourceforge.net; 
target="_blank">Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel; 
rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




--
Check out the vibrant tech community on one of the worlds most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot; 
rel="noreferrer" target="_blank">http://sdm.link/slashdot
___
Jump-pilot-devel mailing list
mailto:Jump-pilot-devel@lists.sourceforge.net;>Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel; 
rel="noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel





--


Landon
Homemade cookies. Hmm!

Web: http://www.landonblake.com; 
target="_blank">www.landonblake.com

LinkedIn: https://www.linkedin.com/in/; 
target="_blank">https://www.linkedin.com/in/landonblake

Google+: https://plus.google.com/u/0/+LandonBlake; 
target="_blank">https://plus.google.com/u/0/+LandonBlake

Facebook:https://www.facebook.com/scott.l.blake.3; 
target="_blank">https://www.facebook.com/scott.l.blake.3

Pinterest:https://www.pinterest.com/landon_blake/; 
target="_blank">https://www.pinterest.com/landon_blake/

Sumry:https://sumry.me/landonblake; 
target="_blank">https://sumry.me/landonblake

About.Me: https://about.me/landonblake; 
target="_blank">https://about.me/landonblake





--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi 
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer 

Re: [JPP-Devel] Creating TIN with OpenJUMP

2016-12-06 Thread Landon Blake
Jukka:

I did some work on a TIN plug-in for GeoTools a few years ago with a Summer
of Code project. I know there is also TIN code as part of JTS.

I don't think either of these got incorporated in to JUMP/OpenJUMP.

Do you need the TIN WKT file format for a specific purpose?

Landon


On Fri, Dec 2, 2016 at 8:57 AM, Giuseppe Aruta 
wrote:

> Good question
> there was a Google summer of code some years ago about OpenJUMP and TIN.
> AFAIR Landon should have more information about it
> Peppe
>
> 2016-12-02 13:53 GMT+01:00 Rahkonen Jukka (MML)  maanmittauslaitos.fi>:
>
>> Hi,
>>
>>
>>
>> It seems that the Triangulation function in OpenJUMP handles the Z
>> coordinate and creates triangles which could be combined into TIN.
>>
>>
>>
>> With four source points:
>>
>>
>>
>> POINT ( 420 560 25 )
>>
>> POINT ( 420 720 10 )
>>
>> POINT ( 620 720 20 )
>>
>> POINT ( 620 560 15 )
>>
>>
>>
>> Triangulation creates two triangles as polygons:
>>
>> POLYGON (( 420 720 10, 420 560 25, 620 560 15, 420 720 10 ))
>>
>> POLYGON (( 420 720 10, 620 560 15, 620 720 20, 420 720 10 ))
>>
>>
>>
>> I suppose that as a TIN these two triangles would look like
>>
>> TIN ((( 420 720 10, 420 560 25, 620 560 15, 420 720 10 )), (( 420 720 10,
>> 620 560 15, 620 720 20, 420 720 10 )))
>>
>>
>>
>> Has anybody made OpenJUMP TIN-abled?  TIN is pretty close to
>> multipolygon, but OpenJUMP knows that multipolygons are not allowed to be
>> side-by-side and therefore it is not possible to use a workaround to
>> combine polygons into multipolygon and finally edit WKT and change
>> MULTIPOLYGON->TIN. Now OpenJUMP builds a geometrycollection and there is
>> much more to edit.
>>
>>
>>
>> -Jukka Rahkonen-
>>
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> ___
>> Jump-pilot-devel mailing list
>> Jump-pilot-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>>
>>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>


-- 
Landon
"Homemade cookies. Hmm!"

Web: www.landonblake.com

LinkedIn: https://www.linkedin.com/in/landonblake

Google+: https://plus.google.com/u/0/+LandonBlake

Facebook: https://www.facebook.com/scott.l.blake.3

Pinterest: https://www.pinterest.com/landon_blake/

Sumry: https://sumry.me/landonblake

About.Me: https://about.me/landonblake
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Creating TIN with OpenJUMP

2016-12-02 Thread Giuseppe Aruta
Good question
there was a Google summer of code some years ago about OpenJUMP and TIN.
AFAIR Landon should have more information about it
Peppe

2016-12-02 13:53 GMT+01:00 Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi>:

> Hi,
>
>
>
> It seems that the Triangulation function in OpenJUMP handles the Z
> coordinate and creates triangles which could be combined into TIN.
>
>
>
> With four source points:
>
>
>
> POINT ( 420 560 25 )
>
> POINT ( 420 720 10 )
>
> POINT ( 620 720 20 )
>
> POINT ( 620 560 15 )
>
>
>
> Triangulation creates two triangles as polygons:
>
> POLYGON (( 420 720 10, 420 560 25, 620 560 15, 420 720 10 ))
>
> POLYGON (( 420 720 10, 620 560 15, 620 720 20, 420 720 10 ))
>
>
>
> I suppose that as a TIN these two triangles would look like
>
> TIN ((( 420 720 10, 420 560 25, 620 560 15, 420 720 10 )), (( 420 720 10,
> 620 560 15, 620 720 20, 420 720 10 )))
>
>
>
> Has anybody made OpenJUMP TIN-abled?  TIN is pretty close to multipolygon,
> but OpenJUMP knows that multipolygons are not allowed to be side-by-side
> and therefore it is not possible to use a workaround to combine polygons
> into multipolygon and finally edit WKT and change MULTIPOLYGON->TIN. Now
> OpenJUMP builds a geometrycollection and there is much more to edit.
>
>
>
> -Jukka Rahkonen-
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Creating TIN with OpenJUMP

2016-12-02 Thread Rahkonen Jukka (MML)
Hi,

It seems that the Triangulation function in OpenJUMP handles the Z coordinate 
and creates triangles which could be combined into TIN.

With four source points:

POINT ( 420 560 25 )
POINT ( 420 720 10 )
POINT ( 620 720 20 )
POINT ( 620 560 15 )

Triangulation creates two triangles as polygons:
POLYGON (( 420 720 10, 420 560 25, 620 560 15, 420 720 10 ))
POLYGON (( 420 720 10, 620 560 15, 620 720 20, 420 720 10 ))

I suppose that as a TIN these two triangles would look like
TIN ((( 420 720 10, 420 560 25, 620 560 15, 420 720 10 )), (( 420 720 10, 620 
560 15, 620 720 20, 420 720 10 )))

Has anybody made OpenJUMP TIN-abled?  TIN is pretty close to multipolygon, but 
OpenJUMP knows that multipolygons are not allowed to be side-by-side and 
therefore it is not possible to use a workaround to combine polygons into 
multipolygon and finally edit WKT and change MULTIPOLYGON->TIN. Now OpenJUMP 
builds a geometrycollection and there is much more to edit.

-Jukka Rahkonen-

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel