New answers tagged import
When I wanted to re-import the startup.py file after I made some edits, I used: import imp, startup # Use last 3 lines to reload script after saving edits imp.reload(startup) from startup import * run_function() This saved me the trouble of having to restart QGIS.
I received an answer on OSM forum the order of ways on releation members doesn't matter. More info is here...
I had the same problem (Arcmap would not import my csv file with headers, instead it would show Field1, Field2, Field3 etc). When I examined the file headers in Excel, I found...decimals numbers, spaces, percent signs etc. After replacing all of that with underscores or text, I had no problems. I dragged the .csv file into arcmap, opened the attribute ...
If you're able to execute import arcpy in under 4 seconds, the DLL files are already cached in memory, and that's as fast as you can hope to achieve. It's a very large library, and it takes Python a while to read and register. The best way to reduce repeat import cost is to not exit().
I just managed to fix the problem. It turns out I didn't correctly assign the cell-properties of the precipitation data as a number in excel.
Essential to solving this issue is to make the import in two steps. First one is to import the setup of the table. Ie. the names of the columns and the structure of the table. But not yet the content. The code will look like this: shp2pgsql -p -s SRID PATH_TO_SHAPEFILE\Shapefile.shp SCHEMEname.TABLEname | psql -h HOST -d Database -U User Worth ...
It is because your field names are invalid as (at least) shapefile column names and QGis seems to expect shapefile conforming field names. These must start with a letter not a digit.
Within the same folder as your csv file, you can save a csvt file which will then provide the field type for each field within the CSV. To do this list the field types you want each field to adhere to in a string within a text editor (notepad works for this) with each field separated by a comma. Make sure the order within the text file is the same as the ...
Top 50 recent answers are included