ncssar / sartopo_python

Python calls for the caltopo / sartopo API
GNU General Public License v3.0
14 stars 2 forks source link

features missing from synced data, but present in synced id list #27

Closed caver456 closed 1 year ago

caver456 commented 3 years ago

The initial symptom is a group of failed geom operations (expand a7 b7, and cut a8 b8).

Here's the full transcript, with the most interesting portion between the lines. After looking at the transcript, checking the sync dump file shows that id 630eab7d-7a28-4aaf-baee-4c7b38390d73 (a7) is listed in 'ids' but is not present anywhere else in the dump file. b7 is a feature in the sync dump file; a8 is not; b8 is.

So, when editObject says that there is no match, it is telling the truth, and the geom operation gracefully exits as expected. But why are the features missing? Maybe a sync race condition?

Workaround: if you just run the same test code again, it works fine. This adds credibility to the race condition theory.

PS C:\Users\caver\Documents\GitHub\sartopo_python\sartopo_python> python test.py
startup
INFO:root:searching for API v1: sending get to http://sartopo.com/api/v1/map/
INFO:root:response code = 200
INFO:root:API version:1
INFO:root:Sartopo syncing initiated.
INFO:root:Sending sartopo "since" request...
INFO:root:Successful sartopo sync: timestamp=1625112535612
INFO:root:  Adding Shape:a1
INFO:root:  Adding Shape:a2
INFO:root:  Adding Shape:b2
INFO:root:  Adding Shape:a3
INFO:root:  Adding Shape:b3
INFO:root:  Adding Shape:b1
INFO:root:  Adding Shape:a4
INFO:root:  Adding Shape:b4
INFO:root:  Adding Shape:a5
INFO:root:  Adding Shape:b5
INFO:root:  Adding Shape:b0
INFO:root:  Adding Shape:b00
INFO:root:  Adding Shape:a6
INFO:root:  Adding Shape:b6
INFO:root:  Adding Shape:a7
INFO:root:  Adding Shape:b7
INFO:root:  Adding Shape:a8
INFO:root:  Adding Shape:b8
INFO:root:  Adding Shape:a9
INFO:root:  Adding Shape:b9
INFO:root:  Adding Shape:a10
INFO:root:  Adding Shape:b10
INFO:root:  Adding Shape:a11
INFO:root:  Adding Shape:b11
INFO:root:  Adding Shape:a12
INFO:root:  Adding Shape:b12
INFO:root:  Adding Shape:a13
INFO:root:  Adding Shape:b13
INFO:root:  Adding Shape:a14
INFO:root:  Adding Shape:b14
INFO:root:  Adding Shape:a16
INFO:root:  Adding Shape:b16
INFO:root:  Adding Marker:stuff
INFO:root:  Adding Folder:f1
INFO:root:  Adding OperationalPeriod:1
INFO:root:  Adding OperationalPeriod:2
INFO:root:  Adding Assignment:AC 103
INFO:root:  Adding Assignment:AD 111
INFO:root:  Adding Assignment:a15
INFO:root:  Adding Assignment:b15
INFO:root:cut: target=AC 103  cutter=b0
INFO:root:id specified: c5b6a59b-c1a1-4afe-afb6-638673fa9bed
INFO:root:cut: target=a1  cutter=b1
INFO:root:id specified: 2a3d99db-442e-49b3-82f2-8e7414d30907
INFO:root:cut: target=a2  cutter=b2
INFO:root:id specified: 1f784a3b-2438-4ef7-8bcf-14a967573909
INFO:root:spur(s) were removed from the shape:
    7 points: [[-121.09339964614931, 39.312317293184165], [-121.09232676254335, 39.30952812051645], [-121.09408629165712, 39.30873119362], [-121.09254133926454, 39.306273945224966], [-121.0936142228705, 39.305576602261326], [-121.0936142228705, 39.30554339528024], [-121.0936142228705, 39.305576602261326]]
 --> 5 points: [[-121.09339964614931, 39.312317293184165], [-121.09232676254335, 39.30952812051645], [-121.09408629165712, 39.30873119362], [-121.09254133926454, 39.306273945224966], [-121.0936142228705, 39.305576602261326]]
INFO:root:cut: target=a3  cutter=b3
INFO:root:spur(s) were removed from the shape:
    9 points: [[-121.09464419113222, 39.30999299034826], [-121.09168303237978, 39.30992658056136], [-121.09224093185487, 39.308399138067934], [-121.09412920700136, 39.309594530681494], [-121.09511625991884, 39.30819990398043], [-121.09391463028017, 39.30690486858584], [-121.09258425460878, 39.30736975584373], [-121.09258425460878, 39.30733654971343], [-121.09258425460878, 39.30736975584373]]
 --> 7 points: [[-121.09464419113222, 39.30999299034826], [-121.09168303237978, 39.30992658056136], [-121.09224093185487, 39.308399138067934], [-121.09412920700136, 39.309594530681494], [-121.09511625991884, 39.30819990398043], [-121.09391463028017, 39.30690486858584], [-121.09258425460878, 39.30736975584373]]
