Ticket #541 (closed bug: fixed)
Drawing a single point takes inordinate amount of time
| Reported by: | crschmidt | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4 Release |
| Component: | general | Version: | |
| Keywords: | Cc: | ||
| State: |
Description (last modified by crschmidt) (diff)
The following chunk of GML takes a huge amount of time to render. It seems that the drawCircle function in Renderer.SVG is taking this time:
drawCircle: function(node, geometry, radius) {
node.setAttributeNS(null, "cx", geometry.x); node.setAttributeNS(null, "cy", geometry.y); node.setAttributeNS(null, "r", radius);
},
commenting out the 'r' setAttribute causes the layer to load quickly, but to not show anything (since it has no radius).
I don't get it.
<?xml version='1.0' encoding="utf-8" ?>
<wfs:FeatureCollection
xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:gml="http://www.opengis.net/gml"
>
<gml:featureMember>
<ms:PointsOfInterest>
<ms:msGeometry>
<gml:Point srsName="EPSG:4326">
<gml:coordinates>3.059317, 36.768121 </gml:coordinates>
</gml:Point>
</ms:msGeometry>
</ms:PointsOfInterest>
</gml:featureMember>
</wfs:FeatureCollection>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

