//step1 create a GeoTIFF
gdal_translate.exe -of Gtiff -co tfw=yes -a_ullr -5.25555900000001 52.739645 10.334585 41.047037 -a_srs EPSG:4326 "D:\imageSource.png" "D:\imageEtape1.tiff"
//step2 redraw GeoTIFF
gdalwarp.exe -co COMPRESS=LZW -r bilinear -s_srs EPSG:4326 -t_srs EPSG:900913 "D:\imageEtape1.tiff" "D:\imageEtape2.tiff"
//step3 transform the geoTiff to PNG
gdal_translate.exe -of PNG -a_ullr -5.25555900000001 52.739645 10.334585 41.047037 -a_srs EPSG:4326 "D:\imageEtape2.tiff" "D:\imageFinale.png"[/code]
我想使用Oracle的regexp_like只允许以下内容:
答案 0 :(得分:1)
如果您打算匹配连字符,则a-z
,A-Z
和0-9
之间的连字符不是字面连字符,它们是定义范围的功能字符。
您需要在[...]
:
^[a-zA-Z0-9-]*$
^
要避免空匹配,请使用
^[a-zA-Z0-9-]+$
^