[gdal-dev] ogr2ogr export DXF label spaces

2024-12-03 Thread Andrew Terry via gdal-dev
Hi, Using GDAL 3.9.3, I'm running a DXF output and creating an OGR_STYLE column for a point geometry label such as: LABEL(f:"Romans",s:"1400",t:"HIGH STREET",a:"322.1",p:"10") When I view the output label, it has no visible space, in a text editor I can see the label is: "HIGH\~STREET" How m

Re: [gdal-dev] sozip and tile index

2023-07-03 Thread Andrew Terry
Thanks Even, that’s great I’ll try again using those! From: Even Rouault Sent: Sunday, July 2, 2023 2:20 PM To: Andrew Terry ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] sozip and tile index Hi, ogrtindex can index any OGR supported file including through the /vsi virtual file systems

[gdal-dev] sozip and tile index

2023-06-27 Thread Andrew Terry
Hi, Is it possible to include a virtual file system file in a ogrtindex (or alternative?) vector file index? My ideal use case is to include sozip enabled or just plain zip files. At the moment the files are one shp per zip which makes it easy to swap out changed data. Thanks Andy _

Re: [gdal-dev] ogr gml Box handling

2022-12-22 Thread Andrew Terry
Thanks Even, I’ll try that out Andy Andrew, the GMLAS driver will fetch it as a string: $ ogrinfo GMLAS:input.gml -oo remove_unused_layers=yes -al -q Warning 1: Unhandled type: gMonthDay Warning 1: Unhandled type: gMonthDay Layer name: departedfeature OGRFeature(departedfeature):1 ogr_pki

Re: [gdal-dev] ogr gml Box handling

2022-12-22 Thread Andrew Terry
ithin postgres as something I could turn into a geometry. My assumption has been that I would need to modify the gfs created by org2ogr to try and explicitly pull this element out Thanks Andy From: Rahkonen Jukka Sent: 22 December 2022 13:20 To: Andrew Terry ; gdal-dev@lists.osgeo.org Subject

[gdal-dev] ogr gml Box handling

2022-12-22 Thread Andrew Terry
Hi, Trying to pull in the bounding box / envelope "Box" when loading gml with ogr2ogr 257023.700,620210.000 257023.700,620210.000 I've tried boundedBy in my gfs file. I've also tried seeing if I can pull through as a string using: bbox boundedBy|Box|coordinates Stri

[gdal-dev] ogr pgdump commits

2022-12-19 Thread Andrew Terry
Hi, Successfully writing data to postgres using ogr2ogr with pg_dump to push data through psql in the style: ogr2ogr --config PG_USE_COPY YES -f PGDump /vsistdout/ abc.shp | psql -d my_dbname -f - I'm finding some warnings in my logs and pushing the output to a file I can see it creates SQL

Re: [gdal-dev] openfilegdb export

2022-11-11 Thread Andrew Terry
Thanks Even, -nlt POLYGON did indeed work for me. Huge thanks as always for your (and every contributor’s) amazing work. Andy From: Even Rouault Sent: 11 November 2022 14:07 To: Andrew Terry ; gdal-dev@lists.osgeo.org Subject: Re: [gdal-dev] openfilegdb export Andrew, Can you paste the

[gdal-dev] openfilegdb export

2022-11-11 Thread Andrew Terry
Hi, Trying out the export to OpenFileGDB, using GDAL 3.7.0dev-5a6f99a78b installed with OSGeo4W ogr2ogr -f "OpenFileGDB" test_filegdb.gdb PG:"dbname=dbname port=5432 host=dbhost user=dbusr" --optfile sql_filter.sql This works for SHP and GeoPackage and the output is a EPSG 27700 Polygon geome

Re: [gdal-dev] ogr2ogr dxf font

2020-09-15 Thread andrew terry
More appropriately, the github location of the font assignment is: https://github.com/OSGeo/gdal/blob/master/gdal/ogr/ogrsf_frmts/dxf/ogrdxfwriterlayer.cpp , starting line 576 Also to note that ogrinfo -al on the output lists the font assigned correctly but not the style (e.g. AutoTextStyle1) tha

[gdal-dev] ogr2ogr dxf font

2020-09-15 Thread andrew terry
Hi, I'm trying to use a specific font required by a client and i've created a header file including "Romans" as a font but despite doing so, the font always seems to be created in a new AutoTextStyle type. For some fonts, this comes in as AutoTextStyle1 (or 2, 3, 4 etc to avoid duplicating anythi

Re: [gdal-dev] Polymesh vs Faces as DXF blocks

2019-03-28 Thread andrew terry
Just to add... The result is the points are exported to the file and no block when it is a polymesh. I've tried the template file as various options from R12 to 2004-2006 DXF -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___

[gdal-dev] Polymesh vs Faces as DXF blocks

2019-03-28 Thread andrew terry
Hi, Running the DXF exporter using a "Polymesh" block (e.g. a simple sphere) fails but if i explode the polymesh to get "Faces" and use that as my block my export works. Just wondering whether there is any known reason for this - i'd thought the block was not actually processed and just reference

Re: [gdal-dev] ogr2ogr giving postgres source a specific ogr layer name

2019-02-05 Thread andrew terry
Apologies - i see -nln works both when using sql or just calling a table andrew terry wrote > Hi, > > Is it possible to give postgres -sql output a specific ogr layer name. > > As i understand it - In order to create DXF blocks, i need my postgres > table > (and therefore

[gdal-dev] ogr2ogr giving postgres source a specific ogr layer name

2019-02-05 Thread andrew terry
Hi, Is it possible to give postgres -sql output a specific ogr layer name. As i understand it - In order to create DXF blocks, i need my postgres table (and therefore ogr layer name) to be called blocks. Is there a way to force the ogr layer name being used. I tried -sql "SELECT * FROM (SELECT

Re: [gdal-dev] ogr2ogr dxf multilinestring as block

2019-02-05 Thread andrew terry
Hi Alan, I've found that by having a postgres table "blocks", that is an ogr layer and i can get a cad file out which has the block in it. Not sure whether i can call two tables with ogr2ogr but at worst i can run the command once to create a template dxf to use as a header for my entities to out

Re: [gdal-dev] ogr2ogr dxf extents

2019-02-05 Thread andrew terry
Thanks Alan, i was beginning to think that was the case but good to know i'm not missing anything. -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailm

Re: [gdal-dev] ogr2ogr dxf multilinestring as block

2019-02-05 Thread andrew terry
Hi Alan, Thanks for replying. I'm creating from postgres as a source. I think i may have been confused by the "layer" references as i am getting CAD layers nicely with a Layer field from postgres but i'm suspecting now that there's some additional OGR Layer i need to reference? Is there a way to

[gdal-dev] ogr2ogr dxf multilinestring as block

2019-01-31 Thread andrew terry
Hi, As per the documentation, i'm seeing mulitlinestring being split up into LWPOLYLINE elements. I'd like to make them a block and have tried adding a "blockname" column and given each multilinestring a unique reference. I've also tried the DXF_INLINE_BLOCKS set to FALSE option. Is this possib

[gdal-dev] ogr2ogr dxf extents

2019-01-30 Thread andrew terry
Hi, Using ogr2ogr -f DXF, is there a dsco (or other) variable to set the initial zoom extents when the resulting cad file is opened? Thanks Andy -- Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html ___ gdal-dev mailing list gdal