Hi,
I just tested with : GDAL 3.6.4, released 2023/04/17
Using the ogr2ogr as follows:
ogr2ogr -f CSV poi_out.csv poi.shp -lco CREATE_CSVT=YES
I get three files but no geometry
ogr2ogr -f CSV poi_out.csv poi.shp -lco CREATE_CSVT=YES -lco GEOMETRY=AS_WKT
I get three file with the geometry as WKT
Hi,
Not to start a controversy but it feels like the standard hints at three
files. Did the standard change?
If it is three files which works for me in QGIS and geopandas i.e. data
lands where it is suppose to, then more layer creations options are needed
to handle the SRID/CRS
Hi Robert,
Yes, we're getting one with all the info!
El mié, 3 may 2023 a las 18:14, Robert Hewlett ()
escribió:
> Just to clarify, instead of getting three files you are getting one with
> all the info: types, projection, data?
>
> https://giswiki.hsr.ch/GeoCSV
>
> On Wed, May 3, 2023 at 8:57
Just to clarify, instead of getting three files you are getting one with
all the info: types, projection, data?
https://giswiki.hsr.ch/GeoCSV
On Wed, May 3, 2023 at 8:57 AM Moises Calzado via gdal-dev <
gdal-dev@lists.osgeo.org> wrote:
> We're also specifying the GEOM_POSSIBLE_NAMES, so it
We're also specifying the GEOM_POSSIBLE_NAMES, so it would be great if with
that option we could use the GEOMETRY_NAME without using the
CREATE_CSVT=YES option.
Regarding emitting the .prj and .csvt in /vsistdout mode, that's why I'm
saying that there is an issue while generating the resultant
The .CSVT and .PRJ help to make a proper geocsv dataset. Helps with QGIS
And geopandas. The column name that I use in the CSV is usually geom and
WKT shows up in the CSVT file which seems to be a one line file that hints
at the data types in the CSV file.
I hope that makes sense.
CSVT
Integer,
Le 03/05/2023 à 14:22, Moises Calzado via gdal-dev a écrit :
Hi Even,
Thanks so much for taking a look into that one!
I have one doubt regarding the CSVT content, as we're not really using
it, but it's required when using the GEOMETRY_NAME layer creation
option, as can be checked in the CSV
I don't have in mind OSS to do that, but the kdu_transcode utility from
Kakadu (proprietary) should be able to do it. Cf
https://trac.osgeo.org/gdal/ticket/3295 /
https://kakadusoftware.com/wp-content/uploads/Usage_Examples.txt
Le 03/05/2023 à 04:20, Tobby Moalem a écrit :
I wonder if there
Hi Even,
Thanks so much for taking a look into that one!
I have one doubt regarding the CSVT content, as we're not really using it,
but it's required when using the GEOMETRY_NAME layer creation option, as
can be checked in the CSV driver documentation:
>-
>
>GEOMETRY_NAME=name
Craig,
Both options you propose are reasonable. I'd perhaps have a slight
preference for option 2 (is my understanding correct that the user would
be responsible to issue GetFeatureCount() manually before calling
GetNextFeature() ? we don't want to systematically call
GetFeatureCount()
10 matches
Mail list logo