I think there was a bug in JTS concerning mixed XY and XYZ in output
results, I was unable to find the geotools version that you are using. You
might try with 20.2.

Op vr 15 mrt. 2019 18:16 schreef Ian Turton <ijtur...@gmail.com>:

> How are you getting the coordinates out? Most output formats will ignore Z
> if it is not set.
>
> Ian
>
> On Fri, 15 Mar 2019 at 15:08, <paul.m...@lfv.se> wrote:
>
>> Hi Ian!
>>
>> Thanks, it worked. But there is one problem.
>>
>> The unchanged objects has (x,y) coordinates and I’m getting (x,y,n/a)
>> coordinates for the changed object.
>>
>> ArcGis does not seem to be able to have this(x,y,z) coordinates or mixed
>> coordinate types. The changed objects
>>
>> has the correct values of x,y but does not show in ArcGis.
>>
>> Does anyone have any suggestions?
>>
>> Kind regards,
>>
>> Paul
>>
>>
>>
>> *Från:* Ian Turton [mailto:ijtur...@gmail.com]
>> *Skickat:* den 15 mars 2019 09:49
>> *Till:* Malm, Paul (Operations AIM)
>> *Kopia:* geotools-users
>> *Ämne:* Re: [Geotools-gt2-users] generailisation
>>
>>
>>
>> You should be able to use a DouglasPeuckerSimplifier to achieve this.
>> Something like:
>>
>>
>>
>>     DouglasPeuckerSimplifier simplifier = new
>> DouglasPeuckerSimplifier(in);
>>
>>     simplifier.setDistanceTolerance(tolerance);
>>
>>     Geometry out =  simplifier.getResultGeometry();
>>
>>
>>
>> would do it.
>>
>>
>>
>> JTS also provides a TopologyPresersevingSimplifier and a
>> LineSegmentSimplifier that would also handle your case.
>>
>>
>>
>> Ian
>>
>>
>>
>> On Fri, 15 Mar 2019 at 06:32, <paul.m...@lfv.se> wrote:
>>
>> Hi,
>>
>> I wonder if there is a generalize function using angles.
>>
>> I have polygons almost like a rectangle/romb. 90 percent has only five
>> vertices, but some have more. The extra vertices is om the sides (the
>> straight lines).
>>
>> I would like to remove those vertices and thought that there perhaps is a
>> method using a max angle to find the extra vertices.
>>
>> Kind regards,
>>
>> Paul
>>
>> _______________________________________________
>> GeoTools-GT2-Users mailing list
>> GeoTools-GT2-Users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>>
>>
>>
>>
>> --
>>
>> Ian Turton
>>
>
>
> --
> Ian Turton
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to