Re: Handling long SVG strings in Path
- From: Brandon Lewis <brandon_lewis berkeley edu>
- To: Jamie Lahowetz <jlahowetz gmail com>
- Cc: goocanvas-list gnome org
- Subject: Re: Handling long SVG strings in Path
- Date: Mon, 04 May 2009 12:18:13 -0700
Jamie Lahowetz wrote:
I am new to C and am trying to translate a Perl program I wrote over to
C.
Ouch =)
The program displays shapefiles using the path call in goocanvas and
What is a "shapefile"
utilizes svg to make them look right. The strings that the shapefiles
generate can be 1million+ characters in size so they are very large. My
question is, what is the best way to handle such a large string in C and
insert it into path? Thanks.
C isn't Perl, and turning everything into a big string is probably the wrong
approach. This isn't exactly a programming language discussion list, though, so
you might consider asking that question in another forum.
In any case, it's still not clear to me what you are doing. Are you trying to
parse SVG from a file and use goocanvas to render it? If so, there are any
number of ways to go about doing that, depending on what your ultimate goal is.
It sounds like, however, that you are trying to load a long path description
string from a file.
I would strongly advise breaking the problem down into smaller pieces
--
Jamie Ryan Lahowetz
University of Nebraska - Lincoln
Graduate Student - Geosciences
402.304.0766
jlahowetz gmail com <mailto:jlahowetz gmail com>
------------------------------------------------------------------------
_______________________________________________
Goocanvas-list mailing list
Goocanvas-list gnome org
http://mail.gnome.org/mailman/listinfo/goocanvas-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]