It's been noted in the past (and the note in the r.in.wms output) that the fallback parsing (when xml2 program is not found) doesn't work well for some WMS servers.

I bundle an xml2 binary in my OSX GRASS binaries. You can easily build one yourself. Grab the source from:

http://ofb.net/~egnor/xml2/

Get the .3 source, .4 is exactly the same source, but with a configure, BUT it requires pkg-config (yuck!).

edit the makefile (there's no configure in .3), change the CFLAGS and LDLIBS lines to match:

CFLAGS = -Os -I/usr/include/libxml2/libxml -I/usr/include/libxml2
LDLIBS = -lxml2 -lz -lpthread -liconv -lm

Then make. Then copy it to /usr/local/bin. Or use the OSX app bundle.sh to copy it to the GRASS package/bin.

On Jul 9, 2009, at 8:28 AM, Agustin Diez Castillo wrote:

The 'xml2' program was not found. Proceeding with internal XML parsing which may not be as reliable.
ERROR: Parsing XML file

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal? Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy


_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to