Hot answers tagged

5

In your Table of Contents (the list of layers usually found on the left side of your ArcMap window), right-click on your US border shapefile and click "Zoom to Layer". That will zoom to the extents of the layer and center your view on the layer. FYI, you can also zoom to one (or several) features in the layer, instead of the entire layer. To do that, open ...


2

The simple way is to use GeoPandas import geopandas as gpd # read the shapefile as a GeoDataFrame can = gpd.GeoDataFrame.from_file("CAN_adm1.shp") # The first element can.head(5) ### many data #plot the shapefile/GeoDataFrame can.plot() You can even plot a column can.plot(column='NAME_1');


2

You need to use the -dstalpha option to gdalwarp e.g.: gdalwarp -cutline INPUT.shp -crop_to_cutline -dstalpha INPUT.tif OUTPUT.tif This will add an alpha band to the output tiff which masks out the area falling outside the cutline. P.S. duplicate question


2

The simplest solution is to join the two sides together by dragging connections from each input to each output (click on the yellow arrow and drag a line from it to the equivalent red one). Then press the green run button on the toolbar and the translation will run. Quicker way to generate it in the future is to start with the empty canvas and press Ctrl+G. ...


2

To calculate overall accuracy assessment in eCognition using shapefiles you need to do following steps: First, add shapefiles in to eCognition as thematic layer by modifying the project. (make sure that points has the same projected coordinates system as your classification image) Further two steps you can find on ecognition user guide "Creating Samples ...


1

If you center your map in data view, layout view should show the same extent.


1

FROM should contain table names, not column names (and 100 is missing here in the table name) The ON part should connect columns from both tables, but you have specified the same table on both sides. I suggest to put the whole sql statement in quotation marks, single ones for Linux and double for Windows. The roles of dst_datasource_name and ...


1

In the spirit of your question, I too would use GeoPandas like gene said. However I'll also directly answer your question how to do this in matplotlib... Create an object to map continuous values to colors. ScalarMappable is the matplotlib class to do this, and you can give it a Normalize behavior to anchor the min and max range of the values you want to ...


1

I imagine this is due to the file size limitation of Shapefiles. From "Geoprocessing considerations for shapefile output" (link): There is a 2 GB size limit for any shapefile component file, which translates to a maximum of roughly 70 million point features. The actual number of line or polygon features you can store in a shapefile depends on the ...



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