7arly ess i!portng -SM "aa shoe" "issi!ilarites in he n'!5er o geo!eries in he o "aa5ases. 7arly ess i!portng -SM "aa shoe" "issi!ilarites in he n'!5er o geo!eries in he o "aa5ases. #s e8plain
#s e8plaine" in paragraphe" in paragraph C.2.2C.2.2, an -SM ML fle or!a is a lis o insances o hree "aa pri!ites, an -SM ML fle or!a is a lis o insances o hree "aa pri!ites $No"es, &ays an" elatons% associae" ih Tags. The soare 'se" or he i!por is os!2pgs<l or $No"es, &ays an" elatons% associae" ih Tags. The soare 'se" or he i!por is os!2pgs<l or
CF CF
NoSQL spatal NoSQL spatal
+osGIS an" he -SMI!por class ha is incl'"e" in Neo;6Spatal. Inital res'ls o he i!por ess shoe" +osGIS an" he -SMI!por class ha is incl'"e" in Neo;6Spatal. Inital res'ls o he i!por ess shoe" "i4erences in he n'!5er o generae" geo!eries in he o "aa5ases hile 'sing he sa!e $-SM% inp' "i4erences in he n'!5er o generae" geo!eries in he o "aa5ases hile 'sing he sa!e $-SM% inp' fle. The "i4erences or he
fle. The "i4erences or he Me"e!5li( "aase, gro'pe" 5y geo!ery, are gien inMe"e!5li( "aase, gro'pe" 5y geo!ery, are gien in Ta5le 1ETa5le 1E.. Table 1A: Enital resuls i!portng B$ /le
Table 1A: Enital resuls i!portng B$ /le
,,nnppuut t >>lle e 66SS22// DDaattaaaassee +
+eeoommeettrryy ;;oouunntt ++eeoommeettrryy PPoosstt++,,SS ""eeoo))** N
Noo""eess 11EEHHDD00 +o+oiinnss 11DDHH 11DDHH &
&aayyss 22DD1100 LLiinneess 11000000 221100EE
eellaattoonnss 00 ++oollyyggoonnss 11HHCC00 CCEE
)sing he sa!e inp' fle, he Neo; i!por ool creaes !ore lines in he "aa5ase, hile he +osGIS )sing he sa!e inp' fle, he Neo; i!por ool creaes !ore lines in he "aa5ase, hile he +osGIS i!por ools generae !ore polygons. The "i4erences are is'ali9e" or he Me"e!5li( "aase 'sing i!por ools generae !ore polygons. The "i4erences are is'ali9e" or he Me"e!5li( "aase 'sing GeoSerer, high6resol'ton ill'sratons are incl'"e" in #ppen"i8 KI.
GeoSerer, high6resol'ton ill'sratons are incl'"e" in #ppen"i8 KI.
#s seen in he ill'sraton a5oe, !os &ays are inerpree" 5y +osGIS as a polygon hile Neo; assigns #s seen in he ill'sraton a5oe, !os &ays are inerpree" 5y +osGIS as a polygon hile Neo; assigns he! as a line. The "i4erences are a res'l o ho he "aa pri!ites are !o"ele" an" caegori9e" 5y he he! as a line. The "i4erences are a res'l o ho he "aa pri!ites are !o"ele" an" caegori9e" 5y he i!por ools. To pheno!ena can
i!por ools. To pheno!ena can 5e i"entfe"5e i"entfe" 1.
1. The e8The e8racerace" -SM fles con" -SM fles conains !ains !issinissing No"es ang No"es an" &ays. Th" &ays. These erese errors are !arors are !anage" in "nage" in "i4erei4erenn ays 5y he i!por ools an"
ays 5y he i!por ools an" 2.
2. The The o i!poo i!por oor ools 'se ls 'se heir heir 'ni<'e 'ni<'e inerinerpreatpreaton o hon o he -SM "e -SM "aa !o"aa !o"el.el. Phenomenon .
Phenomenon . The
The frsfrs pro5lpro5le! has e! has o "o o "o ih inconsih inconsisenisencies in cies in he "onloahe "onloa"e" or "e" or genegenerae" ML rae" ML flfle. The e. The co!plco!pleeee "aase conains he entre plane $plane.os!% hich is a h'ge fle. Na'rally, a s'5se o a s!aller area is "aase conains he entre plane $plane.os!% hich is a h'ge fle. Na'rally, a s'5se o a s!aller area is "onloa"e" or e8race", in his case a s'5se o he Neherlan"s. By "ea'l, peror!ing a 5o'n"ing 5o8 "onloa"e" or e8race", in his case a s'5se o he Neherlan"s. By "ea'l, peror!ing a 5o'n"ing 5o8 e8racton ih -s!osis preseres reerences in ays or relatons insi"e he 5o'n"ing 5o8 o no"es or e8racton ih -s!osis preseres reerences in ays or relatons insi"e he 5o'n"ing 5o8 o no"es or !e!5ers ha lie o'si"e he 5o'n"ing 5o8. 7ntte
!e!5ers ha lie o'si"e he 5o'n"ing 5o8. 7nttes are reerring o oher enttes ha "o no e8is in hes are reerring o oher enttes ha "o no e8is in he fle. This is ;'s ho he soare or(s i fnishes processing No"es 5eore i or(s on he &ays an" fle. This is ;'s ho he soare or(s i fnishes processing No"es 5eore i or(s on he &ays an" elatons. $co!!ens.g!ane.org 2011%
elatons. $co!!ens.g!ane.org 2011%
There are seeral optons aaila5le o f8 his iss'e. The si!ples sol'ton $i% is o "rop he consrain There are seeral optons aaila5le o f8 his iss'e. The si!ples sol'ton $i% is o "rop he consrain ro! he "aa5ase aer i!portng. This is !ore o a hac( han a sol'ton an" !igh lea" o oher iss'es. ro! he "aa5ase aer i!portng. This is !ore o a hac( han a sol'ton an" !igh lea" o oher iss'es. #noh
#noher possi5ier possi5iliy $ii% is o a"" heliy $ii% is o a"" he c,i$Dnco$,etentities=tr)ec,i$Dnco$,etentities=tr)e opton o he 5o'n"ing 5o8 as(. This ill opton o he 5o'n"ing 5o8 as(. This ill !o"iy he enttes reerring o non6e8isen enttes o ens're reerental inegriy. &ays ill 5e !o"ife" !o"iy he enttes reerring o non6e8isen enttes o ens're reerental inegriy. &ays ill 5e !o"ife"
0 0
Figure 1<: Enital i!por B$ daa Figure 1<: Enital i!por B$ daa
Neo; Neo; +osGIS +osGIS -erlap -erlap Neo; Neo; +osGIS +osGIS -erlap -erlap M
o incl'"e only No"es insi"e he area an" elatons are !o"ife" o only incl'"e ali" !e!5ers. -5io'sly o incl'"e only No"es insi"e he area an" elatons are !o"ife" o only incl'"e ali" !e!5ers. -5io'sly hey ill no longer 5e i"entcal o he original ays ro! he inp' plane.os! fle. To presere he original hey ill no longer 5e i"entcal o he original ays ro! he inp' plane.os! fle. To presere he original geo!e
geo!eries ro! he inp' ries ro! he inp' ffle $iii%, hele $iii%, he co$,eteBa2s=tr)eco$,eteBa2s=tr)e an" an" co$,eteAe,ations=tr)eco$,eteAe,ations=tr)e optons co'l" 5e 'se" optons co'l" 5e 'se" insea". This ill incl'"e all !issing no"es o'si"e he 5o'n"ing 5o8, 5' ill slo "on i!portng insea". This ill incl'"e all !issing no"es o'si"e he 5o'n"ing 5o8, 5' ill slo "on i!portng enor!o'sly. The secon" opton $ii% is chosen $reerre" o as f8 1% f8ing he frs i"entfe" pheno!enon enor!o'sly. The secon" opton $ii% is chosen $reerre" o as f8 1% f8ing he frs i"entfe" pheno!enon hen -SM fles hae !issing no"es an" ays.
hen -SM fles hae !issing no"es an" ays. Phenomenon 0
Phenomenon 0
The secon" pro5le! is ha he -SM "aa !o"el co'l" 5e inerpree" in "i4eren ays. +aragraph
The secon" pro5le! is ha he -SM "aa !o"el co'l" 5e inerpree" in "i4eren ays. +aragraph C.2.2C.2.2 J J page
page 1H 1H J gies an e8planaton o he -SM "aa pri!ites an" heir associatons. @or e8a!ple, &ays !ay J gies an e8planaton o he -SM "aa pri!ites an" heir associatons. @or e8a!ple, &ays !ay 5e 3open3 here hey "o no share a frs an" las No"e, or 3close"3 here hey "o. In so!e cases a close" 5e 3open3 here hey "o no share a frs an" las No"e, or 3close"3 here hey "o. In so!e cases a close" &ay ill 5e inerpre
&ay ill 5e inerpree" as a e" as a 3close3close" line3 an" in " line3 an" in oher insoher insances as an area an" in ances as an area an" in so!e caseso!e cases as s as 5oh a5oh a close" lin
close" line an" an e an" an area. I is necessararea. I is necessary o y o ineinerpre an" reierpre an" reie he Tags associae he Tags associae" ih he &ay " ih he &ay an" inan" in so!e cases he Tags associae" ih any elatons associae" ih he &ay. Besi"es his, areas can also 5e so!e cases he Tags associae" ih any elatons associae" ih he &ay. Besi"es his, areas can also 5e "escri5e" 'sing a elaton.
"escri5e" 'sing a elaton.
-s!2pgs<l "istng'ishes 5eeen ays 'sing a confg'raton fle calle" he 3"ea'l.syle3. This fle can -s!2pgs<l "istng'ishes 5eeen ays 'sing a confg'raton fle calle" he 3"ea'l.syle3. This fle can 5e o'n" in #ppen"i8 KIII. The las col'!n o he i!por syle fle conrols heher a &ay is a line6sring or 5e o'n" in #ppen"i8 KIII. The las col'!n o he i!por syle fle conrols heher a &ay is a line6sring or an area. I any
an area. I any o he Tags on o he Tags on an o5;ec are !ar(ean o5;ec are !ar(e" as " as 3polyg3polygon3, he &ay is consi"ereon3, he &ay is consi"ere" as " as a can"i"aa can"i"ae ore or polygon ren"ering. I i is close", i is reae" as an area i i is open, i is reae" as a line6
polygon ren"ering. I i is close", i is reae" as an area i i is open, i is reae" as a line6sring. -n op osring. -n op o ha, he area ag conrols his 5eha
ha, he area ag conrols his 5ehaior "ireclyior "irecly area=2esarea=2es alays pro"'ces an area. In so!e cases he alays pro"'ces an area. In so!e cases he "ecision is "iRc'l or e8a!ple, he highay Tag has 5oh areas $pe"esrian areas% an" close" linear "ecision is "iRc'l or e8a!ple, he highay Tag has 5oh areas $pe"esrian areas% an" close" linear ea'r
ea'res $ro'n"a5es $ro'n"a5o's%o's%. The . The practcpractce on e on he !ain !ap is he !ain !ap is o se o se he i!por syle o linear an" 'sehe i!por syle o linear an" 'se area=2esarea=2es ih area o5;ecs. elatons are no conrolle" ih a confg'raton fle 5' are har"6co"e" in he soare. ih area o5;ecs. elatons are no conrolle" ih a confg'raton fle 5' are har"6co"e" in he soare. -SMI!porer has a si!pler approach. #ll &ays are consi"ere" as a line6sring e8cep or he ones ha are -SMI!porer has a si!pler approach. #ll &ays are consi"ere" as a line6sring e8cep or he ones ha are close" an" no agge" ih
close" an" no agge" ih ig:a2=ig:a2=. This clarifes he geo!ery "i4erences 5' no all o he! an error. This clarifes he geo!ery "i4erences 5' no all o he! an error as o'n" in he -SMI!porer class or he close" line logic.
as o'n" in he -SMI!porer class or he close" line logic.
Beca'se o he os!2pgs<l a"anages, i as "eci"e" o a";'s he -SMI!porer class o rese!5le he Beca'se o he os!2pgs<l a"anages, i as "eci"e" o a";'s he -SMI!porer class o rese!5le he os!2pgs<l ool. @irs, he 5'g in he i!porer class nee"s o 5e f8e". #s seen in
os!2pgs<l ool. @irs, he 5'g in he i!porer class nee"s o 5e f8e". #s seen in Snippe D,Snippe D, he co"e 'ses an he co"e 'ses an e<'aliy operaor
e<'aliy operaor$revode == ;irstode$revode == ;irstode o chec( heher he sar no"e an" en" no"e are e<'al. &hen he o chec( heher he sar no"e an" en" no"e are e<'al. &hen he o5;ecs
o5;ecs$revode$revode an" an" ;irstode;irstode hae he sa!e al'e, his co!parison o'l" ail 5eca'se he 33 operaor is hae he sa!e al'e, his co!parison o'l" ail 5eca'se he 33 operaor is e8pec
e8pece" o chec( i he e" o chec( i he ac'al o5;ac'al o5;ec insanec insances are he sa!e or no. # ces are he sa!e or no. # 5e:er opto5e:er opton o'l" 5e o n o'l" 5e o chec(chec( heher he no"es hae he sa!e al'e. The =aa !eho" e<'als$% is presen in he
heher he no"es hae he sa!e al'e. The =aa !eho" e<'als$% is presen in he Cava.,ang.OCectCava.,ang.OCect class class an" is e8pece" o chec( or he e<'ialence o he sae o o5;ecs 5y al'e co!parison. ence, he an" is e8pece" o chec( or he e<'ialence o he sae o o5;ecs 5y al'e co!parison. ence, he co!parison 5eeen
co!parison 5eeen ;irstode;irstode an" an" $revode$revode o'l" pass i hey hae he sa!e al'e. The enhance" co"e is o'l" pass i hey hae he sa!e al'e. The enhance" co"e is "isplaye" in
"isplaye" in Snippe H Snippe H..
The -SMi!porer class nee"s so!e !o"ifcaton
The -SMi!porer class nee"s so!e !o"ifcatons o inerpre he -SM "aa !o"el in e8acly he sa!es o inerpre he -SM "aa !o"el in e8acly he sa!e ay as -s!2pgs<l. To achiee his, e8ra co"e is a""e" o he -MSI!porer class o 'se he confg'raton ay as -s!2pgs<l. To achiee his, e8ra co"e is a""e" o he -MSI!porer class o 'se he confg'raton fle
fle 3"ea'3"ea'l.sl.syle3 ro! os!2pgyle3 ro! os!2pgs<l. # s<l. # ne satc class is creaene satc class is creae" or " or his resehis research calle" Sylearch calle" Syleea"erea"er he he so'rce co"e is incl'"e" in #ppen"i8 I. This class rea"s he confg'rat
so'rce co"e is incl'"e" in #ppen"i8 I. This class rea"s he confg'raton fle an" creaes hree arrayliss aon fle an" creaes hree arrayliss a lis o Tags ha "efne he poins, a lis ih Tags ha
lis o Tags ha "efne he poins, a lis ih Tags ha "efne line"efne lines>pos>polygons an" a lis ih Tags ha lygons an" a lis ih Tags ha areare can"i"aes or polygons. *'ring he i!por, he ags o eery no"e or ay are e8a!ine" agains hese liss. can"i"aes or polygons. *'ring he i!por, he ags o eery no"e or ay are e8a!ine" agains hese liss. I a
I a ag appeag appears in ars in he arrhe arraylaylisis, , he no"e or he no"e or ay is ay is proprocescessese".". Snippe ESnippe E shos he pars o he co"e shos he pars o he co"e
1 1 ode ;irstode = getOSModendre;7 cangesetode@ ode ;irstode = getOSModendre;7 cangesetode@ ode $revode = getOSModendre;7 cangesetode@ ode $revode = getOSModendre;7 cangesetode@ i;
i; $revode.eL)a,s;irstode :a2odes.siPe >= ! Q $revode.eL)a,s;irstode :a2odes.siPe >= ! Q geoetr2
geoetr2 == TR33OROTR33ORO@@
$nippe ?: 8losed line logic 'proper* $nippe ?: 8losed line logic 'proper*
ode ;irstode =
ode ;irstode = getOSModendre;7 cangesetode@getOSModendre;7 cangesetode@ ode $revode = getOSModendre;7 cangesetode@ ode $revode = getOSModendre;7 cangesetode@ i;
i; ;irstode H= ;irstode H= n),,n),, $revode == ;irstode Q $revode == ;irstode Q geoetr2
geoetr2 == TR33OROTR33ORO@@
$nippe >: 8losed line logic 'i!proper* $nippe >: 8losed line logic 'i!proper*
NoSQL spatal NoSQL spatal
$reerre" o as f8 2% ha "istng'ish 5eeen No"es an" &ays 'sing he confg'raton fle. $reerre" o as f8 2% ha "istng'ish 5eeen No"es an" &ays 'sing he confg'raton fle.
Th
The e !o!o"i"ifefe" " paparrs s o o hhe e -S-SMIMI!p!pororeer r clclasass s cacan n 5e 5e oo'n'n" " in in #p#ppepen"n"i8 i8 . . ThThe e ''ll ll claclass ss $s$seeee org.neo!C.gis.s$atia,.os.OSMD$orter
org.neo!C.gis.s$atia,.os.OSMD$orter% is aaila5le online a% is aaila5le online a h:p>>gih'5.co!>5ar5aas>gi!a6neo;essh:p>>gih'5.co!>5ar5aas>gi!a6neo;ess..
#er correctng he iss'es "escri5e" a5oe, he n'!5er o generae" geo!eries in he o "aa5ases #er correctng he iss'es "escri5e" a5oe, he n'!5er o generae" geo!eries in he o "aa5ases hile 'sing he sa!e $-SM% inp' fle is e8acly he sa!e.
hile 'sing he sa!e $-SM% inp' fle is e8acly he sa!e. Ta5le 1Ta5le 1 shos he res'ls o he Me"e!5li( shos he res'ls o he Me"e!5li( "aase ih he inital i!por, he correctng f8es an" he fnal n'!5er o geo!eries. igh6resol'ton "aase ih he inital i!por, he correctng f8es an" he fnal n'!5er o geo!eries. igh6resol'ton ill'sratons are incl'"e" in #ppen"i8 KII.
ill'sratons are incl'"e" in #ppen"i8 KII. Table 1C: Final resuls i!portng B$ /le
Table 1C: Final resuls i!portng B$ /le 'ede!bli(*'ede!bli(* ,ni%al
,ni%al ??ii .. ??ii 00 ?inal > . @ 0/?inal > . @ 0/ +ri!ite
+ri!ite +o+ossGIGISS NeNeoo;; PPoosstt++,,SS ""eeoo))** PPoosstt++,,SS ""eeoo))** PoPostst+,+,SS "e"eo)o)** +oins +oins 11DDHH 11DDHH 11DDHH 11DDHH 11DDHH 11DDHH 11DDHH 11DDHH Lines Lines 11000000 221100EE DD 221100CC 11000000 DDEE DD DD +olygons +olygons 11HHCC00 CCEE 11HH11EE CCHHFF 11HHCC00 11HH2222 11HH11EE 11HH11EE
#lso in #ppen"i8 KII he res'ls o all "aases an" he correce" n'!5ers are shon. The -SM "aa is no #lso in #ppen"i8 KII he res'ls o all "aases an" he correce" n'!5ers are shon. The -SM "aa is no rea"y or he ess.
rea"y or he ess.