7

I have one ESRI Shapefile as a map with many objects in it.

I have another ESRI Shapefile only with borders in it. This shapefile is bigger in size (covering a bigger area) with many border lines. The border lines form many mosaic pieces (tiles).

How can I cut a part out of the map shapefile with the border shapefile as one mosaic piece?

Where is the answer described in the Manual (en or dt) or in the answer to another question?

closed as too broad by PolyGeo, Paul, Curlew, Fezter, Simbamangu Nov 17 '13 at 12:58

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    in what software and version? – Stev_k Sep 11 '12 at 13:00
  • 2
    I Don't think I really understood your question. But I believe you need or a Clip or an intersection. – Alexandre Neto Sep 11 '12 at 13:23
  • If you are using ArcInfo 9.0 then you can use the erase function, which is not available in ArcView. – user24063 Nov 17 '13 at 1:55
15

you can use ogr2ogr if you want:

ogr2ogr -clipsrc polygonforclipping.shp out.shp in.shp

* * *

-clipsrc [xmin ymin xmax ymax]|WKT|datasource|spat_extent: (starting with GDAL 1.7.0) clip geometries to the specified bounding box (expressed in source SRS), WKT geometry (POLYGON or MULTIPOLYGON), from a datasource or to the spatial extent of the -spat option if you use the spat_extent keyword. When specifying a datasource, you will generally want to use it in combination of the -clipsrclayer, -clipsrcwhere or -clipsrcsql options

2

Assuming you're using ArcMap, I think what you want is the Clip tool. With it, you can use the border shape files to "cut" through and divide the other shape file.

1

Assuming that you are using ArcGIS 10 then you can use the Clip Analysis.

http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Clip%20(Analysis)

QGIS has the same tool as well.

0

Using ArcGIS 10.1

Intersect (Analysis) Desktop » Geoprocessing » Tool reference » Analysis toolbox License Level:Advanced

"Computes a geometric intersection of the input features. Features or portions of features which overlap in all layers and/or feature classes will be written to the output feature class."

enter image description here

Source:

http://resources.arcgis.com/en/help/main/10.1/index.html#//00080000000p000000

Not the answer you're looking for? Browse other questions tagged or ask your own question.