One surprise found in our research was how loosely defined the JTS
"dimension" is:

*ordinate: Returns the ordinate of a coordinate in this sequence. Ordinate
indices 0 and 1 are assumed to be X and Y. Ordinates indices greater than 1
have user-defined semantics (for instance, they may contain other
dimensions or measure values).*


While these javadocs are not consistent in JTS the intent seems clear, to
treat any ordiante beyond 0 and 1 as user-defined...

GeoTools depends on checking geometry "dimension" against the coordinate
reference system dimension. If I am to believe the JTS javadocs we could:
- notice when geometry dimension is 4 and crs dimension is 3 and deduce
that "M" is available as ordinate 3
- notice when geometry dimension is 3, and crs dimension is 2 and deduce
that "M" is available as ordinate 2

--
Jody Garnett


On Mon, 2 Jul 2018 at 21:36, Georg Heiler <georg.kf.hei...@gmail.com> wrote:

> Thank you for the overview. I will see what my organization can do.
> Jim Hughes <jn...@ccri.com> schrieb am Di. 3. Juli 2018 um 04:36:
>
>> Hi all,
>>
>> As a note, one of my medium-terms goals for JTS is to support reading and
>> writing Geometries with Z's and M's.  Once we get this in JTS, then it'd be
>> possible to start wiring up PostGIS's trajectory support into GeoTools.
>>
>> Jody and I were working on this some over the last week and we didn't
>> discuss which formats would make sense on the GeoServer side of things...
>> I'd say that are at the very early stages as a community in dealing with
>> trajectories.  There are standards, but they don't seem to be widely
>> adopted.
>>
>> I'd absolutely agree that any given processing and rendering operation
>> may need to be 'taught' how to handle Z's and/or M's correctly.
>>
>> The good news is that our proposal to move GeoTools and GeoServer over to
>> the LocationTech version of JTS was accepted and completed.  Now, it will
>> be possible to add capabilities through the stack (JTS, GeoTools,
>> GeoServer) at the same time.   (Changes to support data types likely will
>> live JTS.  GeoTools and JTS will share some of the processing operations.
>> GeoServer provides output and other rendering support.)
>>
>> Anyhow, it might not be a quick process, and as Andrea noted, development
>> time and/or funding will make sure you get what you need when you need it;).
>> Cheers,
>>
>> Jim
>>
>>
>> On 7/2/2018 11:57 AM, Andrea Aime wrote:
>>
>> Hi Georg,
>> as far as I know, support for "M" is missing, no data source supports
>> reading it, and
>> upper levels (processing, rendering) would be confused by finding a 3rd
>> (or 4th)
>> ordinate, if 3rd it may be treated as Z by mistake.
>> Output encoding/write support is also missing, although in some formats
>> it would
>> not really be possible to implement it in a compliant way  e.g., GML or
>> latest GeoJSON
>> are both missing the very notion of an M (could still be implemented as
>> an extension
>> if both producer and consumer are aware of it).
>>
>> I'm not aware of ongoing efforts to implement such support, we'd need
>> some seed sponsor
>> helping us implement M support in at least one data source, and one or
>> more upper
>> level stages (possibly in a way that hides the M to the others not aware
>> of it).
>>
>> Cheers
>> Andrea
>>
>>
>> On Mon, Jul 2, 2018 at 5:13 PM, Georg Heiler <georg.kf.hei...@gmail.com>
>> wrote:
>>
>>> Hi,
>>> what is the state of linestringM support in GeoTools?
>>> I would be interested in trajectory support in general as well and would
>>> like it to perform analytics similar to
>>> https://anitagraser.com/2018/04/16/movement-data-in-gis-12-why-you-should-be-using-postgis-trajectories/
>>>
>>> Best,
>>> Georg
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> GeoTools-GT2-Users mailing list
>>> GeoTools-GT2-Users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>>
>>>
>>
>>
>> --
>>
>> Regards, Andrea Aime == GeoServer Professional Services from the experts!
>> Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime
>> @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054
>> Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339
>> 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it
>> ------------------------------------------------------- *Con riferimento
>> alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 -
>> Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni
>> circostanza inerente alla presente email (il suo contenuto, gli eventuali
>> allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i
>> destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per
>> errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le
>> sarei comunque grato se potesse darmene notizia. This email is intended
>> only for the person or entity to which it is addressed and may contain
>> information that is privileged, confidential or otherwise protected from
>> disclosure. We remind that - as provided by European Regulation 2016/679
>> “GDPR” - copying, dissemination or use of this e-mail or the information
>> herein by anyone other than the intended recipient is prohibited. If you
>> have received this email by mistake, please notify us immediately by
>> telephone or e-mail.*
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> GeoTools-GT2-Users mailing 
>> listGeoTools-GT2-Users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to