[Qgis-user] QGIS Server and CSV-files

Tyler Mitchell info at locatepress.com
Mon Oct 29 10:41:35 PDT 2012


I haven't tried it but you should be able to do it using QGIS's builtin OGR functionality.  You would have to create a XML "wrapper" that defines how to load the CSV file (eg. which columns are x and y).
It's described well at http://gdal.org/ogr/drv_csv.html

Then you would load the XML/VRT file into QGIS instead of the CSV directly.

Hope that makes some sense!
Tyler

On 2012-10-29, at 8:47 AM, Andreas Neumann wrote:

> I don't know.
> 
> CSV files are loaded with a plugin - they are not part of the core data
> providers.
> 
> Marco Hugentobler would have to answer this question. I can't answer it,
> sorry.
> 
> If you have the chance to use a database (SpatiaLite or Postgis) those
> are much preferred over csv files. Performance would be better and
> handling would be easier.
> 
> Andreas
> 
> Am 29.10.2012 15:42, schrieb Thomas Baumann:
>> Hello,
>> 
>> just a quick question concerning the qgis-server:
>> 
>> Is it possible to use QGIS-project-files that contain csv-layers?
>> 
>> I just tried to load a wms-service from such a project-file and get an "500
>> Internal Server Error".
>> If I use qgs-files in combination with shapefiles this error does not occur.
>> 
>> In the apache-log I found:
>> 
>> mod_fcgid: *error reading data*, FastCGI server closed connection,
>> 
>> Premature end of script headers: qgis_mapserv.fcgi,
>> 
>> [error] mod_fcgid: process /usr/lib/cgi-bin/qgis_mapserv.fcgi(9137)
>> exit(communication error), get unexpected signal 11
>> 
>> 
>> best wishes,
>> 
>> Thomas
>> 
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user


-----
Tyler Mitchell, Publisher
Locate Press, info at locatepress.com
Open Source "geo" Books
http://www.locatepress.com








More information about the Qgis-user mailing list