tinyows
tinyows copied to clipboard
The prefix don't allow use the "_" character
When using a prefix name like this:
<layer ns_prefix='ambiti_amministrativi' ns_uri="http://www.regione.toscana.it/"
Tinyows give an error because the "ambiti_amministrativi" name is not compatible with the parser: ((\w:)?\w(=\w)?){1,}
If I remove the "_" using for example <layer ns_prefix='ambitiamministrativi' ns_uri="http://www.regione.toscana.it/"
It start to work.
same problem...?
https://github.com/sdikiy/tinyows/commit/2c93f1f865bd29
same problem...?
sdikiy@2c93f1f
Yes.
I test it and verify the with this patch tinyows allow to have a ns_prefix with the character "_" in it.
Without this patch the tinyows give the usual error.
Just a details. I guess this error will born only when the request is using the POST method. However the patch will resolve it.
Thx,
I ran into this issue as well when one of the examples in the "PostGIS Cookbook" book from Packt. Could this PR be merged?