Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 9159

A vector data storage format for storing the location, shape, and attributes of geographic features. Often referred to as 'an ESRI shapefile', as ESRI developed it.

5 votes

Quick OSM Save As Shapefile error "Can't create field"

The DBF format of the shapefile attribute table generally forces to cut the filed names after 10 characters. If you have fields service_time and service_times, this will create the error you got. … Changing the file type from shapefile to sqlite, geopackage or geojson solves your problem, and will preserve the original field names from OSM. …
AndreJ's user avatar
  • 77.1k
1 vote
Accepted

Need help creating Europe reference grid map using EEA shape and spatialite files

I'm afraid you are looking at the wrong datasource. The linked files only contain square grids in resolution of 1, 10 and 100km, and no boundaries as shown in the picture. Maybe NUTS regions are what …
AndreJ's user avatar
  • 77.1k
1 vote

How to "hardcode" a shapefile's CRS?

I suggest to disable On-the-fly-reprojection in QGIS. If the data looks good then, it works ok with Mason too. And make sure to switch Settings -> Options -> CRS, CRS for new layers to Prompt for CRS …
AndreJ's user avatar
  • 77.1k
2 votes
Accepted

Help converting a WKT projection to proj4

The shapefile you linked has this .prj file content: PROJCS["NAD_1983_StatePlane_Massachusetts_Mainland_FIPS_2001_Feet", GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983", SPHEROID["GRS …
AndreJ's user avatar
  • 77.1k
9 votes

Shape layer turns non-editable if saved filtered

QGIS disables editing of filtered shapefiles for the sake of data safety. Remember that shapefiles use an outdated dbase storage format, with little effort to allow keeping track of data integrity. I …
AndreJ's user avatar
  • 77.1k
1 vote

Defining a projection and CRS for shapefile with undefined projection?

The sample file you provided does not have UTM coordinates, but coordinates of a transverse mercator projection centered on 22.5°E 71.5°N and false Easting and Northing of 400000m on that point. If a …
AndreJ's user avatar
  • 77.1k
1 vote
Accepted

Import grid text file to shapefile in QGIS

From http://www.ipcc-data.org/sres/hadcm3_grid.html : The grid is 96*73 large, with cellsizes of 3.75x2.5 degrees. Note that Eastings are from 0 to 360. There is no easy way to load the data into QGI …
AndreJ's user avatar
  • 77.1k
2 votes

Convert an OSM file to a Shapefile with the same attributes

Using shapefile format, keys with : inside will be translated to _, and all field names will get truncated to 8 characters due to the shapefile format restriction. …
AndreJ's user avatar
  • 77.1k
1 vote

Delete coordinates --> point still visible

If you export to shapefile using "Save As ...", the original CSV layer is still on the canvas. You have to remove it manually. … Changing the CSV file content afterwards will not change the content of the already created shapefile. …
AndreJ's user avatar
  • 77.1k
1 vote

Change coordinate projection R shapefile

The coordinates of the coastline are not in EPSG:4326 WGS84. They would be in the range of 44 North and 12 East as well. Instead, it might be EPSG:3035 ETRS89 LAEA Europe. You can use GDAL to overri …
AndreJ's user avatar
  • 77.1k
2 votes

Converting WKT to SHP?

You may grab the content of the .prj file of any shapefile in that projection, and eliminate line breaks from it: <OGRVRTDataSource> <OGRVRTLayer name="lineWKT"> <SrcDataSource>F:\Data\lineWKT.csv …
AndreJ's user avatar
  • 77.1k
2 votes
Accepted

Converting .shp file to .csv file using ogr2ogr?

A shapefile consists of a bunch of files. The .shp and .shx are mandatory, .dbf and .prj are necessary for some tasks as well. …
AndreJ's user avatar
  • 77.1k
2 votes
Accepted

How to work with SHP+XML and several DBF+XML datasets

Then you can join the CMP and PRT databases on the POLY_ID field to the shapefile geometry. From the CMP fields, you get the SOIL_ID field to join the Soil layer and name tables as well. …
AndreJ's user avatar
  • 77.1k
1 vote

Exporting from QGIS to ACAD DXF as Linework

In QGIS, try Vector -> Geometry Tools -> Polygons to lines. That way you get closed lines instead of filled polygons. If necessary, you might create polygons from them inside Autocad.
AndreJ's user avatar
  • 77.1k
14 votes
Accepted

ogr2ogr keep geometry when converting to CSV?

For the error part, just do as you are told: ogr2ogr -f "CSV" -overwrite MyLayer2.csv MyLayer.shp This will destroy any previous content of the csv file, and add values from the shapefile to the CSV …
AndreJ's user avatar
  • 77.1k

1
2 3 4 5
10
15 30 50 per page