[mapserver-users] problem with PointFromColumns

Josh Jordan outerspaceman81 at yahoo.com
Tue Feb 22 21:16:10 EST 2011


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


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110222/fd6e1b44/attachment.html


More information about the mapserver-users mailing list