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

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 ...


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

This is old but I had the same error "PageLayoutObject: Error in executing ExportToJPEG". The problem for me was that I was trying to write to a folder that didn't exist. Once I created the folder, it worked fine. This also makes me think that if you had some other kind of permissions problem that didn't let you write to the output file it might also be ...


2

Try this: In ArcMap>File>Export Map...>Select PDF>Format Tab>Check 'Embed All Document Fonts' This makes the PDF functional by machines/printers that do not have the fonts used in the source doc. It may be an issue here due the embedded object (Excel) within the map doc. If that doesn't work, try changing the font in Excel to Arial. There are several posts ...


2

Use QGIS and save your layer style as *.sld file. After this, load your *.sld file to the GeoServer and connect your .shp to the right style. you can also use multiply styles for one .shp.


1

Another option can be using User-friendly Desktop Internet GIS (uDig) which is JAVA based. I tested this software to create sld for geoserver. Source can be reached at here.


1

I have a project on Github (http://github.com/ianturton/ShapefileViewer) that does SLD generation from shapefile. It's in Java and based on GeoTools if that's any help.


1

As detailed in the simplesvg plugin exporting window (not in a very evident position, though), simplesvg works by dumping screen coordinates (expressed in integer pixels) from the current viewport at the moment of exporting. This means that all vertices are implicitly snapped to the pixel grid. A workaround for exporting a large area while still retaining ...


1

You can use the open-source liblas tools for this. The command is, las2las --keep-classes 2 -i input.las -o output.las To do many files, use a loop. for f in *.las; do las2las --keep-classes 2 -i $f -o $(basename $f .las)_gnd.las done These commands are, of course, for linux, unix or OSX. liblas is also available for Windows through OSGeo4W.


1

With Fusion, the command line to be used is ClipData together with the switch /class. It can clip las data according to the return classification and within specific area of interest. The generic command line would look like this: ClipData /class:2 InputSpecifier SampleFile [MinX MinY MaxX MaxY] /class:2 is because the required category is ground, which ...


1

I used SAGA for the evaluation of my LIDAR data and some easy processing. Go to tool libraries > Import/export > LAS. When you import the LAS data using Import LAS Files you can select the import of existing classifications (this should be your categories). Unfortunately, my LIDAR data don't have categories so I can't try it myself. You can select points ...


1

lasground.exe in the LASTools mentioned above. This can be run from command line prompt very cleanly.


1

You need to set your map to use the atlas feature's extent, using QgsComposerMap.setAtlasScalingMode, eg myAtlasMap.setAtlasScalingMode( QgsComposerMap.Auto ) Place this line after you've setup your atlas, but before the beginRender call.


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.



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