INFO:root:id specified: b4ee4328-4020-492d-8640-0a19f6451ed9
INFO:root:expand: target=a4  p2=b4
INFO:root:id specified: ab67b9b8-66d8-41c7-9b46-fbd8b168ded2
INFO:root:spur(s) were removed from the shape:
    7 points: [[-121.11890478472147, 39.30275550029026], [-121.12032099108133, 39.30142715521775], [-121.11856146196756, 39.29973347869046], [-121.12019224504861, 39.29903607056254], [-121.11937685350809, 39.297574811955535], [-121.11933393816385, 39.297574811955535], [-121.11937685350809, 39.297574811955535]]
 --> 5 points: [[-121.11890478472147, 39.30275550029026], [-121.12032099108133, 39.30142715521775], [-121.11856146196756, 39.29973347869046], [-121.12019224504861, 39.29903607056254], [-121.11937685350809, 39.297574811955535]]
INFO:root:cut: target=AD 111  cutter=b00
INFO:root:id specified: 57d78d0d-ba66-4714-bd9e-435c6d5328da
INFO:root:Sending sartopo "since" request...
INFO:root:Successful sartopo sync: timestamp=1625112541028
INFO:root:  Updating geometry for Shape:a1
INFO:root:  Updating geometry for Shape:a2
INFO:root:  Updating geometry for Shape:a3
INFO:root:  Updating geometry for Shape:a4
INFO:root:  Adding Shape:a1:1
INFO:root:  Adding Shape:a2:1
INFO:root:  Adding Shape:a3:1
INFO:root:  Adding Shape:a3:2
INFO:root:  Adding Shape:a3:3
INFO:root:  Updating geometry for Assignment:AC 103
INFO:root:  Updating geometry for Assignment:AD 111
INFO:root:  Adding Assignment:AC:1 103
INFO:root:  Adding Assignment:AD:1 111
INFO:root:  Deleting Shape:b2
INFO:root:  Deleting Shape:b1
INFO:root:  Deleting Shape:b4
INFO:root:  Deleting Shape:b0
INFO:root:  Deleting Shape:a7
INFO:root:  Deleting Shape:a8
INFO:root:cut: target=a5  cutter=b5
INFO:root:id specified: b6f0002b-b582-42e2-84a6-198eca8340d9
INFO:root:cut: target=a6  cutter=b6
INFO:root:id specified: 707ba299-118f-40d5-97e6-3cc4537865fb
--------------
INFO:root:expand: target=a7  p2=b7
INFO:root:id specified: 630eab7d-7a28-4aaf-baee-4c7b38390d73
INFO:root:no match!
ERROR:root:expand: target shape not found; operation aborted.
INFO:root:cut: target=a8  cutter=b8
INFO:root:id specified: f9d97476-b0fe-4bcd-9ca7-e7479b781edc
INFO:root:no match!
ERROR:root:cut: target shape not found; operation aborted.
INFO:root:expand: target=a9  p2=b9
INFO:root:id specified: b617acfb-f00a-406f-ac4d-e9bf239f3bb9
INFO:root:cut: target=NO TITLE  cutter=NO TITLE
INFO:root:id specified: 96fd6b16-525d-49a6-9eb2-85dafcd86a9c
INFO:root:Sending sartopo "since" request...
INFO:root:expand: target=e78b10d6-63f0-4479-9953-9f033775b8f4  p2=0f68749b-79bb-445d-90b7-d09ba8fa8037
INFO:root:id specified: e78b10d6-63f0-4479-9953-9f033775b8f4
INFO:root:Successful sartopo sync: timestamp=1625112546304
--------------
INFO:root:  Updating geometry for Shape:a5
INFO:root:  Updating geometry for Shape:a6
INFO:root:  Updating geometry for Shape:a9
INFO:root:  Updating geometry for Shape:a10
INFO:root:  Adding Shape:a5:1
INFO:root:  Adding Shape:a6:1
INFO:root:  Adding Shape:a10:1
INFO:root:  Updating geometry for Assignment:AD 111
INFO:root:  Updating properties for Assignment:AD:1 111
INFO:root:  Updating geometry for Assignment:AD:1 111
INFO:root:  Deleting Shape:b3
INFO:root:  Deleting Shape:b00
INFO:root:  Deleting Shape:b6
INFO:root:  Deleting Shape:a9
INFO:root:  Deleting Shape:b11
INFO:root:  Deleting Shape:a13
INFO:root:cut: target=a12  cutter=b12
INFO:root:id specified: 61973425-7d36-41b4-a1e1-dc868bc93fa5
INFO:root:expand: target=a13  p2=b13
INFO:root:id specified: 46e6d2b2-4a83-4582-82d2-f81879b5be9e
INFO:root:no match!
ERROR:root:expand: target shape not found; operation aborted.
INFO:root:spur(s) were removed from the shape:
    308 points: [[-121.0962735916397, 39.297045922761626], [-121.09539382708282, 39.296099402282174], [-121.09631650698394, 39.29571746934236], [-121.09530799639434, 39.29457165802169], [-121.09644525301665, 39.294322566122815], [-121.09640233767242, 39.29404026089947], [-121.0958229805252, 39.29420632293341], [-121.09543674242705, 39.29418971674774], [-121.09532945406646, 39.29397390148447], [-121.09505050432891, 39.29422301034899], [-121.09472863924712, 39.294438890352865], [-121.094707181575, 39.294438890352865], [-121.09468572390288, 39.294438890352865], [-121.09466426623077, 39.294438890352865], [-121.09464280855865, 39.294438890352865], [-121.09457843554229, 39.29448870872074], [-121.09453552019805, 39.294538527053206], [-121.09451406252593, 39.29455513315615], [-121.09451406252593, 39.29457173925513], [-121.09451406252593, 39.294621557528515], [-121.09451406252593, 39.29465476969106], [-121.09451406252593, 39.294687981837875], [-121.09453552019805, 39.29472119396892], [-121.09457843554229, 39.29478761818375], [-121.09459989321441, 39.29485404233556], [-121.09464280855865, 39.294887254387845], [-121.09466426623077, 39.294953678445125], [-121.09468572390288, 39.29498689045015], [-121.094707181575, 39.29498689045015], [-121.09472863924712, 39.29500349644674], [-121.09475009691924, 39.29502010243939], [-121.09475009691924, 39.29506992039374], [-121.09475009691924, 39.29508652637064], [-121.09479301226348, 39.29511973831263], [-121.0948144699356, 39.295152950238865], [-121.0948144699356, 39.295186162149356], [-121.0948144699356, 39.2952027680987], [-121.0948144699356, 39.295219374044095], [-121.09479301226348, 39.29526919185665], [-121.09475009691924, 39.29526919185665], [-121.09468572390288, 39.29528579778627], [-121.09462135088653, 39.29528579778627], [-121.09451406252593, 39.29528579778627], [-121.09442823183745, 39.29528579778627], [-121.0943638588211, 39.29528579778627], [-121.09432094347686, 39.29528579778627], [-121.09427802813262, 39.29528579778627], [-121.0942565704605, 39.29528579778627], [-121.09421365511626, 39.29523597998555], [-121.09419219744414, 39.29523597998555], [-121.09417073977203, 39.295219374044095], [-121.0941492820999, 39.295186162149356], [-121.09410636675567, 39.295152950238865], [-121.09406345141143, 39.29511973831263], [-121.09406345141143, 39.29510313234362], [-121.09406345141143, 39.29508652637064], [-121.09406345141143, 39.29508652637064], [-121.09404199373931, 39.29508652637064], [-121.09399907839507, 39.29508652637064], [-121.09395616305083, 39.29508652637064], [-121.0939132477066, 39.29513634427772], [-121.09387033236236, 39.29516955619607], [-121.09382741701812, 39.295219374044095], [-121.09382741701812, 39.29528579778627], [-121.093805959346, 39.295319009633765], [-121.09378450167388, 39.29535222146547], [-121.09378450167388, 39.29540203918351], [-121.09378450167388, 39.295418645081625], [-121.09378450167388, 39.2954684627524], [-121.093805959346, 39.29555149212488], [-121.093805959346, 39.29556809798758], [-121.09384887469024, 39.295617915552], [-121.09387033236236, 39.295617915552], [-121.09389179003448, 39.295634521398924], [-121.0939132477066, 39.29565112724191], [-121.09393470537871, 39.29565112724191], [-121.09395616305083, 39.29565112724191], [-121.09397762072295, 39.29568433891607], [-121.09399907839507, 39.29568433891607], [-121.09406345141143, 39.29568433891607], [-121.09406345141143, 39.29568433891607], [-121.09408490908355, 39.29568433891607], [-121.09408490908355, 39.295700944747274], [-121.09410636675567, 39.295700944747274], [-121.0941492820999, 39.29571755057451], [-121.09417073977203, 39.29571755057451], [-121.09419219744414, 39.29571755057451], [-121.09421365511626, 39.2957341563978], [-121.09423511278838, 39.295750762217146], [-121.09423511278838, 39.295750762217146], [-121.09427802813262, 39.29576736803257], [-121.09429948580474, 39.29581718545521], [-121.09432094347686, 39.29581718545521], [-121.09432094347686, 39.2958503970506], [-121.0943638588211, 39.295883608630234], [-121.09438531649322, 39.29598324327464], [-121.09442823183745, 39.29606627203665], [-121.09444968950957, 39.296082877777245], [-121.0944711471817, 39.2961160892466], [-121.0944711471817, 39.296149300700186], [-121.09449260485381, 39.29621572356013], [-121.09449260485381, 39.29621572356013], [-121.09449260485381, 39.29623232926528], [-121.09449260485381, 39.29628214635707], [-121.0944711471817, 39.29628214635707], [-121.09444968950957, 39.29628214635707], [-121.09442823183745, 39.29628214635707], [-121.09438531649322, 39.29631535773188], [-121.09432094347686, 39.29633196341339], [-121.09432094347686, 39.29633196341339], [-121.09423511278838, 39.29634856909096], [-121.09421365511626, 39.29634856909096], [-121.09412782442779, 39.29634856909096], [-121.09406345141143, 39.29634856909096], [-121.09399907839507, 39.29634856909096], [-121.09397762072295, 39.29634856909096], [-121.09397762072295, 39.29633196341339], [-121.09397762072295, 39.29631535773188], [-121.09397762072295, 39.29629875204645], [-121.09395616305083, 39.29629875204645], [-121.0939132477066, 39.29628214635707], [-121.0939132477066, 39.296265540663725], [-121.0939132477066, 39.29624893496646], [-121.0939132477066, 39.29623232926528], [-121.09389179003448, 39.29621572356013], [-121.09389179003448, 39.29621572356013], [-121.09389179003448, 39.29621572356013], [-121.09384887469024, 39.29619911785106], [-121.09382741701812, 39.29616590642109], [-121.093805959346, 39.29616590642109], [-121.093805959346, 39.29616590642109], [-121.093805959346, 39.296149300700186], [-121.09378450167388, 39.296149300700186], [-121.09376304400176, 39.296149300700186], [-121.09372012865752, 39.296149300700186], [-121.09372012865752, 39.296149300700186], [-121.0936986709854, 39.296149300700186], [-121.09367721331328, 39.296182512138046], [-121.09365575564117, 39.29621572356013], [-121.09363429796905, 39.29624893496646], [-121.09363429796905, 39.29628214635707], [-121.09361284029693, 39.29634856909096], [-121.09361284029693, 39.29641499176185], [-121.09361284029693, 39.29649802001184], [-121.09361284029693, 39.29656444254093], [-121.09361284029693, 39.296597653781845], [-121.09363429796905, 39.29663086500702], [-121.09363429796905, 39.29663086500702], [-121.09365575564117, 39.2966474706137], [-121.0936986709854, 39.29666407621641], [-121.09372012865752, 39.296680681815204], [-121.09376304400176, 39.296697287410076], [-121.09387033236236, 39.296713893000984], [-121.0939132477066, 39.29673049858797], [-121.09399907839507, 39.29674710417099], [-121.09404199373931, 39.29674710417099], [-121.09406345141143, 39.29674710417099], [-121.09410636675567, 39.29674710417099], [-121.0941492820999, 39.29674710417099], [-121.09417073977203, 39.29674710417099], [-121.09423511278838, 39.29676370975012], [-121.0942565704605, 39.29676370975012], [-121.09429948580474, 39.29676370975012], [-121.09438531649322, 39.29676370975012], [-121.09440677416534, 39.29676370975012], [-121.09440677416534, 39.29676370975012], [-121.09440677416534, 39.29674710417099], [-121.09442823183745, 39.29674710417099], [-121.09442823183745, 39.296697287410076], [-121.0944711471817, 39.296680681815204], [-121.0944711471817, 39.29666407621641], [-121.0944711471817, 39.29663086500702], [-121.09449260485381, 39.29663086500702], [-121.09449260485381, 39.29661425939639], [-121.09451406252593, 39.296597653781845], [-121.09451406252593, 39.29656444254093], [-121.09451406252593, 39.29654783691458], [-121.09451406252593, 39.29654783691458], [-121.09451406252593, 39.29653123128426], [-121.09451406252593, 39.29651462565002], [-121.09451406252593, 39.29649802001184], [-121.09453552019805, 39.296481414369715], [-121.09455697787017, 39.29644820307366], [-121.09455697787017, 39.29641499176185], [-121.09457843554229, 39.29636517476459], [-121.09457843554229, 39.29634856909096], [-121.09457843554229, 39.29631535773188], [-121.09457843554229, 39.29623232926528], [-121.09457843554229, 39.296182512138046], [-121.09457843554229, 39.296149300700186], [-121.09457843554229, 39.29609948351387], [-121.09459989321441, 39.296082877777245], [-121.09459989321441, 39.296082877777245], [-121.09459989321441, 39.29604966629211], [-121.09459989321441, 39.29601645479125], [-121.09459989321441, 39.29596663751041], [-121.09459989321441, 39.295933425970155], [-121.09459989321441, 39.29591682019412], [-121.09459989321441, 39.29590021441414], [-121.09462135088653, 39.295883608630234], [-121.09462135088653, 39.295867002842385], [-121.09462135088653, 39.29583379125487], [-121.09466426623077, 39.29581718545521], [-121.09466426623077, 39.29581718545521], [-121.09468572390288, 39.29580057965159], [-121.094707181575, 39.29578397384405], [-121.094707181575, 39.29576736803257], [-121.09472863924712, 39.29576736803257], [-121.09475009691924, 39.29576736803257], [-121.09475009691924, 39.295750762217146], [-121.09477155459136, 39.295750762217146], [-121.09477155459136, 39.295750762217146], [-121.09479301226348, 39.295750762217146], [-121.09479301226348, 39.2957341563978], [-121.0948144699356, 39.2957341563978], [-121.09483592760772, 39.2957341563978], [-121.09485738527984, 39.2957341563978], [-121.09487884295196, 39.2957341563978], [-121.09487884295196, 39.295750762217146], [-121.0949217582962, 39.29578397384405], [-121.09496467364043, 39.295867002842385], [-121.09500758898467, 39.295883608630234], [-121.09500758898467, 39.29590021441414], [-121.09500758898467, 39.295933425970155], [-121.09500758898467, 39.29595003174226], [-121.09500758898467, 39.29595003174226], [-121.09500758898467, 39.29596663751041], [-121.09500758898467, 39.29599984903491], [-121.09498613131255, 39.29601645479125], [-121.09496467364043, 39.29603306054365], [-121.09494321596831, 39.29606627203665], [-121.0949217582962, 39.296082877777245], [-121.09487884295196, 39.2961160892466], [-121.09485738527984, 39.296149300700186], [-121.09483592760772, 39.29619911785106], [-121.09483592760772, 39.29621572356013], [-121.09483592760772, 39.29623232926528], [-121.09483592760772, 39.29628214635707], [-121.09483592760772, 39.29629875204645], [-121.09483592760772, 39.29631535773188], [-121.09483592760772, 39.29634856909096], [-121.09483592760772, 39.29634856909096], [-121.09483592760772, 39.29636517476459], [-121.09483592760772, 39.296381780434295], [-121.09483592760772, 39.29639838610003], [-121.09485738527984, 39.29641499176185], [-121.09485738527984, 39.296431597419726], [-121.0949217582962, 39.29646480872367], [-121.0949217582962, 39.296481414369715], [-121.0949217582962, 39.296481414369715], [-121.09496467364043, 39.29653123128426], [-121.09498613131255, 39.29654783691458], [-121.09500758898467, 39.29661425939639], [-121.09500758898467, 39.29661425939639], [-121.09505050432891, 39.29663086500702], [-121.09505050432891, 39.2966474706137], [-121.09507196200103, 39.296680681815204], [-121.09507196200103, 39.296680681815204], [-121.09507196200103, 39.296713893000984], [-121.09507196200103, 39.29674710417099], [-121.09507196200103, 39.29674710417099], [-121.09507196200103, 39.29678031532527], [-121.09507196200103, 39.29681352646377], [-121.09505050432891, 39.29684673758653], [-121.09502904665679, 39.29686334314199], [-121.09500758898467, 39.29687994869353], [-121.09500758898467, 39.29687994869353], [-121.09496467364043, 39.29687994869353], [-121.0949217582962, 39.29689655424113], [-121.0949217582962, 39.29689655424113], [-121.09490030062408, 39.29689655424113], [-121.09487884295196, 39.29689655424113], [-121.09485738527984, 39.29689655424113], [-121.09483592760772, 39.29689655424113], [-121.09483592760772, 39.29689655424113], [-121.0948144699356, 39.29689655424113], [-121.09479301226348, 39.29687994869353], [-121.09477155459136, 39.29687994869353], [-121.09475009691924, 39.29687994869353], [-121.09475009691924, 39.296913159784786], [-121.09475009691924, 39.2969297653245], [-121.09475009691924, 39.2969297653245], [-121.09472863924712, 39.29694637086027], [-121.094707181575, 39.296962976392116], [-121.09468572390288, 39.297012792964], [-121.09466426623077, 39.297062609500415], [-121.09459989321441, 39.29707921500471], [-121.09457843554229, 39.29711242600141], [-121.09455697787017, 39.297129031493874], [-121.09453552019805, 39.297145636982385], [-121.09453552019805, 39.297145636982385], [-121.09451406252593, 39.29716224246694], [-121.09449260485381, 39.297212058897045], [-121.09449260485381, 39.297245269830746], [-121.0944711471817, 39.2972784807487], [-121.09444968950957, 39.29732829709606], [-121.09442823183745, 39.297344902537304], [-121.09442823183745, 39.29736150797463], [-121.09442823183745, 39.29736150797463], [-121.09363429796905, 39.29736150797463], [-121.0934626365921, 39.29687994869353], [-121.09311931383819, 39.29697958192002], [-121.09292619478911, 39.29613269497534], [-121.09333389055938, 39.29599984903491], [-121.0931407715103, 39.29508652637064], [-121.09251849901885, 39.29445549647943], [-121.0916816498062, 39.294505314835504], [-121.09111811557803, 39.295143534206325]]
 --> 306 points: [[-121.0962735916397, 39.297045922761626], [-121.09539382708282, 39.296099402282174], [-121.09631650698394, 39.29571746934236], [-121.09530799639434, 39.29457165802169], [-121.09644525301665, 39.294322566122815], [-121.09640233767242, 39.29404026089947], [-121.0958229805252, 39.29420632293341], [-121.09543674242705, 39.29418971674774], [-121.09532945406646, 39.29397390148447], [-121.09505050432891, 39.29422301034899], [-121.09472863924712, 39.294438890352865], [-121.094707181575, 39.294438890352865], [-121.09468572390288, 39.294438890352865], [-121.09466426623077, 39.294438890352865], [-121.09464280855865, 39.294438890352865], [-121.09457843554229, 39.29448870872074], [-121.09453552019805, 39.294538527053206], [-121.09451406252593, 39.29455513315615], [-121.09451406252593, 39.29457173925513], [-121.09451406252593, 39.294621557528515], [-121.09451406252593, 39.29465476969106], [-121.09451406252593, 39.294687981837875], [-121.09453552019805, 39.29472119396892], [-121.09457843554229, 39.29478761818375], [-121.09459989321441, 39.29485404233556], [-121.09464280855865, 39.294887254387845], [-121.09466426623077, 39.294953678445125], [-121.09468572390288, 39.29498689045015], [-121.094707181575, 39.29498689045015], [-121.09472863924712, 39.29500349644674], [-121.09475009691924, 39.29502010243939], [-121.09475009691924, 39.29506992039374], [-121.09475009691924, 39.29508652637064], [-121.09479301226348, 39.29511973831263], [-121.0948144699356, 39.295152950238865], [-121.0948144699356, 39.295186162149356], [-121.0948144699356, 39.2952027680987], [-121.0948144699356, 39.295219374044095], [-121.09479301226348, 39.29526919185665], [-121.09475009691924, 39.29526919185665], [-121.09468572390288, 39.29528579778627], [-121.09462135088653, 39.29528579778627], [-121.09451406252593, 39.29528579778627], [-121.09442823183745, 39.29528579778627], [-121.0943638588211, 39.29528579778627], [-121.09432094347686, 39.29528579778627], [-121.09427802813262, 39.29528579778627], [-121.0942565704605, 39.29528579778627], [-121.09421365511626, 39.29523597998555], [-121.09419219744414, 39.29523597998555], [-121.09417073977203, 39.295219374044095], [-121.0941492820999, 39.295186162149356], [-121.09410636675567, 39.295152950238865], [-121.09406345141143, 39.29511973831263], [-121.09406345141143, 39.29510313234362], [-121.09406345141143, 39.29508652637064], [-121.09406345141143, 39.29508652637064], [-121.09404199373931, 39.29508652637064], [-121.09399907839507, 39.29508652637064], [-121.09395616305083, 39.29508652637064], [-121.0939132477066, 39.29513634427772], [-121.09387033236236, 39.29516955619607], [-121.09382741701812, 39.295219374044095], [-121.09382741701812, 39.29528579778627], [-121.093805959346, 39.295319009633765], [-121.09378450167388, 39.29535222146547], [-121.09378450167388, 39.29540203918351], [-121.09378450167388, 39.295418645081625], [-121.09378450167388, 39.2954684627524], [-121.093805959346, 39.29555149212488], [-121.093805959346, 39.29556809798758], [-121.09384887469024, 39.295617915552], [-121.09387033236236, 39.295617915552], [-121.09389179003448, 39.295634521398924], [-121.0939132477066, 39.29565112724191], [-121.09393470537871, 39.29565112724191], [-121.09395616305083, 39.29565112724191], [-121.09397762072295, 39.29568433891607], [-121.09399907839507, 39.29568433891607], [-121.09406345141143, 39.29568433891607], [-121.09406345141143, 39.29568433891607], [-121.09408490908355, 39.29568433891607], [-121.09408490908355, 39.295700944747274], [-121.09410636675567, 39.295700944747274], [-121.0941492820999, 39.29571755057451], [-121.09417073977203, 39.29571755057451], [-121.09419219744414, 39.29571755057451], [-121.09421365511626, 39.2957341563978], [-121.09423511278838, 39.295750762217146], [-121.09423511278838, 39.295750762217146], [-121.09427802813262, 39.29576736803257], [-121.09429948580474, 39.29581718545521], [-121.09432094347686, 39.29581718545521], [-121.09432094347686, 39.2958503970506], [-121.0943638588211, 39.295883608630234], [-121.09438531649322, 39.29598324327464], [-121.09442823183745, 39.29606627203665], [-121.09444968950957, 39.296082877777245], [-121.0944711471817, 39.2961160892466], [-121.0944711471817, 39.296149300700186], [-121.09449260485381, 39.29621572356013], [-121.09449260485381, 39.29621572356013], [-121.09449260485381, 39.29623232926528], [-121.09449260485381, 39.29628214635707], [-121.0944711471817, 39.29628214635707], [-121.09444968950957, 39.29628214635707], [-121.09442823183745, 39.29628214635707], [-121.09438531649322, 39.29631535773188], [-121.09432094347686, 39.29633196341339], [-121.09432094347686, 39.29633196341339], [-121.09423511278838, 39.29634856909096], [-121.09421365511626, 39.29634856909096], [-121.09412782442779, 39.29634856909096], [-121.09406345141143, 39.29634856909096], [-121.09399907839507, 39.29634856909096], [-121.09397762072295, 39.29634856909096], [-121.09397762072295, 39.29633196341339], [-121.09397762072295, 39.29631535773188], [-121.09397762072295, 39.29629875204645], [-121.09395616305083, 39.29629875204645], [-121.0939132477066, 39.29628214635707], [-121.0939132477066, 39.296265540663725], [-121.0939132477066, 39.29624893496646], [-121.0939132477066, 39.29623232926528], [-121.09389179003448, 39.29621572356013], [-121.09384887469024, 39.29619911785106], [-121.09382741701812, 39.29616590642109], [-121.093805959346, 39.29616590642109], [-121.093805959346, 39.29616590642109], [-121.093805959346, 39.296149300700186], [-121.09378450167388, 39.296149300700186], [-121.09376304400176, 39.296149300700186], [-121.09372012865752, 39.296149300700186], [-121.09372012865752, 39.296149300700186], [-121.0936986709854, 39.296149300700186], [-121.09367721331328, 39.296182512138046], [-121.09365575564117, 39.29621572356013], [-121.09363429796905, 39.29624893496646], [-121.09363429796905, 39.29628214635707], [-121.09361284029693, 39.29634856909096], [-121.09361284029693, 39.29641499176185], [-121.09361284029693, 39.29649802001184], [-121.09361284029693, 39.29656444254093], [-121.09361284029693, 39.296597653781845], [-121.09363429796905, 39.29663086500702], [-121.09363429796905, 39.29663086500702], [-121.09365575564117, 39.2966474706137], [-121.0936986709854, 39.29666407621641], [-121.09372012865752, 39.296680681815204], [-121.09376304400176, 39.296697287410076], [-121.09387033236236, 39.296713893000984], [-121.0939132477066, 39.29673049858797], [-121.09399907839507, 39.29674710417099], [-121.09404199373931, 39.29674710417099], [-121.09406345141143, 39.29674710417099], [-121.09410636675567, 39.29674710417099], [-121.0941492820999, 39.29674710417099], [-121.09417073977203, 39.29674710417099], [-121.09423511278838, 39.29676370975012], [-121.0942565704605, 39.29676370975012], [-121.09429948580474, 39.29676370975012], [-121.09438531649322, 39.29676370975012], [-121.09440677416534, 39.29676370975012], [-121.09440677416534, 39.29676370975012], [-121.09440677416534, 39.29674710417099], [-121.09442823183745, 39.29674710417099], [-121.09442823183745, 39.296697287410076], [-121.0944711471817, 39.296680681815204], [-121.0944711471817, 39.29666407621641], [-121.0944711471817, 39.29663086500702], [-121.09449260485381, 39.29663086500702], [-121.09449260485381, 39.29661425939639], [-121.09451406252593, 39.296597653781845], [-121.09451406252593, 39.29656444254093], [-121.09451406252593, 39.29654783691458], [-121.09451406252593, 39.29654783691458], [-121.09451406252593, 39.29653123128426], [-121.09451406252593, 39.29651462565002], [-121.09451406252593, 39.29649802001184], [-121.09453552019805, 39.296481414369715], [-121.09455697787017, 39.29644820307366], [-121.09455697787017, 39.29641499176185], [-121.09457843554229, 39.29636517476459], [-121.09457843554229, 39.29634856909096], [-121.09457843554229, 39.29631535773188], [-121.09457843554229, 39.29623232926528], [-121.09457843554229, 39.296182512138046], [-121.09457843554229, 39.296149300700186], [-121.09457843554229, 39.29609948351387], [-121.09459989321441, 39.296082877777245], [-121.09459989321441, 39.296082877777245], [-121.09459989321441, 39.29604966629211], [-121.09459989321441, 39.29601645479125], [-121.09459989321441, 39.29596663751041], [-121.09459989321441, 39.295933425970155], [-121.09459989321441, 39.29591682019412], [-121.09459989321441, 39.29590021441414], [-121.09462135088653, 39.295883608630234], [-121.09462135088653, 39.295867002842385], [-121.09462135088653, 39.29583379125487], [-121.09466426623077, 39.29581718545521], [-121.09466426623077, 39.29581718545521], [-121.09468572390288, 39.29580057965159], [-121.094707181575, 39.29578397384405], [-121.094707181575, 39.29576736803257], [-121.09472863924712, 39.29576736803257], [-121.09475009691924, 39.29576736803257], [-121.09475009691924, 39.295750762217146], [-121.09477155459136, 39.295750762217146], [-121.09477155459136, 39.295750762217146], [-121.09479301226348, 39.295750762217146], [-121.09479301226348, 39.2957341563978], [-121.0948144699356, 39.2957341563978], [-121.09483592760772, 39.2957341563978], [-121.09485738527984, 39.2957341563978], [-121.09487884295196, 39.2957341563978], [-121.09487884295196, 39.295750762217146], [-121.0949217582962, 39.29578397384405], [-121.09496467364043, 39.295867002842385], [-121.09500758898467, 39.295883608630234], [-121.09500758898467, 39.29590021441414], [-121.09500758898467, 39.295933425970155], [-121.09500758898467, 39.29595003174226], [-121.09500758898467, 39.29595003174226], [-121.09500758898467, 39.29596663751041], [-121.09500758898467, 39.29599984903491], [-121.09498613131255, 39.29601645479125], [-121.09496467364043, 39.29603306054365], [-121.09494321596831, 39.29606627203665], [-121.0949217582962, 39.296082877777245], [-121.09487884295196, 39.2961160892466], [-121.09485738527984, 39.296149300700186], [-121.09483592760772, 39.29619911785106], [-121.09483592760772, 39.29621572356013], [-121.09483592760772, 39.29623232926528], [-121.09483592760772, 39.29628214635707], [-121.09483592760772, 39.29629875204645], [-121.09483592760772, 39.29631535773188], [-121.09483592760772, 39.29634856909096], [-121.09483592760772, 39.29634856909096], [-121.09483592760772, 39.29636517476459], [-121.09483592760772, 39.296381780434295], [-121.09483592760772, 39.29639838610003], [-121.09485738527984, 39.29641499176185], [-121.09485738527984, 39.296431597419726], [-121.0949217582962, 39.29646480872367], [-121.0949217582962, 39.296481414369715], [-121.0949217582962, 39.296481414369715], [-121.09496467364043, 39.29653123128426], [-121.09498613131255, 39.29654783691458], [-121.09500758898467, 39.29661425939639], [-121.09500758898467, 39.29661425939639], [-121.09505050432891, 39.29663086500702], [-121.09505050432891, 39.2966474706137], [-121.09507196200103, 39.296680681815204], [-121.09507196200103, 39.296680681815204], [-121.09507196200103, 39.296713893000984], [-121.09507196200103, 39.29674710417099], [-121.09507196200103, 39.29674710417099], [-121.09507196200103, 39.29678031532527], [-121.09507196200103, 39.29681352646377], [-121.09505050432891, 39.29684673758653], [-121.09502904665679, 39.29686334314199], [-121.09500758898467, 39.29687994869353], [-121.09500758898467, 39.29687994869353], [-121.09496467364043, 39.29687994869353], [-121.0949217582962, 39.29689655424113], [-121.0949217582962, 39.29689655424113], [-121.09490030062408, 39.29689655424113], [-121.09487884295196, 39.29689655424113], [-121.09485738527984, 39.29689655424113], [-121.09483592760772, 39.29689655424113], [-121.09483592760772, 39.29689655424113], [-121.0948144699356, 39.29689655424113], [-121.09479301226348, 39.29687994869353], [-121.09477155459136, 39.29687994869353], [-121.09475009691924, 39.29687994869353], [-121.09475009691924, 39.296913159784786], [-121.09475009691924, 39.2969297653245], [-121.09475009691924, 39.2969297653245], [-121.09472863924712, 39.29694637086027], [-121.094707181575, 39.296962976392116], [-121.09468572390288, 39.297012792964], [-121.09466426623077, 39.297062609500415], [-121.09459989321441, 39.29707921500471], [-121.09457843554229, 39.29711242600141], [-121.09455697787017, 39.297129031493874], [-121.09453552019805, 39.297145636982385], [-121.09453552019805, 39.297145636982385], [-121.09451406252593, 39.29716224246694], [-121.09449260485381, 39.297212058897045], [-121.09449260485381, 39.297245269830746], [-121.0944711471817, 39.2972784807487], [-121.09444968950957, 39.29732829709606], [-121.09442823183745, 39.297344902537304], [-121.09442823183745, 39.29736150797463], [-121.09442823183745, 39.29736150797463], [-121.09363429796905, 39.29736150797463], [-121.0934626365921, 39.29687994869353], [-121.09311931383819, 39.29697958192002], [-121.09292619478911, 39.29613269497534], [-121.09333389055938, 39.29599984903491], [-121.0931407715103, 39.29508652637064], [-121.09251849901885, 39.29445549647943], [-121.0916816498062, 39.294505314835504], [-121.09111811557803, 39.295143534206325]]
