Yes, please post the XML file. I'm guessing here, but one reason for the difference might be that the XML file specifies a different PrecisionModel. Martin...
523
Jonathan Aquino
jonathan_aquino
Jan 12, 2004 6:08 pm
jomora3, looks like you've found a bug occurring in the following code: if (columnType == AttributeType.INTEGER) { Object a = feature.getAttribute(u); if (a ==...
524
Paul Ramsey
pwramsey3
Jan 12, 2004 6:38 pm
... Well, most of the spatial code for this is complete and scattered around JUMP and JTS. Most of the work would be figuring out the database. It would have...
525
yuren78
Jan 12, 2004 7:09 pm
Hi, Martin and Jon, Thanks for your guys' quick reply.. Note, though I have <precisionModel scale="1.0" offsetx="0.0" offsety="0.0"/>, but in real test, I...
526
Jonathan Aquino
jonathan_aquino
Jan 12, 2004 7:13 pm
FYI GEOS is a port of JTS to C++: http://geos.refractions.net/ ... From: yuren78 [mailto:jsun@...] Sent: Monday, January 12, 2004 11:10 AM To:...
527
Martin Davis
mbdavis@...
Jan 12, 2004 7:24 pm
If you use a Fixed Precision model, JTS will compute an answer without failures. However, this isn't the answer to your original problem. It may still be...
528
Martin Davis
mbdavis@...
Jan 12, 2004 10:01 pm
... This is obviously unpleasant. Luckily, JTS provides a much cleaner solution: GeometryFactory fact = new GeometryFactory(); Point p1 = fact.createPoint(new...
529
jomora3
Jan 13, 2004 9:54 am
Hello Jon, I have a shape with rivers. I can open this shape (riosz.shp) with JUMP. I can save this dataset as JML file (riosz), and I can open this JML file...
530
yuren78
Jan 13, 2004 2:14 pm
Hi, Martin , Thanks for the reply!!! Here, I have another question on your comments: it's not possible to compute exact results in a limited-precision model of...
531
kvdijken
Jan 13, 2004 2:30 pm
... am ... We use the cgal library a lot (http:\92;www.cgal.org), which (when used with the appropriate number models) is absolutely robust. It has a steap...
532
yuren78
Jan 13, 2004 2:52 pm
Thanks for the information.. J.W. ... I ... I ... used...
533
Martin Davis
mbdavis@...
Jan 13, 2004 4:31 pm
Unfortunately, in the nature of robustness problems there's not really any general rule for dealing with them. (If there was this would be a more tractable...
534
yuren78
Jan 13, 2004 4:46 pm
Thanks, Martin , Your answer to my question is very helpful.. J.W. ... really any general rule for dealing with them. (If there was this would be a more...
535
Jonathan Aquino
jonathan_aquino
Jan 13, 2004 6:18 pm
(moving to JUMP mailing list) Hooray! Found the bug. The JML Reader was reading integers as Long objects, leading to the ClassCastException. jomora3 -- if you...
536
jomora3
Jan 13, 2004 7:53 pm
Hello Jon, Please, send me the files required for fix this bug or send me a copy of JUMP with this bug fixed because is very important for my work that the...
537
Jonathan Aquino
jonathan_aquino
Jan 13, 2004 8:13 pm
OK, the fixed GMLInputTemplate.java is below. The fix is simply changing "Long" to "Integer". Yes there has been some work done with DXF -- see...
538
chrisgokey
Jan 13, 2004 11:39 pm
I am trying define geometries have sets of coordinates in Latitudes and Longitudes format (-180 to 180, -90 to 90). Consider this: Geometry g = new...
539
Jonathan Aquino
jonathan_aquino
Jan 13, 2004 11:57 pm
I wouldn't think any normalization or conversion need be done. I pasted your WKT into JUMP (great tool for visualizing WKT, by the way) by: * copying the WKT...
540
Michael Michaud
michael.michaud@...
Jan 14, 2004 12:27 am
I think there is no problem with lat/lon if all the geometries (stored and computed) are entirely included in [-180,180] and [-90,90], but how do you describe...
541
Jonathan Aquino
jonathan_aquino
Jan 14, 2004 12:36 am
JTS doesn't understand lat/lon, just x/y, so an exception won't be generated, but yes weird things may happen. I'm glad you brought it up. Hopefully your...
542
chrisgokey
Jan 14, 2004 1:40 am
Ok, I want to make sure I understand now... :) Consider this geometry: Geometry g = new WKTReader().read("POLYGON((160.0 -12.0,105.0 -12.0,105.0 -17.0,160.0...
543
Martin Davis
mbdavis@...
Jan 14, 2004 1:47 am
JTS generally assumes that it's coordinates lie in an infinite Cartesian plane. This can cause problems if you want to use geographic coordinates, depending...
544
Martin Davis
mbdavis@...
Jan 14, 2004 1:48 am
Depends what you mean by "handle", but in general probably not. Martin Davis, Senior Technical Architect Vivid Solutions Inc. Suite #1A-2328 Government Street...
545
chrisgokey
Jan 14, 2004 1:53 am
Thanks, I installed JUMP and followed your instructions. Very nice. Is there a way that I can apply a image of a map, so I can actually where the polygon...
546
Martin Davis
mbdavis@...
Jan 14, 2004 1:55 am
... Only if you have vector data for the map or if it's available via WMS. Pure imagery is on the ToDo list ... Not sure what you mean by this. You can have...
547
chrisgokey
Jan 14, 2004 1:56 am
Well, by handle, I mean computer intersects, overlaps, etc of this geometry with another? Chris...
548
Martin Davis
mbdavis@...
Jan 14, 2004 2:00 am
See my previous post - these kinds of things are problematic if you're not working in a Cartesian coordinate system. Martin Davis, Senior Technical Architect ...
549
Paul Ramsey
pwramsey3
Jan 14, 2004 2:02 am
As Martin said, the computations are done in the cartesion plane. So, since you are thinking about lat/lon, probably interested in the spherical, not the...
550
chrisgokey
Jan 14, 2004 3:07 am
This maybe a stupid question -- but I'll ask anyhow :) If GEOS is JTS ported to C++, does PostGIS suffer the same problem? So given this, doesn't sound like I...
551
Norman Vine
nhv
Jan 14, 2004 3:30 am
... AFAIK in order todo this in a general way with any of the OpenSource packages that I know, you will have to reproject your geometries on the fly to a...