Closed loicdtx closed 6 years ago
madmex.util.spatial.feature_transform fails with the following feature (error: TypeError('transform() takes from 4 to 6 positional arguments but 55 were given',)). Could be because it's a multiplolygon, or because it has holes...
madmex.util.spatial.feature_transform
TypeError('transform() takes from 4 to 6 positional arguments but 55 were given',)
{'geometry': {'coordinates': [[[(3881549.7540709474, 1121813.9015064705), (3881550.143396535, 1121810.1603771315), (3881579.8399554756, 1121813.2507911), (3881580.8700941713, 1121803.3519373233), (3881575.920667178, 1121802.8368681278), (3881570.971240269, 1121802.3217990855), (3881571.4863091987, 1121797.3723721476), (3881566.536882229, 1121796.8573033316), (3881567.0519509274, 1121791.9078763316), (3881562.102523895, 1121791.392807748), (3881557.1530969497, 1121790.8777393089), (3881557.668165271, 1121785.9283123312), (3881552.7187382625, 1121785.4132441273), (3881547.7693113396, 1121784.8981760647), (3881548.284379285, 1121779.9487491127), (3881533.436098585, 1121778.4035460586), (3881532.9210310765, 1121783.3529727557), (3881527.9716044916, 1121782.8379052796), (3881527.4565370446, 1121787.7873317502), (3881507.658832135, 1121785.727062959), (3881508.173898998, 1121780.7776368312), (3881488.376194858, 1121778.7173707166), (3881487.8611285794, 1121783.66679651), (3881438.366875616, 1121778.5161405937), (3881437.8518107124, 1121783.4655653932), (3881423.0035369117, 1121781.9203712102), (3881422.488472361, 1121786.8697956074), (3881397.741351785, 1121784.2944744655), (3881398.2564156065, 1121779.3450504902), (3881393.3069915986, 1121778.8299867841), (3881383.4081438393, 1121777.7998598083), (3881383.9232071387, 1121772.8504359408), (3881378.9737832397, 1121772.3353727558), (3881379.4888463067, 1121767.385948829), (3881369.5899984716, 1121766.3558230707), (3881369.0749356956, 1121771.305246828), (3881344.327818319, 1121768.7299345601), (3881343.812756188, 1121773.6793577506), (3881338.8633331135, 1121773.1642956478), (3881338.3482710435, 1121778.1137186089), (3881313.6011576694, 1121775.5384098704), (3881314.116219009, 1121770.588987337), (3881309.166796443, 1121770.073926115), (3881304.217373961, 1121769.5588650317), (3881304.7324349247, 1121764.609442518), (3881289.8841675506, 1121763.0642604127), (3881289.369107024, 1121768.0136826714), (3881259.6725754403, 1121764.923321888), (3881260.18763509, 1121759.973900142), (3881240.389948479, 1121757.913662879), (3881240.0305205104, 1121761.3675589443), (3881355.678596761, 1121790.9707303646), (3881549.7540709474, 1121813.9015064705)]], [[(3881220.5376890176, 1121756.37785526), (3881220.5922632255, 1121755.8534279498), (3881217.048125168, 1121755.4846094735), (3881220.5376890176, 1121756.37785526)]], [[(3881210.7912735995, 1121753.883003502), (3881211.2084792126, 1121749.8738903143), (3881206.2590581346, 1121749.358832324), (3881201.3096371414, 1121748.8437744782), (3881201.82469487, 1121743.8943534545), (3881196.8752738163, 1121743.379295841), (3881186.976431963, 1121742.3491810532), (3881187.491489169, 1121737.3997601399), (3881177.592647363, 1121736.3696461054), (3881177.077590448, 1121741.3190668488), (3881167.178749274, 1121740.288953228), (3881166.970908531, 1121742.2861917932), (3881169.059396768, 1121743.200630361), (3881210.7912735995, 1121753.883003502)]]], 'type': 'MultiPolygon'}, 'id': '7714', 'properties': OrderedDict([('edo', 'Yucatan'), ('CodRevXprt', 32)]), 'type': 'Feature'}
madmex.util.spatial.feature_transform
fails with the following feature (error:TypeError('transform() takes from 4 to 6 positional arguments but 55 were given',)
). Could be because it's a multiplolygon, or because it has holes...