Tag Info

Hot answers tagged

5

File Geodatabase in QGIS 2.4 Note: Use Directory rather than File Once the file geodatbase is loaded save the shapefile


3

I'm not entirely clear on what you did, but I suspect you've misunderstood how map documents work and the distinction between data and symbology. Layers are just symbolization. You can have the same shapefile data represented ten different ways on ten different layers in a map. Layers are an mxd thing, not a data thing. If you start editing, now you're ...


3

This set of extracts from OSM data may be what you're looking for. In particular, this shapefile of the coastline around Helsinki.


3

Convert from shape to gmt use this example code : ogr2ogr -f "GMT" Hudson_bounds.gmt Hudson_bounds.shp


3

You can use ogr2ogr with the -sql option to use a sql statement


3

I see that you were able to use a plugin to get the values you wanted, but here's why the values were changing in the first place. This isn't specific to QGIS or any other software, it's an issue with how the data is being stored. Floating point values are stored with a specific precision (number of digits). Some software will automatically round the stored ...


2

If you use geoserver's Shapefile Output on the WFS service, it doesn't matter what the source of the data was. It doesn't matter whether the data is coming from Shapefiles or PostGIS or something else. Let me try to provide answers to all your sub-questions. It doesn't matter about how big the table was, or how many features it contained, Geoserver can ...


2

You should really be doing this in edit mode using the editor toolbar. Rather than creating graphics or converting graphics to shapes, create the shapes directly in the file. See the help topics and its subtopics


2

The controls on the map appear to be OpenLayers. Here's how you can find out yourself what kind of data it's using in the client in Chrome or Firefox: In Chrome, go to Menu > Tools > Developer Tools and switch to the Network tab. In Firefox, go to Menu > Developer > Network Refresh the page, pan around the map a few times, see what resources load.


2

You should be able to export the shape file as a GeoJSON file from QGIS. With the shapefile added to your map, right click on it in the legend/TOC and click on 'Save As...' in the pop-up menu. Select GeoJSON as the output format Keep in mind that while it is valid JSON, the GeoJSON output this way may not be in the exact format you are expecting. OGR ...


2

As you can see from the comment thread above, layer files and relative paths are a bit complicated. The problem is that a layer file (*.lyr) can either hold absolute paths or relative paths, but there doesn't seem to be any (easy) way to ascertain which it uses, after the layer file has been created. To create a layer file with relative paths, there are ...


2

Open a new dataframe, don't add a basemap, just the shapefile, move your mouse around on the screen and look at the coordinates towards the middle are they small numbers that look like latitude and longitude? Open windows explorer and navigate to your shapefile... look for a *.prj file, if you don't have one, then you are working with data that no ...


2

Once you get the shapefile/projection problem solved: Kriging is a method of interpolating points to create a continuous surface. I think that you actually want to use graduated colors to modify the symbology of the points, manually setting classification breaks at the values you need.


2

JJD yes there is. I haven't used it myself. You use the -m option and pass a mapping file that has the old column name and new column name on each line. As Ryan alluded to here: http://www.bostongis.com/pgsql2shp_shp2pgsql_quickguide.bqg I suspect he was thinking of -m and mistyped -f. Hope that helps, Regina


2

One option that may be a bit faster (less clicks) or you could call from a script would be to use ogr2ogr command (using OSGeo4wShell (which comes with installation of QGIS)). ogr2ogr -f "ESRI Shapefile" C:/Temp/Shps C:/Temp/test.gdb If you want to export out a subset you may use the same command above but at the end list out the table name(s) (e.g. ...


2

The point feature is a bit more straight forward once you have your table in excel (with your X and Y columns), save it out as a .csv and you may use the Make XY Event Layer tool to convert to event layer and then use Feature Class to Feature Class tool to convert to shapefile. The polyline and polygon are not as straight forward, you will have to build a ...


2

You first need to understand the different ways to create geometries and the geometrical relations in GeoDjango (GeoDjango: GEOS API), without a database: 1) create valid geometries: # with Point, Polygon objects of GeoDjango from django.contrib.gis.geos import Point, Polygon, poly = Polygon(((0.0, 0.0), (0.0, 50.0), (50.0, 50.0), (50.0, 0.0), (0.0, ...


2

If you want a single polygon (which you have indicated), you want to use Dissolve. This is under Data Management Tools in the toolbox. It is also in the Geoprocessing menu. http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000005n000000


1

You want to use Merge in an edit session. This will modify the original shapefile. Click the Edit Tool on the Editor toolbar. Click the features you want to merge. The features must be from the same layer. Click the Editor menu and click Merge. Click the feature that the features will be merged into and will supply the attributes for the ...


1

The easiest solution is to use union, cascaded_unionor unary_union. All the lines are split at the points of intersection: from shapely.geometry import LineString line1 = LineString([(0, 0), (2, 2),(3,1)]) line2 = LineString([(2, 0), (2, 1),(1,2)]) print line1.intersection(line2) POINT (1.5 1.5) for line in line1.union(line2): print line LINESTRING (0 ...


1

If you are willing to program python: arcpy has the "fromWKT" function, which can read a WKT string and return a geometry object. See http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008s000000 . FME has a WKT reader also: http://docs.safe.com/fme/html/FME_ReadersWriters/Default.htm#wkt/wkt.htm


1

Yes, the extent isn't accurate. If you have spatial analyst extension then use IsNull to create a binary raster, raster to polygon (no simplify) and then dissolve with no fields to create a clipping polygon. Once you've got that then just clip as normal. If you haven't got Spatial Analyst then it's a bit more tricky.


1

I'm guessing based on your final image that while the green does provide 100% coverage, it is broken up into separate polygons - otherwise (if it were a single giant polygon) you'd be getting nothing selected. The problem is your Relationship choice. Within means that only whole polygons (not areas or parts of polygons) from layer A that lie within a ...


1

Australia post used to give out a CSV (or was it pipe delimited) file with suburb to postcode lookup, even then some suburbs had multiple post codes and some suburbs weren't represented - the GPO postcodes, post boxes and commercial postcodes (yes, you can buy your own post code so it covers only your business). Now you actually have to purchase the data ...


1

Firstly, you should do Feature To Point in order to create your centroids. Then, you obviously need to create your buffer. For the third step is to use Tabulate Intersection to know how much of each polygon is under your buffer. Finally, you summarize your table to get your synthetic value and you join the resulting table to your original polygons (or to ...


1

For the HEIGHT it would be with respect to ground. For the ELEVATION, most countries have a national geodetic survey that should be used as a reference. Those NGS are usually defining their own MSL. What you usually extract from an existing dataset is the elevation. The height can then be computed as the difference between elevation at the top and the ...


1

Normal convention in my locale is with respect to ground since elevation above MSL would be meaningless to the average user.


1

You seem to be using a dynamic workspace, which I don't think is right here. Assuming you want FME to create the new table, the following steps should be what you need to do: 1) Open the Generate Workspace dialog (Ctrl+G) 2) Enter Shape as the source format 3) Use the browse button and select ALL of the shape files to be converted 4) Set the output ...



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