Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dxf format #27

Open
aeduard opened this issue Jun 3, 2021 · 15 comments
Open

Dxf format #27

aeduard opened this issue Jun 3, 2021 · 15 comments

Comments

@aeduard
Copy link

aeduard commented Jun 3, 2021

Extend export format types with dxf.

@gioman
Copy link

gioman commented Oct 24, 2023

I guess that would need to be added as special case because in QGIS Server this format is part of the WMS getmap request and not of the WFS GetFeature one(?).

@aeduard
Copy link
Author

aeduard commented Oct 26, 2023

I don't understand the differences and details, but it would be a nice feature even today :). We could sponsor the development for this update.

@Gustry
Copy link
Member

Gustry commented Oct 27, 2023

I see "DXF" when right clicking on a layer → "Save features as", so maybe not ?
Have you tried to add it ? https://github.com/3liz/qgis-wfsOutputExtension/blob/master/wfsOutputExtension/definitions.py

@gioman
Copy link

gioman commented Oct 27, 2023

Have you tried to add it ? https://github.com/3liz/qgis-wfsOutputExtension/blob/master/wfsOutputExtension/definitions.py

@Gustry I added

    Dxf = Format(
        content_type='application/dxf',
        filename_ext='dxf',
        force_crs=None,
        ogr_provider='AutoCAD DXF',
        ogr_datasource_options=(),
        zip=False,
        ext_to_zip=(),
    )

but resulting file is 0 bytes.

@pathmapper
Copy link

Looks like the driver short name is used for ogr_provider, you could try:

ogr_provider='DXF'

https://gdal.org/drivers/vector/dxf.html

@gioman
Copy link

gioman commented Oct 28, 2023

Looks like the driver short name is used for ogr_provider, you could try:

nope, still 0 bytes.

@Gustry
Copy link
Member

Gustry commented Oct 30, 2023

Thanks for checking, indeed, it's in the documentation :

https://docs.qgis.org/3.28/en/docs/server_manual/services/wms.html#wms-getmap-format

So WMS GetCapabilities in WMS is missing the DXF format if the layer is also in WFS ?

@gioman
Copy link

gioman commented Oct 30, 2023

So WMS GetCapabilities in WMS is missing the DXF format if the layer is also in WFS ?

DXF is part of the WMS capabilities regardless if a layer is published as WFS (as far as I understand)

image

@gioman
Copy link

gioman commented Oct 30, 2023

DXF is part of the WMS capabilities regardless if a layer is published as WFS (as far as I understand)

no you are right, only when the layer is published as WFS.

@huggla
Copy link

huggla commented Nov 16, 2023

The dxf-export in Qgis (in server through wms-request) does not save feature attributes.

@gioman
Copy link

gioman commented Nov 17, 2023

The dxf-export in Qgis (in server through wms-request) does not save feature attributes.

@huggla sure you did the request correctly? This with the demo project (Montpellier) worked for me

#27 (comment)

@huggla
Copy link

huggla commented Nov 17, 2023

@aeduard
Copy link
Author

aeduard commented Jul 3, 2024

I've tried the setup in definitions.py (version 1.8.0), also layer is published in QGIS Server WFS capabilities. The resulting dxf has 0 bytes. Any hints?

@gioman
Copy link

gioman commented Jul 3, 2024

Any hints?

@aeduard it won't work, as far as I understand, because the DXF is part of QGIS WMS capabilities, not WFS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants