Skip to content

Instantly share code, notes, and snippets.

@helo9
Last active July 26, 2017 20:39
Show Gist options
  • Save helo9/50b9a68431dc53e63eedaadc74ec6268 to your computer and use it in GitHub Desktop.
Save helo9/50b9a68431dc53e63eedaadc74ec6268 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "",
"signature": "sha256:311ae89d67632a63c795c29558913cd7f4ef973773d9e1892ed22fd6035dd882"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"import numpy as np\n",
"from shapely.geometry import LinearRing"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"pts = np.array([(0.16756638708222163, -0.019207260119790546),\n",
" (0.15179273453311626, -0.018208509749072732),\n",
" (0.1360993790391704, -0.01702036927003582),\n",
" (0.12065467621221854, -0.015577324425018963),\n",
" (0.1058246985800264, -0.013871876997316865),\n",
" (0.09227704425218444, -0.011914171028873403),\n",
" (0.08127820896220123, -0.009881599380649978),\n",
" (0.0733674041171469, -0.007944591609947373),\n",
" (0.06786334420922514, -0.006176864340249874),\n",
" (0.06404017497540798, -0.0045305608538510605),\n",
" (0.06149216087449441, -0.002939851485766594),\n",
" (0.0601734337360785, -0.001437803534387038),\n",
" (0.059815923083391856, 9.21317587278811e-05),\n",
" (0.06011475156933275, 0.001903398295961451),\n",
" (0.061177782098580435, 0.004305847292061234),\n",
" (0.06311608070953428, 0.007145151897950658),\n",
" (0.06614737137007344, 0.010521978281452831),\n",
" (0.0706505751389354, 0.014577261249149128),\n",
" (0.07718301410868485, 0.0194038281612041),\n",
" (0.0861000546364175, 0.024876203717949623),\n",
" (0.09713511786615114, 0.03059414975025787),\n",
" (0.10961892017966232, 0.03615526536692052),\n",
" (0.12302146188138112, 0.04136508231289828),\n",
" (0.1369909660966772, 0.04619435143797414),\n",
" (0.15133183017468635, 0.050623389827164106),\n",
" (0.16533333333333333, 0.05450436985761724),\n",
" (0.16720311594827386, 0.04775871103339064),\n",
" (0.1677337946096313, 0.04790580618910211),\n",
" (0.18240558123842268, 0.05156356976285409),\n",
" (0.1972714856741529, 0.05490064710325676),\n",
" (0.2122832584997411, 0.057938938447717483),\n",
" (0.22741816606487775, 0.060684796407699075),\n",
" (0.24265767686776285, 0.06314700400387105),\n",
" (0.25798796955592423, 0.06535692339832037),\n",
" (0.2733983590367424, 0.0673057399213994),\n",
" (0.2888856345163909, 0.06901835398237641),\n",
" (0.3044198978355341, 0.07050210156061647),\n",
" (0.3199983381075087, 0.07176477514055546),\n",
" (0.3311327869389832, 0.0725078518623617),\n",
" (0.33066666666666666, 0.07949231547038024),\n",
" (0.3194824948880877, 0.07874592040160487),\n",
" (0.3351855936443715, 0.07979389388665377),\n",
" (0.35090525560621877, 0.08061907299226255),\n",
" (0.36664197880412525, 0.08122147508636174),\n",
" (0.3823957805395938, 0.08160933715109041),\n",
" (0.3981666744602442, 0.08178264367769096),\n",
" (0.4139463781062461, 0.08174963174537715),\n",
" (0.4297178523694718, 0.08151029487796034),\n",
" (0.4455058753648336, 0.08106463191834218),\n",
" (0.46128613756647, 0.08041262317674736),\n",
" (0.4770580483963118, 0.07956254111736814),\n",
" (0.4927967394973388, 0.0785061423439379),\n",
" (0.5084924438970736, 0.07725180634564154),\n",
" (0.5241446353988092, 0.07576662212302035),\n",
" (0.5397470034536399, 0.07405044414554558),\n",
" (0.555282007725809, 0.07210341227712713),\n",
" (0.5707484117022846, 0.06990924509966447),\n",
" (0.5861123241638398, 0.067451678855143),\n",
" (0.60134919588372, 0.06470607372380098),\n",
" (0.6164160776932822, 0.061664673621104886),\n",
" (0.6312945944551049, 0.0582786988763047),\n",
" (0.6459698612734819, 0.05450694118673308),\n",
" (0.6605204430710451, 0.05029904797872243),\n",
" (0.6750783255994527, 0.04562767310967484),\n",
" (0.6898010909786567, 0.04053037954981599),\n",
" (0.7048024117526104, 0.03512792166195238),\n",
" (0.7199469450859437, 0.029680188328619052),\n",
" (0.7199511726520137, 0.029678672963256176),\n",
" (0.734971705985347, 0.02431360629658951),\n",
" (0.734991723083482, 0.024306576035919354),\n",
" (0.7493095897501487, 0.019363109369252687),\n",
" (0.7493969750200505, 0.01933516441230249),\n",
" (0.7630865750200505, 0.015301031078969157),\n",
" (0.7632195271528522, 0.015266764919691356),\n",
" (0.7771075271528524, 0.012191564919691355),\n",
" (0.777204153076762, 0.012172651455128162),\n",
" (0.792009753076762, 0.009651318121794828),\n",
" (0.7920395069198544, 0.009646481604873148),\n",
" (0.8076304402531876, 0.007232614938206481),\n",
" (0.8076429699649019, 0.007230715653864024),\n",
" (0.8233579032982352, 0.004899515653864024),\n",
" (0.823377709679538, 0.004896678696784491),\n",
" (0.8388777096795381, 0.002755612030117825),\n",
" (0.8389065805612077, 0.0027518379543277046),\n",
" (0.8537204472278744, 0.0009249046209943712),\n",
" (0.8537642470325209, 0.000919992288621671),\n",
" (0.8648350225281947, -0.00019826786245649654),\n",
" (0.8587905442154664, -0.0013239385808904536),\n",
" (0.858714573978138, -0.0013396167977340388),\n",
" (0.8480320250588681, -0.003761104370799054),\n",
" (0.8359278195129234, -0.005996232618251184),\n",
" (0.8242620311461765, -0.007748568952607385),\n",
" (0.8131063111911768, -0.009157452344265397),\n",
" (0.8017575841976508, -0.01042758603394781),\n",
" (0.7898251909832852, -0.011615874154880483),\n",
" (0.7768554764690998, -0.012788184441967892),\n",
" (0.7622791340491827, -0.013985674329156556),\n",
" (0.7465019722470159, -0.01518341697905927),\n",
" (0.7305429117497781, -0.016298568721878678),\n",
" (0.7144589048114988, -0.017322922527911882),\n",
" (0.6982510240597578, -0.018272925732014948),\n",
" (0.6819864436510787, -0.01912373923231659),\n",
" (0.6656716455333188, -0.01987545904432477),\n",
" (0.6493144125304526, -0.020536357347470877),\n",
" (0.6329235345187842, -0.021114664535382566),\n",
" (0.6165062913128737, -0.021610404138983286),\n",
" (0.6000714665240776, -0.02204833561902662),\n",
" (0.5836278624994237, -0.02242017591104141),\n",
" (0.5671672075877976, -0.022742447769250954),\n",
" (0.5507070392543101, -0.023006868144086097),\n",
" (0.5342376102661746, -0.023213459074694923),\n",
" (0.51775283239551, -0.023378720005729155),\n",
" (0.49134678789334424, -0.023519221650967596),\n",
" (0.4750983136885065, -0.023585339552106302),\n",
" (0.45887593243198666, -0.02361013178021102),\n",
" (0.44260967387008654, -0.023593601029642374),\n",
" (0.42631505967274, -0.023577066924338804),\n",
" (0.4100287111111111, -0.0235688),\n",
" (0.39372786070434523, -0.0235688),\n",
" (0.3774616078196613, -0.023552269255198495),\n",
" (0.3612397506759218, -0.023510950210003028),\n",
" (0.34502613747812866, -0.023403520560884114),\n",
" (0.33066666666666666, -0.02328671754462413),\n",
" (0.3307236042848257, -0.0162869491121945),\n",
" (0.32883086828078884, -0.016271553191470254),\n",
" (0.3125675773917624, -0.016114619455110932),\n",
" (0.2963421720373588, -0.01593296097277155),\n",
" (0.28017540346300995, -0.015710141804059243),\n",
" (0.2639942253484391, -0.015429591036137053),\n",
" (0.24781124381205855, -0.01509949452341129),\n",
" (0.23170622413346872, -0.014720164822840309),\n",
" (0.2156434503819529, -0.014250396683365495),\n",
" (0.19962173586568613, -0.013698491864553223),\n",
" (0.18372758434460237, -0.013032122157923934),\n",
" (0.1679679863144409, -0.01221867053905741),\n",
" (0.16577567097052628, -0.012079858316862922),\n",
" (0.16533333333333333, -0.01906586843814979),\n",
" (0.16756638708222163, -0.019207260119790546)])"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 7
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"lr = LinearRing(pts)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 12
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"lr.parallel_offset(distance=2e-3+1e-9)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 15,
"svg": [
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"100.0\" height=\"100.0\" viewBox=\"0.030255907151531224 -0.05320829148363529 0.8531503809267785 0.16629433123920584\" preserveAspectRatio=\"xMinYMin meet\"><g transform=\"matrix(1,0,0,-1,0,0.05987774827193526)\"><g><polyline fill=\"none\" stroke=\"#66cc99\" stroke-width=\"0.01706300761853557\" points=\"0.06185406940807858,0.00015946355112163418 0.0620069572778072,-0.0004948065972758372 0.06280094462560258,-0.001399168867858928 0.06497057263823681,-0.002753654152582563 0.06856624432545569,-0.004301994409731907 0.07391169739532918,-0.006018782256990552 0.08169810702324029,-0.007925331116499651 0.09260191088902436,-0.009940341070832323 0.10608201951093536,-0.011888286336172223 0.12086197475030848,-0.013587981188700134 0.13626791371816377,-0.015027404210256286 0.151931424691133,-0.01621328516720033 0.16346371168878185,-0.01694348230310588 0.16377966708072858,-0.011953476071616701 0.1638016660112888,-0.011758442043306694 0.16384267568870733,-0.01156650342941504 0.16390230116737248,-0.01137950870371784 0.16397996822133012,-0.011199258727645265 0.16407492887439348,-0.01102748940700156 0.1641862686035628,-0.010865854974243184 0.16431291514638172,-0.01071591205731597 0.1644536488274108,-0.010579104688477062 0.1646071143043689,-0.010456750397474896 0.16477183362082015,-0.010350027523017478 0.1649462204397024,-0.010259963864726494 0.16512859532062024,-0.010187426784865089 0.16531720189377422,-0.010133114855165128 0.16551022377476202,-0.010097551129199545 0.16570580205735322,-0.010081078105090499 0.1659020532157725,-0.010083854427065228 0.1680827290095891,-0.010221929660478 0.1838210228876531,-0.01103428163854283 0.19969805251597214,-0.01169993350184192 0.21570711099248924,-0.012251402354246363 0.23175900483149398,-0.012720852302334244 0.24785518443423915,-0.013099973788113185 0.26403195445708066,-0.013429943599899855 0.28020652029750925,-0.013710379723599281 0.2963671485519763,-0.013933114263094229 0.3125884217608481,-0.014114726482226638 0.32884865136442265,-0.01427163067850288 0.33073987218386225,-0.014287014274390542 0.3309358217431289,-0.014298239040215094 0.3311297275322623,-0.014328616171172318 0.33131972213251326,-0.014377853118885266 0.33150397579201984,-0.01444547570463181 0.33168071404731775,-0.014530832685944945 0.33184823481239334,-0.014633102028433754 0.3320049247707029,-0.014751298822423957 0.3321492749122925,-0.014884284768176492 0.3322798950663887,-0.015030779138336246 0.3323955272895034,-0.015189371112036614 0.33249505798011697,-0.015358533361875672 0.3325775286032697,-0.015536636762913973 0.3326421449217778,-0.015721966082038297 0.33268828464517103,-0.01591273649659417 0.3327155034226906,-0.016107110783203694 0.3327235391226297,-0.016303217011231032 0.33268286940350716,-0.021303050605856706 0.34504089718585995,-0.021403573455128513 0.361248923578652,-0.02151096608668116 0.377465171196658,-0.02155227084373161 0.3937288769647537,-0.021568799 0.4100287111111111,-0.021568799 0.42631607486990053,-0.02157706618199501 0.44261170326518096,-0.021593601059253238 0.45887542041927293,-0.021610129227087927 0.4750927162631036,-0.021585344770882378 0.4913373980042139,-0.02151924230194602 0.5177374870055695,-0.021378772344818307 0.5342150427432891,-0.021213583816119364 0.5506784340498726,-0.021007068621606274 0.5671315707133314,-0.02074276120532581 0.5835856805333123,-0.020420617488970765 0.6000222219124229,-0.020048936905021023 0.6164494714862261,-0.019611207278368653 0.6328580912270695,-0.019115728071297387 0.6492387805786443,-0.01853778036232045 0.6655852465789938,-0.017877317089579063 0.6818881761419118,-0.017126144132502838 0.6981402702863605,-0.016275983798892776 0.7143368317841844,-0.015326644057684951 0.7304096456551453,-0.01430300311264173 0.7463565666435503,-0.013188699627427093 0.7621215569084674,-0.011991880994750145 0.7766835750744701,-0.010795567887628109 0.7896360707608989,-0.009624813980898064 0.8015472571790278,-0.008438637740088548 0.812869777819642,-0.007171437028857031 0.823988151044302,-0.005767270247899223 0.8355975944162899,-0.00402339758341867 0.8476292054718818,-0.0018016744285503552 0.8518081258217625,-0.0008544095227177291 0.838661783222239,0.0007668749161743862 0.8386473409060956,0.0007687094155742675 0.838618470024426,0.000772483491364388 0.8386040414444643,0.000774423069641665 0.8231040414444643,0.002915489736308331 0.8230941347011298,0.0029168834468604643 0.823074328319827,0.002919720403939997 0.8230644286719554,0.0029211636518858748 0.8073494953386221,0.005252363651885875 0.8073432289752943,0.005253303370310069 0.80733069926358,0.005255202654652526 0.8073244359089288,0.005256162221520432 0.7917335025755955,0.007670028888187099 0.7917186165343677,0.0076723910901035745 0.7916888626912754,0.007677227607025255 0.7916739948745339,0.007679701924448718 0.776868394874534,0.010201035257782052 0.7768199654824967,0.010209897295174967 0.776723339558587,0.01022881075973816 0.7766751429784016,0.010238862196365169 0.7627871429784014,0.01331406219636517 0.7627203727521138,0.013330054078025927 0.7625874206193121,0.013364320237303728 0.7625212386463218,0.013382594532053852 0.7488316386463219,0.017416727865387182 0.7487877857306068,0.01743019921324295 0.748700400460705,0.01745814417019315 0.7486568680628256,0.017472617793260058 0.7343390013961589,0.022416084459926724 0.7343289835199933,0.022419573049438455 0.7343089664218583,0.022426603310108612 0.7342989671898803,0.022430144984782168 0.719278433856547,0.027795211651448833 0.7192763196471204,0.027795968147894142 0.7192720920810504,0.027797483513257018 0.7192699787222933,0.02779824238293227 0.7041254453889599,0.0332459757162656 0.6891350705212306,0.03864449148723874 0.674445539771403,0.04373027860398575 0.6599369747392451,0.04838582833416884 0.6454430111724273,0.052577348075336865 0.6308236775636406,0.05633473011395882 0.6159962440655359,0.059709079597746746 0.6009739471353716,0.06274147979863878 0.5857770037155761,0.06547989005772527 0.5704499788109073,0.06793155587715165 0.5550171708747564,0.07012095689636025 0.5395132956793147,0.07206408729791323 0.5239408262512687,0.07377697658455182 0.5083183099293029,0.0752593450283862 0.4926501011435802,0.07651148369054701 0.47693725228778067,0.07756614790320687 0.46119103064094336,0.07841484535460624 0.44543637291713745,0.07906579617060033 0.42967446027280365,0.07951072208946809 0.4139291117594137,0.07974966249077019 0.3981755711471597,0.07978261968870377 0.3824313833192109,0.0796096066356494 0.3667048465285734,0.07922241583986103 0.35099593347999825,0.07862107831886157 0.3353046095704732,0.07779738677505449 0.33279540598256013,0.07762993072898777 0.33312834896762616,0.07264102914961217 0.3331317934478688,0.07244478858117516 0.3331159864026627,0.07224915534660988 0.3330810800624944,0.07205601350090919 0.3330274105945012,0.07186722310562925 0.33295549486499876,0.07168460231547996 0.3328660254617753,0.07150990986850111 0.3327598640240928,0.07134482814845373 0.33263803294462985,0.07119094698254472 0.33250170552328134,0.07104974833052177 0.3323521946676391,0.07092259201259092 0.3321909402489738,0.07081070261360455 0.3320194952354878,0.07071515768963985 0.33183951073638246,0.07063687739054478 0.3316527201007736,0.070576615598392 0.33146092222459234,0.07053495266718238 0.33126596422623367,0.07051228983371874 0.3201457219581778,0.06977016121152058 0.30459577645482705,0.06850979720756478 0.28909063982006655,0.06702883165036602 0.2736337475823544,0.06531957742937035 0.25825613082588905,0.06337490538471638 0.24295987681663708,0.061169892793953934 0.22775620807547653,0.058713476105231824 0.2126601803301197,0.05597467193544786 0.1976889320820704,0.052944582518541256 0.1828665748305442,0.049617280588862764 0.16824289490088956,0.045971510301014394 0.16773733981965439,0.04583137897708892 0.16754585580907128,0.04578829651156495 0.167351071026268,0.04576419021502429 0.16715486135518318,0.0457592922442805 0.16695911640220845,0.04577364976946933 0.16676572129824607,0.04580712451977458 0.1665765385438677,0.045859394115051674 0.1663933900724158,0.0459299551705246 0.1662180397037896,0.046018128144656584 0.16605217615789525,0.04612306388350647 0.1658973967913499,0.04624375179854542 0.16575519221406446,0.046379029599176884 0.16562693193385508,0.04652759448623042 0.16551385116733439,0.046688015698629876 0.16541703894410018,0.04685874829240468 0.16533742761878517,0.04703814801934487 0.16527578389197214,0.047224487162010116 0.16394022514841214,0.05204281392993499 0.15189414951942132,0.048703845361223165 0.13761295472657045,0.044293235258723876 0.12371074632962638,0.03948723035353767 0.11038859629971809,0.03430866314387374 0.0980028583883946,0.02879123193239063 0.08708446532059558,0.023133739898001063 0.07830238433261008,0.017744188825922293 0.07191697313329175,0.01302625505612892 0.06756469900436585,0.00910688918869476 0.06469305109644229,0.005907903177277312 0.06293272063018526,0.0033292940958461227 0.06204665966017461,0.0013267963036220545 0.06185406940807858,0.00015946355112163418\" opacity=\"0.8\" /><polyline fill=\"none\" stroke=\"#66cc99\" stroke-width=\"0.01706300761853557\" points=\"0.32880428192527417,0.0773635761544868 0.3196156721753382,0.07675035837296192\" opacity=\"0.8\" /><polyline fill=\"none\" stroke=\"#66cc99\" stroke-width=\"0.01706300761853557\" points=\"0.31934931760083723,0.08074148243024783 0.3305334893794162,0.0814878774990232\" opacity=\"0.8\" /><polyline fill=\"none\" stroke=\"#66cc99\" stroke-width=\"0.01706300761853557\" points=\"0.16745571946837726,-0.017196246793598314 0.16769276932746785,-0.017211256229992852 0.1674400048369754,-0.02120326400958824 0.1652069510880871,-0.021061872327947484\" opacity=\"0.8\" /></g></g></svg>"
],
"text": [
"<shapely.geometry.multilinestring.MultiLineString at 0x7f9a042936d8>"
]
}
],
"prompt_number": 15
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"lr.parallel_offset(distance=2e-3)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stderr",
"text": [
"TopologyException: assigned depths do not match at 0.1674400049001665 -0.021203263011586794\n"
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"ERROR:shapely.geos:TopologyException: assigned depths do not match at 0.1674400049001665 -0.021203263011586794\n"
]
},
{
"ename": "ValueError",
"evalue": "No Shapely geometry can be created from null value",
"output_type": "pyerr",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-16-4ff78982a218>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mlr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mparallel_offset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdistance\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m2e-3\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m/home/jonathan/.local/lib/python3.5/site-packages/shapely/geometry/linestring.py\u001b[0m in \u001b[0;36mparallel_offset\u001b[0;34m(self, distance, side, resolution, join_style, mitre_limit)\u001b[0m\n\u001b[1;32m 139\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 140\u001b[0m return geom_factory(self.impl['parallel_offset'](\n\u001b[0;32m--> 141\u001b[0;31m self, distance, resolution, join_style, mitre_limit, side))\n\u001b[0m\u001b[1;32m 142\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mOSError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 143\u001b[0m \u001b[0;32mraise\u001b[0m \u001b[0mTopologicalError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/home/jonathan/.local/lib/python3.5/site-packages/shapely/geometry/base.py\u001b[0m in \u001b[0;36mgeom_factory\u001b[0;34m(g, parent)\u001b[0m\n\u001b[1;32m 63\u001b[0m \u001b[0;31m# Abstract geometry factory for use with topological methods below\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 64\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mg\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 65\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mValueError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"No Shapely geometry can be created from null value\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 66\u001b[0m \u001b[0mob\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mBaseGeometry\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 67\u001b[0m \u001b[0mgeom_type\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mgeometry_type_name\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mValueError\u001b[0m: No Shapely geometry can be created from null value"
]
}
],
"prompt_number": 16
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment