I am using a VRT layer to show labels from a csv file. I can get
encoding='WKT' to work but encoding='PointFromColumns' does not draw anything.
In both cases, I can use ogrinfo -al on the vrt section and it works.
When I replace this line-<GeometryField encoding='WKT' field='WKT'/>
With this line-<GeometryField encoding='PointFromColumns' x='CLON'
y='CLAT'/>Mapserver can no longer render it.
csv
file:"NAME","CLON","CLAT","WKT""Vernon","-5922308","3647303","POINT(-5922308
3647303)""Rapides","-5847278","3659270","POINT(-5847278
3659270)""Grant","-5853735","3710003","POINT(-5853735
3710003)""Avoyelles","-5786275","3645222","POINT(-5786275 3645222)"
layer section in mapfile:
LAYER CONNECTION "<OGRVRTDataSource> <OGRVRTLayer
name='county'> <SrcDataSource>county.csv</SrcDataSource> <GeometryType>wkbPoint</GeometryType> <LayerSRS>+proj=merc
+a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=-40 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m
+nadgrids=@null +wktext +no_d</LayerSRS> <GeometryField
encoding='PointFromColumns' x='CLON'
y='CLAT'/> </OGRVRTLayer> </OGRVRTDataSource>" CONNECTIONTYPE OGR NAME
"Counties_Labels" STATUS DEFAULT TYPE ANNOTATION PROJECTION"+proj=merc
+a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=-40 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m
+nadgrids=@null +wktext +no_d" END LABELITEM "NAME" CLASS LABEL OUTLINECOLOR
-1 -1 -1 FONT FreeSans SIZE 10 TYPE truetype COLOR 0 0 0 FORCE
TRUE END ENDEND
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users