- Messages
- 7
- Country
Something I discovered today is that filters don't like using single quotes for string literal in scenProc. So something like
in my script "failed" silently - it didn't give an error but gave me no objects returned where I expected lots.
Changing the single quote bridge='F' to double quote bridge="F" worked as expected.
It's a minor inconvenience becuase I'm transplanting SQL from ogr2ogr into scenProc and it turns out I can't be too lazy with my copy and pastes.
It did make me wonder how literal quotes work in scenProc : e.g. if you wish to check for a double quote would you write it like this: """ or '"' or "\"" ? I haven't tried it yet but I'm hoping I can get a "quote" from Arno
Only mention in the scenProc manual about quotes is page 18.
Code:
CreateXMLLibObj|FROMFILE="streets_pt_res.shp" AND class=6 AND bridge='F' AND osmlayer=0|{FB7F83BB-88FF-4632-A521-8DD27FA6230F}|heading|0|7.0|0.9|NOCRASH;NOSHADOW|
in my script "failed" silently - it didn't give an error but gave me no objects returned where I expected lots.
Changing the single quote bridge='F' to double quote bridge="F" worked as expected.
It's a minor inconvenience becuase I'm transplanting SQL from ogr2ogr into scenProc and it turns out I can't be too lazy with my copy and pastes.
It did make me wonder how literal quotes work in scenProc : e.g. if you wish to check for a double quote would you write it like this: """ or '"' or "\"" ? I haven't tried it yet but I'm hoping I can get a "quote" from Arno
Only mention in the scenProc manual about quotes is page 18.