You can use a pair of the GeometryExtractor and the GeometryReplacer effectively when you perform a geometric operation on the feature but need to restore the original geometry later.And if you perform coordinate system transformation in the operation,您还必须恢复原始坐标系。
In such a case,您可以使用一对coordinatesystemextractor和coordinatesystemsetter来恢复坐标系,但这会有点乏味。
Hello everyone ,
我有两个JSON文件
1。RoadElement.json
2。WaterArea.json
我想从每个JSON文件创建几何图形,这些文件将是折线和多边形功能。
我还创建了FME工作台,但无法创建几何图形,有问题吗?有人能帮我解决什么问题吗?
请找到附加的JSON文件并创建工作台
你好,
我在使用LineStringz几何置换器时遇到了一个问题
遇到无效WKT:LineStringz(541502.5560000000 152585.6960000000 583.544,541502.4660000000 152585.4560000000 583.775,541501.2901908699 152581.1464218800 0.0)
I do assume that LinestringZ is not an OGC WKT recognized format yet,although it is recognized as a valid OGC WKB format.
http://portal.opengeospatial.org/files/?工件编号=25355
我的目标是在将这些特性发送到我的PostGIS数据库之前检查LineStringz特性的几何有效性。
选择St_Isvalid(St_GeomFromText('LineStringz(541502.5560000000 152585.6960000000 583.544,541502.4660000000 152585.4560000000 583.775,541501.2901908699 152581.1464218800 0.0)’)
我知道如何在2018年FME上处理这个问题吗?
如果FME能支持诸如谷歌的附加码
对于其他地方不容易找到的地方,这将是一个非常有用的选择。我希望在GeometryReplacer或GeometryXtractor中看到此功能得到支持。
在Google Maps Directions API中,可以将一个坐标到另一个坐标的路径点作为折线:
https://developers.google.com/maps/documentation/directions/
请求示例:
Google returns a JSON (because I have requested a JSON) with several information - including waypoints in an encoded format (see line 63,87 and 101):
“geocoded_waypoints”:[“geocoder_status”:“确定”,"place_id" : "EipLaXJjaGJhY2hlciBTdHIuIDk5LTEyMiwgODA4MSwgw5ZzdGVycmVpY2g","types" : [ "street_address" ] },“geocoder_status”:“确定”,“place_id”:“ej1hdwdnaxr6iejlcmd3zwcgntqsidgodeguglyy2hpbmcgyw0gvhjhdwjlbmjlccmimowc3rlcnjlawno”,“types”:[“街道地址”]],"routes" : [ { "bounds" : { "northeast" : { "lat" : 46.9774785,“液化天然气”:15.6212531,"southwest" : { "lat" : 46.9746073,“液化天然气”:15.6144114,“版权”:“kartendaten©2018谷歌”,“legs”:[“Distance”:“Text”:“0,8公里”,“值”:811,"duration" : { "text" : "1 Minute","value" : 81 },“结束地址”:“Guggitz Bergweg 54,8081特劳本堡皮林,“斯特里奇”"end_location" : { "lat" : 46.9752518,"lng" : 15.6144114 },"start_address" : "Kirchbacher Str.99-122,8081,“斯特里奇”“start_location”:“lat”:46.9746073,“液化天然气”:15.6212531,"steps" : [ { "distance" : { "text" : "0,4 km",“值”:361,“duration”:“text”:“1分钟”,"value" : 20 },“end_location”:“lat”:46.9774785,"lng" : 15.61923 },"html_instructions" : "Auf \u003cb\u003eKirchbacher Str.\u003c/b\u003e/\u003cb\u003eB73\u003c/b\u003e nach \u003cb\u003eNordwesten\u003c/b\u003e Richtung \u003cb\u003eGuggitz Bergweg\u003c/b\u003e starten","polyline" : { "points" : "ivu}Gy_j~ASR]RuBh@{@Rg@PGBc@Ra@TUN_@V{AlAY^MPMRQ\\IR" },“start_location”:“lat”:46.9746073,“液化天然气”:15.6212531,"travel_mode" : "DRIVING" },{ "distance" : { "text" : "0,4 km",“值”:450,“duration”:“text”:“1分钟”,"value" : 61 },“end_location”:“lat”:46.9752518,"lng" : 15.6144114 },“html_instructions”:“\u003c b\u003elinks\u003c/b\u003e abbiegen auf\u003c b\u003egitz bergweg\u003c/b\u003e”,"maneuver" : "turn-left","polyline" : { "points" : "ghv}Gesi~ALh@X`CzAfHp@hBfA|BJPnAzBr@fAPT\\Z" },“start_location”:“lat”:46.9774785,"lng" : 15.61923 },“行驶模式”:“驾驶”],“traffic_speed_entry”:[],"via_waypoint" : [] } ],"overview_polyline" : { "points" : "ivu}Gy_j~ASR]RqD|@o@TeAh@u@f@{AlAY^[d@[p@Lh@X`CzAfHp@hBrAnCnAzBr@fAn@p@" },“summary”:“Kirchbacher str./b73 und Guggitz Bergweg”,"warnings" : [],“waypoint_order”:[]],“status”:“确定”
See the algorithm of Google to encode this,因此,在向另一个方向涂鸦步骤时,应该可以解码字符串:
https://developers.google.com/maps/documentation/utilities/polylinealgorithm
在此页面上有一个用于解码多段线字符串的javascript代码示例:
https://stackoverflow.com/questions/40877840/google-maps-api-draw-a-route-using-points-of-a-polyline
But unfortunately it's not possible to include the JavaScript library in the JavaScriptCaller:
https://maps.googleapis.com/maps/api/js?库=几何
因为Javascript似乎不完全支持JavaScript,通过几何抽取器或几何替换器进行解码是非常好的。
已经有很多编码(geometryextractor>参数>geometry编码):
我有一个XML文档,其中包含一个组成行的坐标字符串。我想从坐标列表中创建线条几何图形。My first thought was to use an AttributeSplitter to separate out the coordinates then a VertexCreator and Line Builder and so on.不过,我相信肯定会有一条不那么漫长的路。我看过使用几何置换器,but haven't been able to get that working (I've tried it with various Geometry Encoding options).我对XML的了解非常基础,所以非常感谢您的任何建议!
468763 339612 468739 339598 468712 339581 468684 339568 468647 339556 468603 339546 468562 339542 468540 339541 468530 339536 468337 339604 468335 339610 468330 339617 468322 339625 468313 339635 468307 339642 468862 339504 468856 339510 468838 339528 468823 339548 468811 339570 468800 339592 468793 339600 468787 339605
我的fmw输出geojson对象(附加json),它包含属性和多个几何图形(点和线)。
在数据检查器中,I am successful in reading the data.它非常有效。
“type”:“FeatureCollection”,“features”:[“properties”:“typedescription”:“z ilgc fs-400(未知)”,“classname”:“FiberspliceCase”,"Id" : "CHAKMS12471746",“typecode”:“zilgc.uk.fs-400.01”,“operationalstatus”:“在用”,"Name" : "SP.ILDG.0081",“alternatename”:“fosc 0349”,“servicestatusdescription”:“在服务中”,“shortentitydescription”:“光纤拼接箱:sp.ildg.0081”,“type”:“功能”,“geometry”:“coordinates”:[10048810.9854773,6507642.07580587 ],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,"UpstreamCircuitElement" : "{FiberLoop:!TEMP!-311}",“upstream parentcircuitelementowner”:“FibercableLoopSegment:chakms12471754”,"Id" : "CHAKMS12471752",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471750”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10048916.2429336,6507774.73952546 ],[10048810.9854773,6507642.07580587 ] ],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471744”,“classname”:“存储循环”,“type”:“功能”,“geometry”:“coordinates”:[10048916.2429336,6507774.73952546 ],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 313 },“upstreamParentCircuitlementowner”:“FibercableLoopSegment:chakms12471760”,"Id" : "CHAKMS12471759",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471756}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10049927.5997758,6509036.42399562],[10049768.5185321,6508847.3918614],[10049652.4690864,6508693.53401816],[10049488.4003279,6508490.15069716],[ 10049482.0062489,6508482.1436842],[ 10049472.9494521,6508470.99857718],[10049467.2538358,6508463.43453298],【10048916.2429336号】6507774.73952546 ] ],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471742”,“classname”:“冒口”,“type”:“功能”,“geometry”:“coordinates”:[10049927.5997758,6509036.42399562],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 315 },“upstream parentcircuitelementowner”:“FibercableLoopSegment:chakms12471767”,"Id" : "CHAKMS12471766",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471762}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10050056.6591172,6509205.97635889],[ 10050036.4138165,6509164.99320884],[10049927.5997758,6509036.42399562],"type" : "LineString" } },“properties”:“circuitsequence”:1,"Id" : "CHAKMS12471740",“classname”:“冒口”,“type”:“功能”,“geometry”:“coordinates”:[10050056.6591172,6509205.97635889 ],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,"UpstreamCircuitElement" : "{FiberLoop:!TEMP!-317}","UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12471774}",“id”:“chakms12471773”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471771}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10050079.26947,6509236.76502278 ],[10050056.6591172,6509205.97635889],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471738”,“classname”:“存储循环”,“type”:“功能”,"geometry" : { "coordinates" : [ 10050079.26947,6509236.76502278],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 319 },“upstream parentcircuitelementowner”:“FibercableLoopSegment:chakms12471782”,“id”:“chakms12471779”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471777”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10050018.5146233,6510030.94402622],[10050221.0831856,6510044.49534442 ],[ 10050034.1436027,6509792.95326422],[10050020.5138337,6509559.51756796],[10050214.7487578,6509415.63532159 ],[10050079.26947,6509236.76502278 ] ],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471736”,“classname”:“存储循环”,“type”:“功能”,"geometry" : { "coordinates" : [ 10050018.5146233,6510030.94402622],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 321 },"UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12471788}",“id”:“chakms12471787”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471784”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10049996.902611,6510032.64250612],[10050018.5146233,6510030.94402622],"type" : "LineString" } },“properties”:“circuitsequence”:1,"Id" : "CHAKMS12471734",“classname”:“冒口”,“type”:“功能”,“geometry”:“coordinates”:[10049996.902611,6510032.64250612 ],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“上游循环元素”:“光纤:!临时雇员!- 323 },"UpstreamParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471404}",“id”:“chakms12471793”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471790”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10050241.9481124,6511172.08255655],[ 10050245.1029675,6511156.88597533 ],[10050120.2855144,6511006.7179948],[10050069.4732227,6510964.11850624],[ 10050008.7678224,6510932.04399686],[ 10049943.6000026,6510908.08853463],[10049878.338162,6510904.52576707],[ 10049797.0607248,6510914.78090807],[10049789.5797149,6510850.06193957],[ 10049786.677059,6510779.17646562],[ 10049811.2173226,6510681.50731325 ],[ 10049839.2974937,6510580.36447833],[10049868.3223641,6510505.94735683],[10049900.5970815,6510382.32039346],[10049917.6380819,6510310.55028928],[10049938.5057234,6510188.25553583],[10049921.2607172,6510031.58788838],[10049996.902611,6510032.64250612],"type" : "LineString" } },“properties”:“typedescription”:“z ilgc fs-400(未知)”,“classname”:“FiberspliceCase”,“id”:“chakms12471400”,“typecode”:“zilgc.uk.fs-400.01”,“operationalstatus”:“在用”,“name”:“sp.ildg.0090”,“alternatename”:“fosc 0345”,“servicestatusdescription”:“在服务中”,“shortentitydescription”:“光纤拼接盒:sp.ildg.0090”,“type”:“功能”,“geometry”:“coordinates”:[10050241.9481124,6511172.08255655],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,"UpstreamCircuitElement" : "{FiberLoop:!TEMP!-324}",“upstreamParentCircuitlementowner”:“FibercableLoopSegment:chakms12471407”,“id”:“chakms12471406”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471404”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10050900.4602748,6511557.97439911],[ 10050819.6717469,6511583.08535048],[ 10050705.6863521,6511660.21418482],[10050626.0904322,6511585.99557014 ],[10050479.6676252,6511532.98005524],[10050367.5585238,6511488.64353824],[ 10050286.4877423,6511441.66444547 ],[10050217.1993324,6511360.02483135 ],[10050134.7370939,6511258.85780269],[10050241.9481124,6511172.08255655],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471398”,“classname”:“存储循环”,“type”:“功能”,"geometry" : { "coordinates" : [ 10050900.4602748,6511557.97439911 ],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 326 },"UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12471414}",“id”:“chakms12471413”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471411}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10051537.516608,6511172.2670458 ],[ 10051409.9792899,6511289.90617643],[10051399.6793229,6511299.40673319 ],[10051379.4384388,6511318.07665901 ],[10051297.0339452,6511383.29883213],[10051192.6003542,6511422.38218111],[10051093.5811463,6511452.62263832 ],[10051110.4439688,6511490.79913942],[10050900.4602748,6511557.97439911 ] ],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471396”,“classname”:“冒口”,“type”:“功能”,“geometry”:“coordinates”:[10051537.516608,6511172.2670458],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 328 },"UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12471422}",“id”:“chakms12471419”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471417”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10051554.9029428,6511194.6526841 ],[ 10051537.516608,6511172.2670458 ] ],"type" : "LineString" } },“properties”:“circuitsequence”:1,"Id" : "CHAKMS12471394",“classname”:“存储循环”,“type”:“功能”,“geometry”:“coordinates”:[10051554.9029428,6511194.6526841],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,"UpstreamCircuitElement" : "{FiberLoop:!TEMP!-330}","UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12471428}",“id”:“chakms12471427”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471424}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10051893.1825196,6511611.78010658 ],[ 10051776.667816,6511468.67743638],[10051625.2170924,6511280.65327108],[ 10051620.5260386,6511274.88231221],[10051554.9029428,6511194.6526841]],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471392”,“classname”:“存储循环”,“type”:“功能”,“geometry”:“coordinates”:[10051893.1825196,6511611.78010658],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 332 },“upstream parentcircuitelementowner”:“FibercableLoopSegment:chakms12471435”,“id”:“chakms12471434”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12471430}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10052870.0307542,6512809.79931472],[10052719.7262476,6512632.29653421 ],[10052578.2890129,6512470.68293807 ],[10052449.3472817,6512321.5466187 ],[10052325.8942192,6512173.720435],[10052265.088428,6512104.9565966],[10052188.7004276,6512009.17915508年],[10052120.8996538,6511919.64437799],[ 10052074.7598121,6511848.72373513],[10052067.1092931,6511836.96421959 ],[ 10052033.1684908,6511784.7939364],[10051893.1825196,6511611.78010658 ] ],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12471390”,“classname”:“存储循环”,“type”:“功能”,“geometry”:“coordinates”:[10052870.0307542,6512809.79931472],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“上游循环元素”:“光纤:!临时雇员!- 334 },“upstream parentcircuitelementowner”:“FibercableSegment:chakms12435920”,"Id" : "CHAKMS12471440",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12471439”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10055185.2361462,6513479.49934046],[ 10055170.9531139,6513459.94171029],[10055099.7327304,6513452.48260559],[10055092.6039928,6513451.6733171 ],[10055061.1840062,6513448.39502576],[ 10054935.3040014,6513430.34398698 ],[ 10054825.7272849,6513416.2473752 ],[10054689.9830122,6513395.82337458 ],[ 10054676.2353705,6513393.75488217],[10054670.9705957,6513392.96248221],[ 10054513.9450597,6513373.00112542 ],[ 10054462.4399936,6513366.76547824],[10054448.6389903,6513365.09454],[ 10053728.5766928,6513278.09419725 ],[10053718.0286541,6513276.54595226],[ 10053670.9631012,6513270.57089325],[ 10053659.9624599,6513282.91655413],[10053656.530878,6513282.37679127],[10053649.9764166,6513281.84093786 ],[10053548.4750691,6513271.79485466 ],[10053393.5599577,6513250.16267266 ],[10053303.2241553,6513233.79334691 ],[10053282.972353,6513228.63504196 ],[10053274.2012326,6513227.6468755],[ 10053214.1237213,6513216.29105004 ],[ 10053139.4950749,6513131.07186075],[ 10053006.0086584,6512976.45754391],[ 10052870.0307542,6512809.79931472 ] ],"type" : "LineString" } },“properties”:“typedescription”:“z ilgc fs-fusion(unknown)”,“classname”:“FiberspliceCase”,“id”:“chakms12471353”,“typecode”:“zilgc.uk.fs-fusion.01”,“operationalstatus”:“在用”,“name”:“sp.ildg.0078”,“alternatename”:“fosc 0333”,“servicestatusdescription”:“在服务中”,"ShortEntityDescription" : "Fiber Splice Case: SP.ILDG.0078" },“type”:“功能”,"geometry" : { "coordinates" : [ 10055185.2361462,6513479.49934046],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 335 },"UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12435923}",“id”:“chakms12435922”,“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12435920”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10063163.5292915,6520029.63151961],[10062383.4299301,6519561.42156243 ],[10062422.59022,6519485.39426494],[ 10062426.3691768,6519479.36859894],[10062509.911015,6519321.68392956 ],[10062502.5136808,6519317.08585979],[ 10062496.6159138,6519313.56124306 ],[10062409.8614704,6519260.68550774],[ 10062442.6682902,6519207.67784013 ],[ 10062446.2444562,6519203.83855849],[10062643.799137,6518881.75362097),[ 10062651.1531836,6518869.76385656 ],[10062675.2579194,6518830.46416773],[ 10062619.7432035,6518796.81959298 ],[10062509.5476313,6518726.14854417],[10062405.8427759,6518661.56712155],[10062060.4143266,6518444.57067231],[ 10061822.5602159,6518312.26331067],[10061541.8731528,6518171.19422331],[10061899.2279758,6517304.29611113],[10061924.2204627,6517195.28393291],[10061945.4128029,6516979.33601095],[10061954.4105193,6516887.23267769],[10061937.5548055,6516885.604769],[ 10061923.7174548,6516884.2681627],[10061906.6011414,6516882.61457451],[ 10061904.4784013,6516920.07447516],[10061058.5410303,6516829.82410409],[10060759.207766,6516801.37701408 ],[ 10060729.6140076,6516789.16303281],[ 10060449.2991749,6516758.54940773 ],[ 10060435.4795127,6516757.04011837],[10060384.7329107,6516751.49765977],[ 10060143.6901169,6516723.95161573],[ 10059959.4089014,6516704.3126114],[10059917.5276714,6516774.26505437 ],[ 10059705.6141686,6516821.07768056 ],[10059534.0985522,6516759.12093827 ],[ 10059518.8621567,6516756.02282811],[ 10059505.2365921,6516753.25202905 ],[10059480.2789333,6516748.17655756],[10059322.5128127,6516733.29116762],[ 10059097.9933965,6516716.68866134],[10059084.1295268,6516715.66344816 ],[ 10059055.8737917,6516713.57372284],[10058596.4163017,6516665.01418284],[ 10058582.591512,6516663.55303321 ],[10058536.8627202,6516658.71967293 ],[ 10058411.3197493,6516654.96646998 ],[ 10058397.9046695,6516654.74156442 ],[ 10058384.0040158,6516654.5085173],[10058209.7201216,6516651.58628487],[ 10058048.3241271,6516703.34404471],[10057871.7382351,6516584.44612136 ],[10057737.1518438,6516552.00256357],[ 10057537.2272538,6516414.04288901],[10057419.5509693,6516355.20434809],[ 10056943.9146549,6516231.40897954],[10056935.0251484,6516230.49654743 ],[10056269.0871074,6516059.71383137],[10056255.6158147,6516056.25903073 ],[10056114.6069556,6516020.09607795],[10055970.5205874,6515998.08757705],[10055959.611548,6515996.26131397 ],[10055807.7423333,6515973.22357212],[10055824.2837424,6515888.94380382 ],[10055826.5945576,6515879.33102236],[10055862.0923468,6515696.30535731],[10055852.6499922,6515674.64756131],[ 10055915.4111156,6515443.99693887],[10056068.8453971,6515475.35210926],[10056252.5732955,6515501.01019154 ],[ 10056357.7709932,6514584.93175013],[10056457.3701859,6514546.82444698],[ 10056471.158759,6514283.87289031],[10056444.8514241,6513734.24944406 ],[ 10056452.0907328,6513705.67596296 ],[10056455.5542023,6513692.00560675 ],[10056460.0599083,6513674.22152778 ],[10056463.5233772,6513660.55116981],[ 10056477.5240978,6513605.28996681],[10056389.1563605,6513594.05951651],[ 10056199.0569133,6513569.89929611],[10055963.1693187,6513539.70581122],[ 10055764.1085421,6513520.02871517],[10055750.274394,6513518.6611894 ],[10055731.6871212,6513516.82355685 ],[ 10055475.0920336,6513490.81631525],[ 10055445.1135,6513487.87802931],[10055431.2782403,6513486.52187627],[10055187.2268673,6513462.59919049],[10055185.2361462,6513479.49934046]],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12435915”,“classname”:“冒口”,“type”:“功能”,"geometry" : { "coordinates" : [ 10063163.5292915,6520029.63151961],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,"UpstreamCircuitElement" : "{FiberLoop:!TEMP!-337}","UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12435930}","Id" : "CHAKMS12435929",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12435925}",“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,“geometry”:“coordinates”:[[10063783.2256944,6520178.42198474],[ 10063749.4614311,6520229.91963597],[10063743.3187109,6520237.56233204],[10063683.4042063,6520314.97752852 ],[10063550.3014296,6520241.92143959],[10063538.0854124,6520235.21640644],[ 10063462.6909748,6520193.83420171 ],[ 10063450.4749684,6520187.12915201],[ 10063163.5292915,6520029.63151961年]]"type" : "LineString" } },“properties”:“circuitsequence”:1,"Id" : "CHAKMS12435913",“classname”:“冒口”,“type”:“功能”,"geometry" : { "coordinates" : [ 10063783.2256944,6520178.42198474],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“FiberLoop:!临时雇员!- 339 },"UpstreamParentCircuitElementOwner" : "{FiberCableLoopSegment:CHAKMS12435937}","Id" : "CHAKMS12435936",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,“parentCircuitlementowner”:“FibercableSegment:chakms12435934”,“upstreamcircuitelementcircuitsequence”:“1”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10063702.8288023,6520649.20524728],[10063693.6199906,6520705.63850491],[10063894.6501676,6520726.59734478],[10064077.5746821,6520746.04373764],[ 10064153.5413942,6520755.82682025年],[10064204.9155007,6520761.50290433],[10064189.3241513,6520715.43738985 ],[ 10064154.235063,6520646.62987038],[10064140.8407855,6520573.10363258],[10064160.7812391,6520499.39811233],[ 10064164.4637454,6520485.78649879],[10064165.8879693,6520480.52215259],[10064169.5704752,6520466.91053787 ],[ 10064171.2745386,6520460.61182272],[10064189.0030226,6520424.63063949],[10064167.5123744,6520412.04281436 ],[ 10064160.4836814,6520408.26139586],[10064152.8032461,6520403.61074877],[10063794.7104061,6520184.79550652 ],[10063790.3071745,6520182.3141441],[10063783.2256944,6520178.42198474],"type" : "LineString" } },“properties”:“circuitsequence”:1,“id”:“chakms12435911”,“classname”:“冒口”,“type”:“功能”,“geometry”:“coordinates”:[10063702.8288023,6520649.20524728],“type”:“点”,“properties”:“circuitsequence”:“1”,“rootsequence”:“25”,“formattedcolor”:“蓝色/蓝色”,"UsageDescription" : "ILWRDG019.FWD01","CircuitOwnerCode" : "ILWR",“formattedNumber”:“01.01”,“circuittag”:“无”,“upstreamCircuitElement”:“光纤终端端口:!临时雇员!- 341 },“upstreamParentCircuitlementowner”:“FiberTerminationPanelPortGroup:chakchds17635895”,"Id" : "CHAKMS12435941",“statedescription”:“ndds”,“circuitname”:“ilwrdg019(woau)”,“glasstype”:“单模”,“classname”:“FibercableGeometry”,"ParentCircuitElementOwner" : "{FiberCableSegment:CHAKMS12435940}",“upstreamcircuitelementcircuitsequence”:“25”,“type”:“功能”,"geometry" : { "coordinates" : [ [ 10063736.721864,6520414.03562544],[10063723.4209385,6520510.10246647],[ 10063702.8288023,6520649.20524728]],"type" : "LineString" } },{ "properties" : { "Name" : "FiberTerminationPort",“id”:“chakchds17635895_25”,“shortentitydescription”:“光纤终端端口:”,"ClassName" : "FiberTerminationPort",“parentCircuitlementowner”:“FiberTerminationPanelPortGroup”,“rootequipment”:“光纤终端面板”,“type”:“功能”,"geometry" : { "coordinates" : [ 10063736.7218886,6520414.03537491],“type”:“点”,“properties”:“name”:“ildg.tp.xx.xx.01.07.xx xx”,"CircuitCount" : "96","Id" : "CHAKCHDS17635893","TypeCode" : "UK.Term096Cnt.20100000",“shortentitydescription”:“光纤终端面板:ildg.tp.xx.xx.01.07.xx xx”,“parentnodalcontainer”:“isplack”,“classname”:“FiberTerminationPanel”,“type”:“功能”,"geometry" : { "coordinates" : [ 10063736.7218886,6520414.03537491],“type”:“点”,“properties”:“name”:“ildg.rk.xx.xx.01”,"Id" : "CHAKCHDS17632424",“shortentitydescription”:“ISP机架:ildg.rk.xx.xx.01”,“classname”:“isplack”,“type”:“功能”,"geometry" : { "coordinates" : [ 10063736.7218886,6520414.03537491],“type”:“点”,“properties”:“id”:“chakchds17631753”,“classname”:“正在创建”,“type”:“功能”,"geometry" : { "coordinates" : [ 10063736.7218886,6520414.03537491],"type" : "Point" } } ]}
GeometryReplacer应该有一个参数来选择设置坐标系(最好允许属性),而不是需要一个coordinateSystemsetter。
尝试从httpcaller(点击ESRI公路和公路LRS服务-几何测量)到线条几何。
Worth noting is that the line points are in [X,Y,Z,M],所以我想如果我能去掉z和m,我应该可以使用几何替换器。
“spaceialReference”:“wkid”:3857,,“locations”:[;“status”:“esrillocatingok”,“routeid”:“S001920030w”,“getometrytype”:“esrigeMetryppolline”,“ge几何”:“hasz”:真,“hasm”:真,“hasm”:真,“路径”:[[[-10415371.759930966516233.8351752404.8351752404.835151752404,0179.3279.327719443436088,[-10415353.01615353.0163189415162235.533869936.533869936,0179.319.319020599650749895133925162253.0877756234,017923587763117393],[-10414937.4411371165162275.117145516.117145516,0179.12670168131217],[-104141212.8047858775162297.1376164714,0179.0217478299746463],[-104144626.6945045162304545162306.0776990149,0178.981717345283964],[-10414577.00115014577.00115045162309.6976211928,0178.958704870487877644444478],[-10410414914914937.444444444444444444444437.444444113711657116571165711657116571165165165165165943,0178.93567554029869],[-10414397.626339536,5162319.550039952,0178.875666488878788.878.87566648887878]、[-104143310.8297798755162320.9713228904,0178.83554270499735]、[-104142219.2673913895162321.3697635373,0178.79322107345797]、[-10414038.5253412315162322.50435579964、0178.70967825656408]、[-10414038.5253412312315162322.50435435579964、0178.7096664848484848484848487878787878787878787878787878,、、[-104-10414314314314314314314314310413625.9833608015162323.7665091734,0178.51899237075122],[-10413381.2488512235162323.898761698,0178.4058730898978]、[-10413130.3875842755162324.0277784066,0178.28992197765911]、[-10412921.7810408795162324.848914952,0178.19350077146373]、[-10412712.6089580755162325.6679260246,0178.09681819120701]]
我建议geometryextractor和geometryreplacer支持一个分开的xy或xyz坐标列表作为编码。Useful additional parameters could be:
I often come across Excel or CSV data with XY coordinates in a single column,用逗号或类似的东西隔开。Right now I have to use an AttributeSplitter and VertexCreator to deal with that,如果能直接用几何量角器来处理就好了。
我知道在FME中有10种不同的方法,有没有比这更好的方法来修剪一个点的几何?
coordinateextractor(到x和y属性)
attributeRounder(使用最近的方法将x和y小数点后3位)
GeometryReplacer(OGC众所周知的文本几何编码,点(@value(_x)@value(_y))几何源)
嗨,我正在尝试发送一些DAT到API,并检索一些使用HTTP调用程序返回的多边形,但不确定如何将输出作为多边形返回到mapinfo?下面是我保存到文件时的输出示例(当我粘贴到这个问题框中时,格式可能发生了轻微的更改),但是否确实要通过HTTP调用程序的属性选项?
-
-
-
-
-
-
-
-
-
-
-
谢谢
尼尔
I have a csv file that has a column for coordinates that is created like "POINT(x_value,YY值)我想把它转换成特征x和y值。最好的方法是什么?我想先用python来做,但不知道fme是否有办法。It looks like this row was created to be similar to a wkt column.关于如何将其转换为点特征坐标的任何建议都将非常有用。