Tag Info

Hot answers tagged

3

SimpleSVG is a Python plugin https://plugins.qgis.org/plugins/simplesvg/ --> using PyQGIS! Therefore its source code should be the perfect example of how to export SVG from QGIS.


3

As Luigi suggests, you can have a look at the API documentation, specifically to QgsVectorFileWriter::writeAsVectorFormat, and realize you're just missing one parameter (from the docs): bool onlySelected = false, It says that the parameter onlySelected is of type boolean and is false by default. This parameter is right after the driver name. So, calling ...


2

Make sure you're using a 64 bit build of QGIS. The limitation on exported composer sizes/DPI is much higher on a 64 bit build.


2

I see the problem... irrespective of what format is chosen a .dbf is written. Well, that has certainly changed since the last time I used those tools. Seeing as you're in python perhaps a little routine could help here: def WriteCsv(InFC,OutTab): print("Exporting %s to %s" % (InFC,OutTab)) with open(OutTab,'w') as OutFile: FieldNames = ...


2

Once you have loaded your shape file in qgis, right click on it in the legend, select save as, then select 'Keyhole markup language' as your format, spatial ref. sys. Must be set to epsg 4326. Then select a file path, where the kml will be saved. A little under this, theres an option export symbology. You should select the option 'export feature symbology'. ...


2

You could try exporting the whole project with extent and pixel size=resolution set to match the input files: qgis --project myproject.qgs --snapshot image.png --width 1500 --height 1000 --extent xmin,ymin,xmax,ymax cf. http://anitagraser.com/2010/11/30/creating-high-resolution-images-using-qgis/ edit: that's comparable to Project->Save As Image ...


1

If you are importing that as a picture, then Export in JPEG. ArcGIS wants to recognize the features its exporting to PDF and layer, whereas JPEG is just an image. I've had that happen a bunch of times. You can change what font/format you use in Excel, but I don't know what a better option is, and that may help. Then it's up to you how you want to convert ...


1

Directly export to Excel file using the Table To Excel (Conversion) tool. No field name truncation and no formatting issue with numbers: Table To Excel (Conversion) Then you can easily export to a correct csv(txt) file from excel


1

Adding a .tif extension to the file name solved the problem.


1

I am using something like this with great success. import arcpy, os, csv inTables = r"pathToWorkspace" for dirpath, dirnames, filenames in arcpy.da.Walk(inTables, datatype="Table", type="ALL"): for tableName in filenames: print "Appending tables from " + tableName + " to " + newTable ...


1

Another plugin leaflet-image The plugin is working well with standard markers, for export leaflet map with special markers you can see export-leaflet-map-to-image



Only top voted, non community-wiki answers of a minimum length are eligible