Is there a way to save a file to .shp with have many attribute (I use QuickOSM to create a building Layer and I tried to save but it get error). Is there a way to change .KML to .shp? I get error message:  Could not make temporary scratch layer permanent. Error: Creation of field addr:street_1 failed (OGR error: Can't create field addr_str_4 in Shape DBF file, reason unknown.)
120666
I want to make a temporary scratch layer permanent but it shows  Could not make temporary scratch layer permanent. Error: Creation of field addr:street_1 failed (OGR error: Can't create field addr_str_4 in Shape DBF file, reason unknown.) How can I fix this error?  This is my attribute table.
106055
I am trying to make a script which selects every .png file in a folder beginning with the letters "LG". I then want the scipt create a shapefile, replacing the "LG" with "SH", and then i want the script to buffer that shapefile and rename the buffer with the first 2 letters being "SB".  I keep getting an error 99999 error message at line 37! ( gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features, "SIMPLIFY", "VALUE") )  I have posted this on stackoverflow.com but probably here is a better place as scripting for arcmap is probably quite specialised!  Can anyone offer me any advice to why this script doesnt work? I am running ArcMap 9.3.1. and (attempting) to run the script from pyscripter!  # --------------------------------------------------------------------------- # RASTER2POLYGON.py # Created on: Wed Dec 01 2010 12:20:48 PM #   (generated by ArcGIS/ModelBuilder) # Usage: RASTER2POLYGON &lt;INPUT_RASTER&gt; &lt;Output_polygon_features&gt; &lt;Raster_Buffer_shp&gt; # ---------------------------------------------------------------------------  # Import system modules import sys, string, os, arcgisscripting  # Create the Geoprocessor object gp = arcgisscripting.create()  # Load required toolboxes... gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Conversion Tools.tbx") gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Analysis Tools.tbx")  # Script arguments...  folder = "D:\\J04-0083\\IMAGEFILES" for root, dirs, filenames in os.walk(folder): # returms root, dirs, and files     for filename in filenames:         filename_split = os.path.splitext(filename) # filename and extensionname (extension in [1])         filename_zero = filename_split[0]     try:         first_2_letters = filename_zero[0] + filename_zero[1]     except:         first_2_letters = "XX"      if first_2_letters == "LG":         Output_polygon_features = "D:\\J04-0083\\ShapeFiles.gdb\\" + "SH_" + filename + ".shp"          # Process: Raster to Polygon...          INPUT_RASTER = os.path.join(root + "\\" + filename_zero + ".png")         gp.RasterToPolygon_conversion(INPUT_RASTER, Output_polygon_features, "SIMPLIFY", "VALUE")           Distance__value_or_field_ = "5 Meters"         Raster_Buffer_shp = "SB_" + filename + ".shp"          # Process: Buffer...         gp.Buffer_analysis(Output_polygon_features, Raster_Buffer_shp, Distance__value_or_field_, "FULL", "ROUND", "NONE", "")
102952
Im relatively new to QGIS and would like to know whether or not I can save my form annotations to a layer so I can turn them on or off.
96226
I am trying to upload a large shapefile to ArcOnline, however I found out ArcGIS Online won't upload any shapefile that has more than 1000 features.  My 30 shapefiles have over 1,000,000 features each.    Is there a way for me to condense these files into a smaller number of features that won't require me to go through manually and break the file down into individual shapefiles of 1000 features?
80723
Does anybody know how to add the shapefile name to a field in the file's attribute table?  I've found a description:     'You have to use inline variable in CalculateField like %Name% in   expresssion so that whatever the name of the file is, the string will   be inserted based on Name of the dbase file !'   I've tried to CalculateField tool with %Name%, but I got message:  Executing: CalculateField "2011-11-6 15_41_point" DBFName %Name% PYTHON # Start Time: Thu Dec 08 23:34:23 2011 WARNING 000405: No records within table Succeeded at Thu Dec 08 23:34:24 2011 (Elapsed Time: 1.00 seconds)   Where is my mistake?
70041
I'm new to QGIS and have been seeing what it can do for me – seems good. I imported shape file data from a UK Ordnance Survey data file and saved the file in a new folder. It was very good, doing all I wanted. I exported and got exactly what I wanted ( a tiff image).   I closed the file in order to try a new experiment. When I went to re-open it I got a dialogue box saying 'Handle Bad Layers. I don't understand what is at issue and what to do.
78283
I have a polygon shapefile that has a 100MB .dbf, and 500MB .shp file component. The reason it is so large, is that it is  classified as a landbase for a whole district.   Everytime I view the file in ArcCatalog, or ArcMap, and move the view window slightly, the entire file needs to redraw from scratch. I have tried spatial indexing and importing into a geodatabase - neither approach provides any noticable performance improvement with respect to rendering.  Esri's help page suggests that that to improve shapefile performance, the user can . While this would obviously work, I do not want to lose any information. Splitting the file up is not ideal since I am doing a lot of geoprocessing/queries with its entire area. I guess I could avoid viewing the entire area at once - but sometimes, for example, it is good to see what parts of the file a query has selected.  Is there any other approach I could take to improve rendering performance?   (In theory, building shapefile "pyramids" would be ideal - I'm unsure why ArcGIS has never supported such an approach  - at least that I am aware of...)
28140
I want an attribute in a shapefile named "Link" to add.   The works are all fine but then I would like to add a link in my directory.   This link accesses a PDF. Now, this PDF is not shown.   Is there any other solution or there is nothing to be done?
89942
Shapefiles can mix simple POLYGONs and MULTIPOLYGONs in the same data source. Spatial databases like PostGIS and SpatiaLite are strict, and will not put a POLYGON in a MULTIPOLYGON geometry column.  I've gotten used to using  to fix this issue. But now I am trying to use GeoPandas to do some file processing, including converting from shapefile to GeoPackage (with a bunch of stuff in the middle), and I am running into this error:  gdf.to_file("garbage.gpkg", "GPKG")   ValueError: Record's geometry type does not match collection schema's     geometry type: 'MultiPolygon' != 'Polygon'   Is there a GeoPandas equivalent to ST_Multi that I can use to fix the geometry before saving to the GeoPackage or SpatiaLite format?
21572
I recently tried to use QGIS and I wondered if you can convert a draft ArcGIS map (*.mxd file) into a QGIS project (*.qgs file).   This would avoid thematize the entire project.
104242
I am using QGIS 3.6.4 and working with GeoJSON files. I have come across a very annoying problem. Whenever I try to add an attribute and assign values to it using the field calculator, the values will appear to update and the field looks correctly populated. However as soon as I exit out of the attribute table (while saving changes) and reopen it the entire column is converted to NULL.  I have tried playing around with the precision and width of the output field to no avail. I don't think this is related to coordinate system units since this is not a geometric operation of type $area or $length. It is more like Acol1+Bcol2.  Has anyone had such an issue before? Please help... I would have thought basic functionality like this is already well tested and bug free in QGIS....  EDIT  Other symptoms include:   new field disappears if I remove the layer and add it again from file location, despite having saved layer changes.... a separate geojson file called result.geojson.tmp is created and contains the modified attribute table. However my result.geojson is unchanged. Adding an attribute field and populating it should not create a new file but modify the current one in place... why does this happen? I have also attempted this with QGIS 3.6.1 - Same problem.   The problem appears to be under discussion in the
22022
I have found out how to get tab-delimited X,Y data into a layer but the Z field value is not given as an option on import?  I tried to edit the attributes to add and define a new field but it keeps crashing.
15014
I have a lot of shapefiles that I need to save in a different CRS... is it possible to automate this process with a script in QGIS?
96975
I have about 50 mxd's with all broken layers that I have been going through and manually resetting.  The data was moved from another computer and the folder structure was changed so it isn't just a simple process of changing (example):  "F:\Data\Rivers.shp" to "C:\Data\Rivers.shp"     it is more like :  "F:\Data\Rivers.shp" to C:\Data\Park\Water\Rivers.shp    and so on for all kinds of data (boundaries, veg cover, roads, etc.) each in their own sub-folder.     I want to make a script that I can run repeatedly whenever I open one of these mxd's that would at least repair some of the more common layers that are found in most of my mxd's, and then I can manually repair the rest.  That way I can at least save myself some time.    I have been using something along the lines of :  import arcpy mxd = arcpy.mapping.MapDocument("CURRENT")  for lyr in arcpy.mapping.ListLayers(mxd):     if lyr == "Rivers": #Should this be the layner name in TOC or FC name?         lyr.replaceDataSource(r"C:\Data\Park\Water", "SHAPEFILE_WORKSPACE", "Rivers")   The idea then would be to somehow add multiple "replace" scripts in the above for other common layers that are in my mxd's.    However the above script doesn't even fix the Rivers layer.    How can I get it to work, and also add in other layers to be repaired that have different file paths?
87718
I have created a table join between two shapefiles which I've named 'OSMM' and 'Mastermap'. I want to copy and paste all features (polygons) without a match from the target layer ('Mastermap') into the parent shapefile ('OSMM'). I can't find any up-to-update code for QGIS 3.6. Here is my code so far: #1. loads the SHP files uri = 'C:/Users/xx/Downloads/OSMM.shp' vlayer = iface.addVectorLayer(uri,&quot;&quot;,&quot;ogr&quot;) uri = 'C:/Users/xx/Downloads/Mastermap.shp' vlayer = iface.addVectorLayer(uri,&quot;&quot;,&quot;ogr&quot;)  #2. Joins &quot;InvoiceNum&quot; from OSMM to Mastermap layerToJoin = QgsProject().instance().mapLayersByName('OSMM')[0] target = QgsProject().instance().mapLayersByName('Mastermap')[0] myJoin = QgsVectorLayerJoinInfo() myJoin.setJoinFieldName('InvoiceNum') myJoin.setTargetFieldName('InvoiceNum') myJoin.setJoinLayerId(layerToJoin.id()) myJoin.setUsingMemoryCache(True) myJoin.setJoinLayer(layerToJoin) myJoin.setJoinFieldNamesSubset(['InvoiceNum']) target.addJoin(myJoin)  #3. Selects NULL features from Mastermap params = { 'EXPRESSION' : '\&quot;OSMM_InvoiceNum\&quot; is NULL', 'INPUT' : 'C:/Users/xx/Downloads/Mastermap.shp', 'METHOD' : 0 } processing.run(&quot;qgis:selectbyexpression&quot;, params)  So how do I perform the PyQGIS version of Ctrl+C on 'Mastermap' and Ctrl+V into 'OSMM'? Presumably I will then need to use the following code: #5. Save the changes OSMM.commitChanges()
13232
If I save layer files in ArcGIS 10, can they be opened and modified in ArcGIS 9.3?
105083
I have a points shapefile that originally came from a GPX file (imported using QGIS). The original GPX file contained waypoints only and has disappeared.  The shapefile has many attributes, but only some have data. Below are these attributes with two example data records (some decimal values discarded  to fit onto one row).    TYPE    IDENT    LAT     LONG      Y_PROJ        X_PROJ          COMMENT WAYPOINT    JS    -31.6    22.6    -23610488.1    8084542.7    29-AUG-09 13:56 WAYPOINT    PS    -31.6    22.7    -23610333.7    8084487.4    29-AUG-09 14:01   A client of mine would like to convert the shapefile back into GPX, retaining the IDENT attribute as the label for each waypoint; he wants to use the GPX file in Garmin's Basecamp software. I have exported the shapefile sucessfully from both QGIS and ExpertGPS, but when I open the files in Garmin's Basecamp softare, each waypoint has only a sequential number as label.   When I look at the GPX files in a text editor, all the atrribute information is there. For example:  &lt;wpt lat="-31.695305019999999" lon="22.647454610000000"&gt;   &lt;type&gt;WAYPOINT&lt;/type&gt;   &lt;extensions&gt;     &lt;ogr:IDENT&gt;JS&lt;/ogr:IDENT&gt;     &lt;ogr:LAT&gt;-31.69530502&lt;/ogr:LAT&gt;     &lt;ogr:LONG&gt;22.64745461&lt;/ogr:LONG&gt;     &lt;ogr:Y_PROJ&gt;-23610488.11619880&lt;/ogr:Y_PROJ&gt;     &lt;ogr:X_PROJ&gt;8084542.75904646&lt;/ogr:X_PROJ&gt;     &lt;ogr:COMMENT&gt;29-AUG-09 13:56&lt;/ogr:COMMENT&gt;     &lt;ogr:DISPLAY&gt;&lt;/ogr:DISPLAY&gt;     &lt;ogr:SYMBOL&gt;&lt;/ogr:SYMBOL&gt;     &lt;ogr:UNUSED1&gt;&lt;/ogr:UNUSED1&gt;     &lt;ogr:DIST&gt;0.00&lt;/ogr:DIST&gt;     &lt;ogr:PROX_INDEX&gt;&lt;/ogr:PROX_INDEX&gt;     &lt;ogr:COLOR&gt;&lt;/ogr:COLOR&gt;     &lt;ogr:ALTITUDE&gt;1382.49&lt;/ogr:ALTITUDE&gt;     &lt;ogr:DEPTH&gt;0.00&lt;/ogr:DEPTH&gt;     &lt;ogr:TEMP&gt;0.00&lt;/ogr:TEMP&gt;     &lt;ogr:WPT_CLASS&gt;&lt;/ogr:WPT_CLASS&gt;     &lt;ogr:SUB_CLASS&gt;&lt;/ogr:SUB_CLASS&gt;     &lt;ogr:ATTRIB&gt;&lt;/ogr:ATTRIB&gt;     &lt;ogr:LINK&gt;&lt;/ogr:LINK&gt;     &lt;ogr:STATE&gt;&lt;/ogr:STATE&gt;     &lt;ogr:COUNTRY&gt;&lt;/ogr:COUNTRY&gt;     &lt;ogr:CITY&gt;&lt;/ogr:CITY&gt;     &lt;ogr:ADDRESS&gt;&lt;/ogr:ADDRESS&gt;     &lt;ogr:FACILITY&gt;&lt;/ogr:FACILITY&gt;     &lt;ogr:CROSSROAD&gt;&lt;/ogr:CROSSROAD&gt;     &lt;ogr:UNUSED2&gt;&lt;/ogr:UNUSED2&gt;     &lt;ogr:ETE&gt;&lt;/ogr:ETE&gt;     &lt;ogr:DTYPE&gt;&lt;/ogr:DTYPE&gt;     &lt;ogr:MODEL&gt;&lt;/ogr:MODEL&gt;     &lt;ogr:FILENAME&gt;&lt;/ogr:FILENAME&gt;     &lt;ogr:LTIME&gt;&lt;/ogr:LTIME&gt;   &lt;/extensions&gt;     Does anyone know how I could achieve this?  Thanks Hanlie