INFO:root:crop: target=a14  boundary=b14
INFO:root:id specified: 007b88f3-b6ff-4bb6-9ab5-109f41c12d50
INFO:root:crop: target=a15  boundary=b15
INFO:root:id specified: 964defe6-f84e-4da5-b469-e3e5bd0f736f
INFO:root:crop: target=a16  boundary=b16
INFO:root:id specified: ca5d4d55-cdcd-4639-b512-eaa2becc4cb7
INFO:root:expand: target=a11  p2=a13
ERROR:root:a11,a13: objects do not intersect; no operation performed
INFO:root:cut: target=a11  cutter=a6
ERROR:root:a11,a6: objects do not intersect; no operation performed
INFO:root:Sending sartopo "since" request...
INFO:root:crop: target=a14  boundary=b15
ERROR:root:a14,b15: objects do not intersect; no operation performed
INFO:root:Successful sartopo sync: timestamp=1625112551492
INFO:root:  Updating geometry for Shape:a11
INFO:root:  Updating geometry for Shape:a12
INFO:root:  Updating geometry for Shape:a14
INFO:root:  Updating geometry for Shape:a16
INFO:root:  Adding Shape:a12:1
INFO:root:  Adding Shape:a16:1
INFO:root:  Updating geometry for Assignment:a15
INFO:root:  Adding Assignment:a15:1
INFO:root:  Deleting Shape:b5
INFO:root:  Deleting Shape:a10
INFO:root:  Deleting Shape:a12
INFO:root:  Deleting Shape:b14
INFO:root:getFeatures: No features match the specified criteria.
ERROR:root:Target shape foo not found; operation aborted.
INFO:root:getFeatures: No features match the specified criteria.
ERROR:root:Target shape foo not found; operation aborted.
INFO:root:getFeatures: No features match the specified criteria.
ERROR:root:Target shape foo not found; operation aborted.
INFO:root:getFeatures: No features match the specified criteria.
ERROR:root:Cutter shape bar not found; operation aborted.
INFO:root:getFeatures: No features match the specified criteria.
ERROR:root:expand: second polygon bar not found; operation aborted.
INFO:root:getFeatures: No features match the specified criteria.
ERROR:root:crop: boundary shape bar not found; operation aborted.
INFO:root:Sending sartopo "since" request...
INFO:root:Successful sartopo sync: timestamp=1625112556728
INFO:root:  Deleting Shape:b9
INFO:root:  Deleting Shape:a11
INFO:root:  Deleting Shape:a14
INFO:root:Main thread has ended; sync is stopping...
INFO:root:SartopoSession instance deleted.
INFO:root:Sartopo syncing terminated.
PS C:\Users\caver\Documents\GitHub\sartopo_python\sartopo_python>
caver456 commented 3 years ago

These lines from the transcript, just above the 'interesting' part (the first horizontal line) seem to be the key - but why is this happening?

INFO:root:  Deleting Shape:a7
INFO:root:  Deleting Shape:a8
caver456 commented 2 years ago

Added code to dump the since response as well as the cache (.mapData dictionary) for each sync event, with filename based on the lastSuccessfulSyncTimestamp. Based on this, the since response looks correct (i.e. the objects that get deleted from the cache aren't referenced in the since response at all, and there is no 'ids' key that would indicate what should be deleted) but the code is deciding to delete them from the cache anyway. So - need to do a closer look at the cleanup code that deletes things from the cache.

caver456 commented 1 year ago

Looking again at this year-and-a-half-old issue while getting ready for a new pip release. Was not able to reproduce the issue on multiple runs of the same geometry operation test bench (geomTest.json and test.py). The only occurrences of 'not found' were for 'foo' and 'bar' as expected, and all the geometry operations appeared to run correctly. Closing this issue, since there were a LOT of changes to the code over the last year and a half, and for now we have to assume that one of those changes resolved this issue.