Re: [postgis-users] Comparing phrases with typo error

2019-10-16 Thread schild
--SELECT 'city centre' ~* 'city centRe '; -- --Between city and centRe, there are 2 spaces. At the end, there is one --space. -- --How to make this true? SELECT 'city centre' not similar to 'city centRe '; OR SELECT 'city centre' ~* trim(regexp_replace('city centRe ', '\s+', ' ', 'g')); Cheer

Re: [postgis-users] Comparing phrases with typo error

2019-10-15 Thread Komяpa
Hi, Similarity search for text is a task of pg_trgm, not PostGIS. Here's doc with how you do it: https://www.postgresql.org/docs/12/pgtrgm.html On Mon, Oct 14, 2019 at 10:23 PM Shaozhong SHI wrote: > This is an interesting problem. > > SELECT 'city centre' ~* 'city centRe '; > > Between city a

Re: [postgis-users] Comparing phrases with typo error

2019-10-15 Thread b.j.kob...@utwente.nl
: PostGIS Users Discussion Subject: [postgis-users] Comparing phrases with typo error This is an interesting problem. SELECT 'city centre' ~* 'city centRe '; Between city and centRe, there are 2 spaces. At the end, there is one space. How to make this t

[postgis-users] Comparing phrases with typo error

2019-10-15 Thread Shaozhong SHI
This is an interesting problem. SELECT 'city centre' ~* 'city centRe '; Between city and centRe, there are 2 spaces. At the end, there is one space. How to make this true? Regards, Shao ___ postgis-users mailing list postgis-users@lists.osgeo.org h