Skip to main content
Question

spliting of polygon for polyline creation


gis2020
Contributor
Forum|alt.badge.img+5

Hi All,

I have polygon layer for road feature which is generated from the raster layer . each polygon is form by multiple road polygons Now i would like split each polygon to it's sub component i.e. individual roads layer.

can somebody help me with this ?

7 replies

larsatomkeere
Contributor
Forum|alt.badge.img+8

Looking at the title of your issue, you might consider using a CenterLineReplacer. Often it will give you some shorter lines at the end as well, but those can be cleaned afterwards.


gis2020
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • October 24, 2018
larsatomkeere wrote:

Looking at the title of your issue, you might consider using a CenterLineReplacer. Often it will give you some shorter lines at the end as well, but those can be cleaned afterwards.

@larsatomkeere i tired to use that but it's not working with this. it generates te line with multiple small lines connected to main central line.

 


lars_de_vries
Forum|alt.badge.img+10
gis2020 wrote:
@larsatomkeere i tired to use that but it's not working with this. it generates te line with multiple small lines connected to main central line.

 

If you only want to keep the long lines and continue from there, you could use a deaggregator to extract the smaller lines and subsequent use a Tester or a TestFilter to filter out the smaller lines based on their @Length() value.

mark2atsafe
Safer
Forum|alt.badge.img+45
  • Safer
  • October 24, 2018
gis2020 wrote:
@larsatomkeere i tired to use that but it's not working with this. it generates te line with multiple small lines connected to main central line.

 

What version of FME are you using? There was a recent update to the CenterLineReplacer that I found very useful. I can't recall if it was 2018 or 2019 though - ah, I checked and it's 2019 (see this question: https://knowledge.safe.com/questions/31926/cleaning-gps-line-work.html). It does seem like it would solve the issue of the multiple small lines though.

 


gis2020
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • October 25, 2018
larsatomkeere wrote:

Looking at the title of your issue, you might consider using a CenterLineReplacer. Often it will give you some shorter lines at the end as well, but those can be cleaned afterwards.

 

@Mark2AtSafe i am using FME 2018.1 for this conversion

gis2020
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • October 25, 2018
lars_de_vries wrote:
If you only want to keep the long lines and continue from there, you could use a deaggregator to extract the smaller lines and subsequent use a Tester or a TestFilter to filter out the smaller lines based on their @Length() value.
@lars_de_vries i tested with this using length option but it removes the line which are needed to create the central line also.

mark2atsafe
Safer
Forum|alt.badge.img+45
  • Safer
  • October 25, 2018
gis2020 wrote:

 

@Mark2AtSafe i am using FME 2018.1 for this conversion
Right, I think you would need to use the 2019 beta to get the ideal solution with the CenterLineReplacer. In 2018 all I can really think of is to use a Bufferer with a negative value to make your polygons a bit smaller. Then the 2018 CenterLineReplacer might create the centre line without so many small, side lines.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings