Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
to OJ. > > -Jukka Rahkonen- > > > -Alkuperäinen viesti- > Lähettäjä: Sunburned Surveyor [mailto:[EMAIL PROTECTED] > Lähetetty: to 20.11.2008 23:04 > Vastaanottaja: OpenJump develop and use > Aihe: Re: [JPP-Devel] Question about GML Support in OJ and LinearRing. >

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
Martin wrote: "Isn't the problem with JDOM or pull parsers that they aren't stream oriented, so don't handle large files efficiently?" I shouldn't have lumped the two type of parsers together like that. JDOM is tree-based. Tree-Based XML APIs are easier to work with, but they read all of the XML d

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Martin Davis
One direction to try would be to replace the GML Geometry reading code in the current GML reader with the code that is now in the JTS IO package. Not sure how easy this would be, but it would be a good thing to do, and would provide LinearRing support. Isn't the problem with JDOM or pull pars

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Rahkonen Jukka
Read shapefile into OJ. -Jukka Rahkonen- -Alkuperäinen viesti- Lähettäjä: Sunburned Surveyor [mailto:[EMAIL PROTECTED] Lähetetty: to 20.11.2008 23:04 Vastaanottaja: OpenJump develop and use Aihe: Re: [JPP-Devel] Question about GML Support in OJ and LinearRing. I'm glad I reache

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
I'm glad I reached the same conclusion as you did Larry. I'll post a message to the user list to ask about how many users are using GML. SS On Thu, Nov 20, 2008 at 12:29 PM, Larry Becker <[EMAIL PROTECTED]> wrote: > Hi SS, > > I basically came to the same conclusions. I looked into implementin

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Larry Becker
Hi SS, I basically came to the same conclusions. I looked into implementing an XML pull parser version, but never got started. I managed to eventually hack up a KML Reader that kind of worked (it took me more than 20 hours), and I wasn't sure how much demand there would be for a better one. I

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
I couldn't help myself, and I looked at the code over the code for GMLReader over my lunch break. Larry is correct, the code is pretty gnarly. I believe the use of a state machine is caused by the fact that a SAX parser pushes xml events to the class. This problem could be avoided if you used somet

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
Thanks for the files Larry. There are some comments on the state machine in the Javadoc for the GMLReader class, but no diagram. I'm sure you looked at this when you were attempting to make your KML Reader. I'll take a peek at the code today after work I hope. SS On Thu, Nov 20, 2008 at 10:57 AM

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Larry Becker
You can create LinearRings by using the Geometry Converter plugin. OJ supports writing LinearRings to GML, but not reading them. See the attached files. I have looked at the GMLReader code when morphing it into the KML Reader. It isn't going to be easy to modify, and has so far resisted all my a

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
Martin, Thanks for your valuable input. I will look at the code, but I suspect the best thing to do is to load LinearRings as LineStrings and ecplain this behavior in the Javadoc. I'll report back to the list when I have a patch. SS On Thu, Nov 20, 2008 at 10:00 AM, Martin Davis <[EMAIL PROTECT

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Martin Davis
Well, it's a valid geometry type in JTS, so it should work in OJ. There may be limitations in how it can be manipulated, however - e.g. I suspect that it can't be edited (or at least that if it is it will revert to a plain ol LineString). If this is a concern, another option is to load LinearR

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
Martin, Is that a valid feature geometry type in OpenJUMP? I didn't know that it was. If it is, then this probably is a bug that needs to get fixed. SS On Thu, Nov 20, 2008 at 9:06 AM, Martin Davis <[EMAIL PROTECTED]> wrote: > Why not read the GML LinearRing into a JTS LinearRing? > > Sunburned

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Martin Davis
Why not read the GML LinearRing into a JTS LinearRing? Sunburned Surveyor wrote: > Well, it seems from a "robustness" perspective that it would be good > to read in linear rings, even if they are always represented > internally and exported as polygons. > > I will wait for other programmers to com

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
Well, it seems from a "robustness" perspective that it would be good to read in linear rings, even if they are always represented internally and exported as polygons. I will wait for other programmers to comment on what they think the best course is, then I will implement the needed changes. SS

Re: [JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Andreas Schmitz
Sunburned Surveyor wrote: Hi, > I'm working on one of the OJ 1.2 bugs I selected for squishing and I > had a quick question. > > Is the GML reader in OpenJUMP supposed to read features represented by > a LinearRing? I thought a LinearRing was only used as an exterior or > interior boundary of a

[JPP-Devel] Question about GML Support in OJ and LinearRing.

2008-11-20 Thread Sunburned Surveyor
I'm working on one of the OJ 1.2 bugs I selected for squishing and I had a quick question. Is the GML reader in OpenJUMP supposed to read features represented by a LinearRing? I thought a LinearRing was only used as an exterior or interior boundary of a polygon. A user filed a bug report because a