Tag Info

New answers tagged

3

I would not normally jump in when a question has effectively been answered in the comments but it seems some confusion has crept in. If you want to export your raster as is but with compression there are lots of ways of doing it but Project->Save as Image is NOT one of them. This takes a georeferenced snapshot of the current data view, which can be ...


2

If you do have ArcGIS and no SA: you might consider converting to points, deleting the values below 12, making the rest of the values a single integer, convert to raster, and then converting to polygon.That polygon would be used in the clips and advanced drawing layer masks, I tested this on an SRTM, and it worked well: import arcpy from arcpy import env ...


2

You can use the Freehand editing plugin (not to be confused with the trace edit tool). Get this by installing it through the plugins menu option. Another option would be to use edge detection in the Processing toolbox (Have a look at tools in GRASS and Orfeo. SAGA maybe has one too I forget). The downside of this is that it will detect all edges. What I ...


3

You cannot clip a vector file with a raster file. So you need to convert your raster to polygon first. In ArcGIS, you can use "raster to polygon" from the Conversion toolbox (no need for an extension). The problem is that you first need to create the mask, and there is no built in tool in ArcGIS without spatial analyst. So this step has to be done in ...


0

You did not specify which software you use in your question. Based on some of your other questions you are using ArcGIS in which there are a couple of ways to solve this problem. One would be to use Raster to Polygon to convert your raster to a vector layer. You may then need to merge or dissolve the resulting shapes into a single bounding box which you can ...


4

You can use QGIS' Delimited Text Layer support to add the layer to the map, at which point you can right-click the layer and select 'Save As...' to convert to Shapefile or other supported formats.


0

there is a contour-plugin, which you can load via plugin-manager. additional infos here: https://github.com/ccrook/QGIS-Contour-Plugin


0

Based on your version and software, the ArcGIS Snap tool should do what you want. It does require a Standard or Advanced license. Alternatively, ET GeoWizards has a snap polyline tool that may also work.


0

Found what was the problem. Following that example, I thought that that syntax was referring to properties inside OpenLayers. Instead it wasn't. Where you have to indicate the style, you have to put the name of the namedLayer of your sld, like so: var format = new OpenLayers.Format.SLD(); OpenLayers.Request.GET({ url: 'style/roadsStyle.xml', ...


0

In order to render this as a polygon, you need to enclose the coordinates in an additional pair of square brackets: lr = new ol.geom.Polygon([[ [aoi.west, aoi.north], [aoi.east, aoi.north], [aoi.west, aoi.south], [aoi.east, aoi.south] ]]).transform("EPSG:4326", "EPSG:900913")


0

At OpenLayers Cookbook code examples (http://acanimal.github.io/Openlayers-Cookbook/) there is a working example, see "Chapter7 - Styling - Improving style using StyleMap and feature's attributes replacement". Create your style intent without using rules, really you are not using them because you are not setting any condition to filter. For example try ...


0

Well, took me a couple of hours but I found one way to do it. It requires you to use dojo.js, (which unfortunately I can't use for my project but thought I'd share for anybody else that's looking). Basically, as I understand it, dojo adds a custom wrapper to openlayers map which allows you to add Dojo GFX Shapes and Widgets - which includes Pie Charts! ...


3

You are probably looking for the Define Projection tool (under Data Management, Projections and Transformations). Unlike Project, which will transform from one coordinate system to another (e.g. -119.789° becomes some large number of meters), Define Projection changes the coordinate system for the data itself and is appropriate to use when ArcMap is ...


0

What your looking at doing is to: Reclassify your Raster into categories (i.e. 0-20, 20-40, 40-60, 60+) http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?id=4804&pid=4803&topicname=Understanding_reclassification Convert Raster to Vector Clip the output with the polygon shapefile of India. As John Barca mentioned lots of tools. What ...


0

I solved it myself. To hide the icon: set the externalGraphic to null. To be able to show the correct icon again I had to assign a new attribute to the feature, with info of the original icon (in my case just a code word, retrieved from the checkbox ID). To show the icon again: check if it is null, and if so set the correct icon with the icon attribute. The ...


2

Thanks @whuber for pointing me in the right direction. I found my answer here. I had to reproject the raster layer into World Mercator (EPSG 3395), and then load it back onto my map where OTF reprojection put it in the right spot. I tried Pseudo Mercator (EPSG 3857) and that seemed to work too.


0

I have just had a quick play using the developer tools in chrome to apply display:none to hide a feature, by changing it to display:inherit, the feature reappeared. I suggest you try using: var feature = pois.features; for (var i = 0; i < feature.length; i++) { if (feature[i].style.externalGraphic == "url to icon") { ...


0

With current GDAL 1.11.1, it is possible to read and write GeoPDF vector data with ogr2ogr -f sqlite out.sqlite in.pdf and backward ogr2ogr -f PDF out.pdf in.sqlite Styling a PDF output might still be handwork though. But Acrobat reader is able to display coordinates, and select layers individually.


0

Ok, it seems the "icon" in my text file was not interpreted as an attribute at all, but as an externalGraphics link. Logical off course, I just didn't get it. So now I'm able to access my icons with: function hideFeatures() { var feature = pois.features; for( var i = 0; i < feature.length; i++ ) { if (feature[i].style.externalGraphic ...


0

You are encapsulating your pois in a function using var, hence it's not possible to access it directly (search JavaScript scope on a search engine) You can always access at your demo page the pois features indirectly because map is global and layers are attached to map with map.layers[1].features Clearly, it's not safe to use an indice [1] as it may change ...


4

It seems that you must use the Dissolve tool, based on a common attribute. http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000005n000000


0

I found the solution.... The parameter in Options|Digitizing|Snapping "Search radius for vertex edits" has to be non zero... With zero value Node tool gives the reported message.



Top 50 recent answers are included