MapGuide Open Source:  Home |  Download |  Internals

Ticket #6 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

geometry buffer operation fails on curvepolygon

Reported by: pagameba Assigned to: tomfukushima
Priority: high Milestone: 1.2
Component: Feature Service Version: 1.1.0
Severity: major Keywords:
Cc: jbirch External ID: 916050

Description

I have some data that is correctly rendering as polygons but does not buffer correctly using the AJAX viewer buffer operation. I have dumped the WKT of the feature:

CURVEPOLYGON ((-123.94884211782004 49.168238831862574 (LINESTRINGSEGMENT (-123.94854780008535 49.168268848308159, -123.94825348198435 49.1682988640056, -123.94829573817191 49.168477224793179, -123.94888439769528 49.168417203908902, -123.94884211782004 49.168238831862574))))

Buffering this geom results in a buffer that appears to be a circle around one point in the polygon (I didn't check but I'd guess its the first coordinate).

I'm not sure what component to stick this in. There isn't anything for the Geometry API so I'm sticking it in the feature service, please reassign as appropriate.

Attachments

ticket6.GIF (2.2 kB) - added by tomfukushima on 03/08/07 17:11:43.
Example of buffering the geometry from the SDF

Change History

02/27/07 13:00:30 changed by anonymous

Paul, do you have an SDF3 (or another data file that MGOS recognizes) that contains the linestring above? This may save us a step of having to create an app that uses the above.

02/27/07 13:04:38 changed by jasonbirch

Go ahead and forward the dataset Paul, with the understanding that it is only for diagnosing this problem.

02/27/07 13:05:49 changed by jbirch

  • cc changed from jason.birch@nanaimo.ca to jbirch.

02/27/07 14:08:49 changed by pagameba

Anonymous Bob (?) should learn to log into Trac!!!

With permission from Jason, you can download the file (temporarily) from:

http://www2.dmsolutions.ca/netbin/mapguide/ticket6.sdf (16M)

Please let me know when you have the file and I will remove it from the download site. I don't really want Jason's sdf floating around forever and I don't have the tools to extract a single feature from an SDF as a new SDF.

03/08/07 17:11:43 changed by tomfukushima

  • attachment ticket6.GIF added.

Example of buffering the geometry from the SDF

03/08/07 17:13:35 changed by tomfukushima

  • external_id set to 916050.

My bad, I didn't realize that I had to login last time; Trac obviously doesn't know everything.

I've got the file now. Thanks.

I found the line segment (it seems to be the top part of two joined line segments that are almost vertical) in the SDF file that seems to correspond to the geometry above, but putting a 1 meter buffer around it works fine. I have attached a picture of the buffer. What size buffer are you creating, this can affects the behavior of the buffer algorithm?

03/08/07 17:13:51 changed by tomfukushima

  • owner set to tomfukushima.

03/08/07 17:17:54 changed by tomfukushima

Oh wait, I selected the wrong feature class for the layer. Let me try one of the polygon classes.

03/08/07 18:15:27 changed by tomfukushima

Ok, reproduced with the "default:assessment" layer.

03/08/07 18:22:40 changed by jbirch

Ok, no comments about my data :)

I dont think it should be curvepolygons anyway. I think that dataset is in LL, and I would have stroked any arcs on the way there; they don't tend to do well in LL.

It's probably set to curvepolygon because I chose a not-very-appropriate setting in FME.

I'd be interested in knowing if the same problem happens in a projected CS.

04/04/07 00:23:23 changed by tomfukushima

04/04/07 22:41:48 changed by anonymous

04/07/07 12:10:00 changed by tomfukushima

  • status changed from new to closed.
  • resolution set to fixed.