[pdal] [filters] Using Crop with a WKT polygon

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[pdal] [filters] Using Crop with a WKT polygon

GUIMMARA, Sébastien (External)

Hello,

 

I am trying to filter out a dataset using the crop filter, but it produces a PDAL error :

 

filters.crop : Invalid polygon specification. Must be valid GeoJSON/WKT.

 

Here is the exact WKT Polygon used in the pipeline :

 

POLYGON ((110.45675742602 57.4257091225738, 81.1178752491955 28.9292918387268, 106.89682854952 19.694115466231, 143.30641446642 42.4948934905654))

 

However, when I try to create a geometry from this WKT into GDAL/OGR, the geometry is correct.

 

Is there something I am missing ?

 

Sébastien

 

Please consider the environment before printing this email message.


Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des informations confidentielles et/ou protégées ou dont la diffusion est restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en avertir immédiatement l'expéditeur et d'effacer ce courriel de votre système. Airbus DS Geo décline toute responsabilité en cas de corruption par virus, d'altération ou de falsification de ce courriel lors de sa transmission par voie électronique.

This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus DS Geo disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.


Airbus DS Geo SA (325 089 589 RCS Toulouse) - Siege social: 5, rue des Satellites, 31400 Toulouse, France.

 


_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal
Reply | Threaded
Open this post in threaded view
|

Re: [pdal] [filters] Using Crop with a WKT polygon

Bradley Chambers
It doesn't look like the polygon is closed. Does it work if you repeat the first point at the end?

On Mon, Sep 4, 2017 at 6:31 AM GUIMMARA, Sébastien (External) <[hidden email]> wrote:

Hello,

 

I am trying to filter out a dataset using the crop filter, but it produces a PDAL error :

 

filters.crop : Invalid polygon specification. Must be valid GeoJSON/WKT.

 

Here is the exact WKT Polygon used in the pipeline :

 

POLYGON ((110.45675742602 57.4257091225738, 81.1178752491955 28.9292918387268, 106.89682854952 19.694115466231, 143.30641446642 42.4948934905654))

 

However, when I try to create a geometry from this WKT into GDAL/OGR, the geometry is correct.

 

Is there something I am missing ?

 

Sébastien

 

Please consider the environment before printing this email message.


Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des informations confidentielles et/ou protégées ou dont la diffusion est restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en avertir immédiatement l'expéditeur et d'effacer ce courriel de votre système. Airbus DS Geo décline toute responsabilité en cas de corruption par virus, d'altération ou de falsification de ce courriel lors de sa transmission par voie électronique.

This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus DS Geo disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.


Airbus DS Geo SA (325 089 589 RCS Toulouse) - Siege social: 5, rue des Satellites, 31400 Toulouse, France.

 

_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal

_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal

image81fd97.JPG (856 bytes) Download Attachment
image81fd97.JPG (856 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [pdal] [filters] Using Crop with a WKT polygon

GUIMMARA, Sébastien (External)
In reply to this post by GUIMMARA, Sébastien (External)

Bingo, that was it. I had to duplicate the first point to close the polygon.

 

Thanks very much,

Sébastien

 

De : Bradley Chambers [mailto:[hidden email]]
Envoyé : lundi 4 septembre 2017 14:47
À : GUIMMARA, Sébastien (External); [hidden email]
Objet : Re: [pdal] [filters] Using Crop with a WKT polygon

 

It doesn't look like the polygon is closed. Does it work if you repeat the first point at the end?

 

On Mon, Sep 4, 2017 at 6:31 AM GUIMMARA, Sébastien (External) <[hidden email]> wrote:

Hello,

 

I am trying to filter out a dataset using the crop filter, but it produces a PDAL error :

 

filters.crop : Invalid polygon specification. Must be valid GeoJSON/WKT.

 

Here is the exact WKT Polygon used in the pipeline :

 

POLYGON ((110.45675742602 57.4257091225738, 81.1178752491955 28.9292918387268, 106.89682854952 19.694115466231, 143.30641446642 42.4948934905654))

 

However, when I try to create a geometry from this WKT into GDAL/OGR, the geometry is correct.

 

Is there something I am missing ?

 

Sébastien

 

Please consider the environment before printing this email message.


Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des informations confidentielles et/ou protégées ou dont la diffusion est restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en avertir immédiatement l'expéditeur et d'effacer ce courriel de votre système. Airbus DS Geo décline toute responsabilité en cas de corruption par virus, d'altération ou de falsification de ce courriel lors de sa transmission par voie électronique.

This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus DS Geo disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.


Airbus DS Geo SA (325 089 589 RCS Toulouse) - Siege social: 5, rue des Satellites, 31400 Toulouse, France.

 

 

Please consider the environment before printing this email message.


Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des informations confidentielles et/ou protégées ou dont la diffusion est restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le copier, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en avertir immédiatement l'expéditeur et d'effacer ce courriel de votre système. Airbus DS Geo décline toute responsabilité en cas de corruption par virus, d'altération ou de falsification de ce courriel lors de sa transmission par voie électronique.

This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Airbus DS Geo disclaims any and all liability if this email transmission was virus corrupted, altered or falsified.


Airbus DS Geo SA (325 089 589 RCS Toulouse) - Siege social: 5, rue des Satellites, 31400 Toulouse, France.

 

_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal


_______________________________________________
pdal mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/pdal