Hello,
How can I replace a line with its corresponding points with a python caller?
I tried the following code but it is not working.
import fmeimport fmeobjectsclass pointCreate(object): def __init__(self): pass def input(self,feature): if feature.hasGeometry(): coord = feature.getAllCoordinates() cpt = len(coord) #coordSys = feature.getCoordSys() for cpt in range(0,len(coord)): feature.setAttribute('X_e',coord[cpt][0]) feature.setAttribute('Y_e',coord[cpt][1]) feature.setGeometry(fmeobjects.FMEPoint([float(coord[cpt][0]),float(coord[cpt][1])])) #feature.setCoordSys(coordSys) self.pyoutput(feature) def close(self): pass
Any ideas,
Thanks
Hello,
I have a set of parcel and I need to insert point inside them that represent parcel ID.My approach is to use CenterPointReplacer transformer(mode: Inside Point) and this works perfectly.
Problem is large parcels where because of their large area I need to duplicate that point and place those duplicates elsewhere inside corresponding parcel.
Additionally,If its possible to make one duplicate for every 15000 sqm of parcels Area.So parcels that are 15k to 30k square meters would have two point placed inside parcel,30k to 45k sqm would have 3 points...This is not mandatory but it would be nice if it is possible to do.
Every help would be appreciated.
Hi,
I have an esri shape layer with point,the points represent a road and have a direction.Every point has the attribute "location".This attribute has the values "0";"1";"2".I want to create for every point an offset in a right angle to the direction of the road.location = 0 ==> no offest
location = 1 ==> left offset
location = 2 ==> right offset
I want to store the result as shape file.
Has somebody some ideas how I can manage my workbench?
Thanks and best regards.Hello,
Let's assume that I have a series of 2D-points A1,A2,A3,A4,...An.
Can anyone tell me how to create a measure between such points so that:
- the measure for A1 is 0
- the measure for A2 is d(A1,A2) i.e.the distance between A1 and A2
-the measure for A3 is d(A1,A2) + d(A2,A3)
- the measure for A4 is d(A1,A2) + d(A2,A3) + d(A3,A4)
and so one?
Thanks,
I have not found this case in forum.
I have spatial point dataset from which I want make lines depends on some break attribute.I aggregated points based on this break value,and I received for example 3 set of points.From each of this set I want get Line.
When I use LineBuilder,I get wrong result - each point connect which each point.
I want situation when second point connect first,third connect second etc....
For example by order of incoming points (remembering about break attribute).
Hi guys,
Hope you are well.I am just trying to figure out what would be the best way of doing this and if FME has a method.I understand Arcmap can do this but may take sometime.
I have a shapefile generated which has a chainage of a road with various chainage parts/distances.I then have a spreadsheet which contains 40 records which has a start chainage and end chainage.
What i require is to create X & Y coordinates for the start chainage and end chainage within the chainage of the shapefile for the spreadsheet.So basically this spreadsheet will then have another column with the X and Y coordinates.
What would be the best process to do this?Is there a specific transformer that can be used to create these points?
Start Chainage |
End Chainage |
153150 | 154340 |
Hi.I have a multipoint shape file of Dissolved points on the basis of locality.I want these points to be enveloped with the polygon on the basis of the locality.
Hi FME 亚搏国际在线官网community
I try to count the number of points (from *.las point cloud) in a solid.The solid comes from an extruded polygon.
The goal of it is to figure out if the point cloud matches an existing 2D CAD Plan.To do this I take the polyline of the walls and extrude them.Afterwards I would like to count the number of point inside the extruded solid (wall).If this results in many points I can assume that the wall is correct - if not the wall must be incorrect.
It would be great if someone has any idea and can help me.I only struggle with the count of the points in the solid.
Thanks in advance and kind regards form Switzerland
Dominik
hi,i read some question from other user.But i don´t read what i need.
from to xml i create vertex and i don´t know what i do to create the raster.i use "imageRasterizer" but i have a error and no create it.xml2raster.zipis the log file.
Hi all,
I'm trying to cut a collection a lines at specific points with FME workbench 2018.1.I tried to achieve this with the PointOnLineOverlayer transformer.The settings in the transformer is shown under:
I found some inconsisties in the result.I connected a data inspector to the output points and output lines.The results are shown under:
1.The lines are cut correctly in this case
2.In the following section,i do not understand why the lines got interrupted when i did not pass point in that location
3.Same situation as 2
Can someone explain to me why the lines got cut at locations that i did not pass along to the transformer?The original data consists out of closed lines:
--- EDIT
I added sample data:Testdata_EXPORT_KRING.gdb.zip
I want that the lines get cut at nodes that have more than two vertices connected to (under one project: the polylines can be filtered with PROJECT_ID).I have one file which contains over 500 points.I would like to use the transformer "Neighbor Finder" to count neighbors (points) for each point with 50 meters.How do I do that?Thanks so much in advance.
In the first step Im doing a PointOnAreaOverlay which connects the features with a point inside the features.
The next step I want to replace the z-value of the feature with the z-value of the point.I have tried with both CoordinateReplacer and GeometryReplacer.So how to replace z-value of the feature with the z-value of the point?
I am trying to remove all the points inside the red polygon that I drew.Does anyone have any ideas how I can do that without messing up the rest of my blue polygon?
Thanks in advance!
So,I have two files.
File 1 contains 1 point and file 2 contains 10 points.Basically,for every point in file 2,connect it to file 1 and I will end up with 10 points.
I can do this in Python easily but not sure how to do it in FME yet.I am using FME 2016 btw.
Thanks in advance!
Hallo guys!
I have again some problems which i hope anyone can help me.In the first picture i show my template where i try to get the points out of my lane.It works but i just want the points one by one (and not all as you can see on picture 2) and also that the template start new for every single point.
The next problem is that i get the value "0" sometimes between my coordinates and i have no idea why.How can i change that?(also visible on the second picture)