[mapserver-dev] Oracle CURVEPOLYGON draw Error
ow33rt5
olivierweerts at gmail.com
Wed Jan 12 08:26:12 EST 2011
Hi,
I'm posting this message because i'm having some problems with the drawing
of geometries in map server.
I'm using oracle spatial 11g with a table that contains different kind of
Geometries (POLYGON, CURVEPOLYGON, GEOMETRYCOLLECTION) and the mapfile
(shown hereunder) used for rendering those geometries is of type POLYGON.
The problem is that with some geometries (CURVEPOLYGON) i'm getting the
following error message: msDrawShape(): General error message. Only polygon
shapes can be drawn using a POLYGON layer definition.
I have tried to change the type of the mapfile from POLYGON to LINE and then
the geometry is rendered except that i'm using a hatchline style and only
the border of the geometry is drawn (no hatchlines anymore).
A way to solve the problem is to create two mapfiles (one with POLYGON style
and one with LINE and filtered the query with the geometry type) but as the
geometries that cause the problem are of type CURVEPOLYGON i was asking
myself if there wasn't a way to render it in a POLYGON type mapfile.
And if it's not possible is there's a way to render hatchlines in a LINE
type.
I am currently using mapserver 5.6.5 and the problem seems to ccured since i
have migrated from version 5.4 to the current one.
Can anyone help?
Thanks in advace,
Olivier.
the mapfile code:
LAYER
NAME "element_demande_autre"
GROUP element_demande
CONNECTIONTYPE oraclespatial
INCLUDE "includes/connectionstring.map"
STATUS ON
TYPE POLYGON
LABELITEM "LABEL"
LABELMAXSCALEDENOM 5000
MAXSCALEDENOM 10000
PROCESSING "CLOSE_CONNECTION=DEFER"
TEMPLATE templates/template_demande/template_demande.html
HEADER templates/template_demande/template_demande_autre_header.html
FOOTER templates/template_footer.html
DATA "GEOMETRIE_BUFFER FROM (SELECT D.ID,D.GEOMETRIE_BUFFER,
D.STATUT_COMMISSION_LABEL, D.COD_MAE,D.COD_SOUSMESURE_OPTION,
D.COD_EXPLOITANT, D.TYPE_SAISIE_INSTRUCTION , D.STATUT_COMMISSION,
D.COD_EXPLOITANT || '/' || D.COD_MAE || '/' || D.COD_SOUSMESURE_OPTION
LABEL, ROUND(SDO_GEOM.SDO_AREA(D.GEOMETRIE_BUFFER,0.001,'unit=SQ_M')/100, 2)
AREA FROM ELEMENT_DEMANDE_V_S D WHERE D.COD_CAMPAGNE = %COD_CAMPAGNE% AND
D.COD_EXPLOITANT != %COD_EXPLOITANT% AND ((('%TYPE_DEM_MES_CTRL%' = '0') OR
(('%TYPE_DEM_MES_CTRL%' != '0') AND (D.TYPE_SAISIE_INSTRUCTION != '0') AND
(D.STATUT_COMMISSION IS NULL OR D.STATUT_COMMISSION != '2') )) )) USING
UNIQUE ID SRID 26273 VERSION 10g"
CLASS
NAME 'Dem. autres Expl. et MAE'
#EXPRESSION ((("%TYPE_DEM_MES_CTRL%" = "0") || (("%TYPE_DEM_MES_CTRL%" =
"1") && ("[TYPE_SAISIE_INSTRUCTION]" != "0") && ("[STATUT_COMMISSION]" !=
"2") )) && ((("[TYPE_SAISIE_INSTRUCTION]" = "0") &&
("%TYPE_SAISIE_INSTR_CTRL%" = "0")) || (("[TYPE_SAISIE_INSTRUCTION]" != "0")
&& ("%TYPE_SAISIE_INSTR_CTRL%" = "1"))))
STYLE
COLOR 255 165 0
OUTLINECOLOR 255 165 0
SYMBOL 'hatchline'
ANGLE 0
SIZE 30
WIDTH 1
END
STYLE
OUTLINECOLOR 255 165 0
symbol 'pointligne'
size 2
END
LABEL
antialias TRUE
TYPE truetype
OUTLINECOLOR 0 0 0
FONT "arialbd"
SIZE 10
COLOR 255 165 0
POSITION uc
PARTIALS true
FORCE true
END
END
END
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Oracle-CURVEPOLYGON-draw-Error-tp5914498p5914498.html
Sent from the Mapserver - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20110112/fe191cda/attachment-0001.html
More information about the mapserver-dev
mailing list