I had a similar situation.  I created a vrt file that pointed to my csv
file, then ran a one line ogr script to convert the vrt into a shapefile,
which GeoServer read fine.  My vrt and ogr command line are as follows:

<OGRVRTDataSource>
    <OGRVRTLayer name="dataout">
        <SrcDataSource>C:\data\dataout.csv</SrcDataSource>
<GeometryType>wkbPoint</GeometryType>
<GeometryField encoding="PointFromColumns" x="x" y="y" z="value"/>
    </OGRVRTLayer>
</OGRVRTDataSource>

ogr2ogr -overwrite -f "ESRI_Shapefile" -a_srs EPSG:26957
C:\data\interp\airtemps.shp C:\data\dataout.vrt



- John


John Callahan
Research Scientist
Delaware Geological Survey
University of Delaware
http://www.dgs.udel.edu
[email protected]



On Thu, Apr 4, 2013 at 10:41 AM, Martijn Coenen - Covadis <
[email protected]> wrote:

>  Hello everyone,****
>
> ** **
>
> Some time ago I was asked if it was possible to import CSV and/or XLS
> files into Geoserver. This because there was some 3rd party software that
> was able to just that, but requirements stated Geoserver has to be used for
> presentation of the data. I’m doing some research on this subject but was
> wondering what this community has to say on this subject. Would it be an
> absolute no-go or are there some smart plugins or ways to do this? Has
> anyone done it before? If so, how? ****
>
> ** **
>
> Best regards,
> Martijn Coenen****
>
> ** **
>
> ** **
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to