Tag Info

New answers tagged

3

Other than tile size, as noted by @Irssvt, you can also set some timeout and tile retry parameters. Default timeout per connection is in Settings->Options->network->Timeout for network requests Retry in case of timeout is in Settings->Options->network->Max retry in case of tile request errors. I coded the last retry parameters in QGIS, ...


2

Sometime that could occurs with slow connection. You could try to set a tile size for your WMS layer. Change Tile size (e.g 256x256) in WMS Connecition dialog and you see if it works for you: Sometime it helped me for large compositions. Hope this helps.


3

It's used to eliminate any whitespace you may have around your layout in the output file. For example, I have some MXDs set up to print on a specific paper size with specific margins, so that the maps I print can be 3-hole punched or bound without the holes affecting the map window. But sometimes I don't care about that and just want everything to fill the ...


1

Given a mosaic dataset, you can select the footprints of interest and then in the table of contents right-click the footprint layer > Data > Download Selected Rasters... which then allows you to choose which rasters to download.


0

Personally I'd create a mosaic dataset (or VRT) and extract the area of interest from that. VRT is supported by Global Mapper but will be quite slow, I would go with the mosaic dataset for this operation. Both of these raster types are links only to their respective rasters so don't take very long to create as the rasters themselves aren't being copied. ...


2

The EASIEST way is to ask for shapefiles, which is a native ArcGIS format and can be used directly in QGIS (read and write). The problem with shapefile is that it is quite old (be careful if you have large dataset), but otherwise it has simple feature (points, lines OR polygons) that are interpreted by most software (it is an open format). Also make sure ...


2

This question was answered here: Export 3D data DXF file See this command: ogr2ogr -f "DXF" {outFile} {inFile} -zfield {ColumnWithZValue}


1

Okay, here is a solution that will allow you to easily import Whitebox binary raster files into Excel. First, export the raster using the Export ArcGIS ASCII Grid tool (in fact any of the ASCII raster export tools will work fine). Next, launch Excel and open the file, which will have the same name as your Whitebox raster file but with a .txt extension. A ...


1

I do not have an SQL Server table available to test this, but I was surprised to see you using pyodbc in this workflow. I recommend that you try to use a Query Layer: A query layer is a layer or stand-alone table that is defined by a SQL query. ... You can persist a query layer by exporting it to a feature class.


3

You get the selection set on the feature layer but then you do a feature count on the feature class, an object that does not support selections. So your current logic makes no sense. Now do you want to export an EXISTING selection or do you want to SELECT then export? If you want to export an existing selection then delete the Featurecount code as that is ...


0

You will have to use an if statement to check the feature count using IFeatureClass.FeatureCount Method, before exporting.


0

Geotools is a powerful library, and can read from PostGIS, for example, and can export to ShapeFile, for example, using the "Feature" object. I cann't show you a complete "example", but it's easy to find out a way to do it, in Google.


1

Try the following steps: Highlight layer in the Layers table of contents (TOC), then using the Select Features tool select only the features you want to convert Next, right click layer name in TOC and select Save Selection As and define the format drop down to AutoCAD DXF Repeat steps 1 and 2 for all other layers


1

Using QGIS with the wanted features selected you can right click on the layer or go to the file menu and select "Save Selection as..." Choose Shapefile using the same projection as the original file. Done


1

Export the image from Data View. Check the Write World file in the general tab. There you can also control the image output resolution and size. Image quality of the output will be compromised either way because you have georeferenced the image and thus altered/warped or stretched the original pixels. Work out the outptut size and resolution that closely ...


1

Try this code: import arcpy,os,sys import arcpy.mapping from arcpy import env env.workspace = r"C:\Project" for mxd in arcpy.ListFiles("*.mxd"): print mxd # print list of mxd's in the folder mapdoc = arcpy.mapping.MapDocument(r"C:\Project\\" + mxd) df = arcpy.mapping.ListDataFrames(mapdoc, "Layers")[0] ...


1

Give this a shot: import arcpy, os import arcpy.mapping from arcpy import env env.workspace = "C:\\Project" for mxd in arcpy.ListFiles("*.mxd"): mapdoc = arcpy.mapping.MapDocument(os.path.join("C:\\Project", str(mxd))) mapdoc_name = str(os.path.splitext(mxd)[0]) width, height = str(round(mapdoc.pageSize.width, 2)), ...


0

The Help for MapDocument (arcpy.mapping) has a code sample that illustrates how to read the page size from a MapDocument object into two variables (pageWidth & pageHeight): mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd") print mxd.pageSize print mxd.pageSize.width; print mxd.pageSize.height pageWidth, pageHeight = mxd.pageSize print ...



Top 50 recent answers are included