Hi every body,
I am tring to understand ctypes with grass and I got the following message
when i use thing program line:
vect.Vect_open_old(input,mpaset)
illegal filename: character ?? not allowed
dbiv@??
how can resolve this problem.
Bye
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/python-ctypes-vect-open-old-tp5507145p5507145.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
Hello,
remember - You are writing an C application in Python. You still have
to worry about pointers and memory allocation, still in a bit more
relaxed way.
Try to read my (unfinished) code at [1]. Provided example opens vector
map for reading, goes over all vector multilines (lines with identical
CAT) and seeks for multiline start/end. If one is found, it rearranges
all multilines to be in incremental order from start to end. Works
only if multilines are simple (i.e. stright streets without double
lines, self-crossings etc.). It's not a good example of Python code,
but it works.
Hope this helps,
Maris.
1. http://www.gisnet.lv/trac/gisnet/browser/gisnettools/v.reorder_line_segments.py
PS. If this tool fails with FATAL EGGOGG, remove corssection check
around line 279, still then it might go in to infinite loop, if
multiline has a loop in middle.
2010/9/7, neuba <danhofr@gmail.com>:
Hi every body,
I am tring to understand ctypes with grass and I got the following message
when i use thing program line:
vect.Vect_open_old(input,mpaset)
illegal filename: character ?? not allowed
dbiv@??
how can resolve this problem.
Bye
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/python-ctypes-vect-open-old-tp5507145p5507145.html
Sent from the Grass - Dev mailing list archive at Nabble.com.
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev