Tag Info

New answers tagged

4

The reason you cannot edit these layers is because it is not a file. It is a map service. What you are seeing is a web service. A web service is data that is hosted on a server elsewhere, that is not your computer. Your computer is going out and getting the data live from OLIVER when you look at it in ArcMap. In this case the data you want to edit is ...


0

You could probably convert your bounding box to a rectangle using ST_MakePolygon() and use ST_Contains() to check whether the polygons are contained within the bounding box. While returning, if you want GeoJSON, just use ST_AsGeoJson() Before doing this, if you have a big table, you might want to index your geometry column as GIST. That should speed up your ...


1

To answer your question about grabbing the layer from a clicked feature, you can do the following: map.on(ol.MapBrowserEvent.EventType.SINGLECLICK, function (e) { map.forEachFeatureAtPixel(e.pixel, function (feature, layer) { ... }); }


0

found the answer: the clustered feature (placemark) is "inside" the cluster feature, not the layer. SOLUTION 1 first way out (not most efficient): inside onFeatureSelectFeature(featureId) i loop thru cluster features as seen below: function onFeatureSelectFeature(featId) { var layerNow = map.getLayersByName('Paradas')[0]; var layerFeatCount = ...


0

You have to take a look at your two data sets and find out some rule that defines if two buildings is the same. For instance you can check if the centroid of one epolygon is inside a polygon i the other layer. I am not familliar with the functions in Oracle vut I guess it is about the same as PostGIS. So, if you can use the method above it woild look ...


0

Assuming both tables use some building ID that is the same for a building in either table, something like SELECT [columns] FROM table_1 UNION SELECT [columns] FROM table_2 WHERE NOT EXISTS (SELECT 1 FROM table_1 WHERE table_1.BuildingID = table_2.BuildingID)


0

That code are worked: import arcpy,os,sys from arcpy import env env.workspace = r"C:\Project" for mxdname in arcpy.ListFiles("*.mxd"): print mxdname mxd = arcpy.mapping.MapDocument(r"C:\Project\\" + mxdname) df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] LayerList = ...


0

This github page has some QGIS style files for OSM data: https://github.com/3liz/osm-in-qgis Other sources can be found at http://planet.qgis.org/planet/tag/osm/ http://planet.qgis.org/planet/tag/style/ You might test them with some smaller test data to see if the database queries work with your spatialite database.


0

Ok, based on your comments in chat, (that you know which data frame to insert into) and the fact that code won't format in chat (at least, I don't know how), try this: # no need to keep declaring the inserted layer in the loop. This could be shortened, # but I like this way because it makes it easier to swap in new values basedir = r"C:\Projects" newlyr = ...


2

dflist will contain a list of the data frames in the mxd. Use index notation to access a specific data frame. The first data frame will be dflist[0], the second will be dflist[1], and so on. Edit: although, since you're looping through dflist, what you probably want to do is check the name of the data frame: if df.name == 'correctdataframe': ...


0

There is another option: Select multiple layers (using either Shift-click to select a group or Ctrl click to individually add layers to your selection). When you have several selected, right-click and choose "Group Selected". I find this less fiddly than first creating the group and then dragging layers to it (although that is a perfectly valid option).


5

AndreJ and SS_Rebellious provide valid answers. However, there is another option which I find easier than creating the group and dragging layers in to it. You can select all the layers you want in your group (select multiple layers by holding down shift which selects everything between your first selected layer and the second one you click on, or hold ...


1

Rightclick on free space in the Layer panel -> Add group. This might be cumbersome if you have filled the whole panel with layers. For that reason, an icon bar has been added to the layer panel in the new QGIS 2.6. Once you have created a group, you can move layers into that group.


2

Right click on the empty space at TOC (Layers), choose Add group. Drag and drop layers into the created group.


0

I think that could be related with the pane each layer is taking not the order you add to the map. In torque for gmaps we use CanvasLayer and it adds itself a overlaysPane (https://github.com/CartoDB/torque/blob/master/lib/torque/gmaps/CanvasLayer.js#L54), I guess changing the pane or zindex or the layer would work


0

In the view menu, scroll down to panels and select layers (not layer order), then you will see the symbol under the layer name. In this case you can right click and go to properties.


2

If you right-click in the Layer's window, there should be an Add group option. Select this to create sub-sections by dragging your layers into it.


0

If this is the entirety of your code it appears that you are not setting the workspace for the geo-processor. When you create the raster output name with this line of code: raster = fieldName + "b_idw.tif" you are not specific where it should go. Therefore it appears to be defaulting to a default temp location. So I recommend you adjust this to include ...


1

Try something like: map.getLayers().setAt(99, markers) The list of layers is in an object inheriting from an ol.Collection. See the API doc for it. Be careful, I'm pretty sure, you can't use arbitrary number like 99 in setAt: first arg is for the position in the array of layers and the second arg is for the layer element reference you want to move. To ...


0

It was a bug in QGIS 2.4 (as shown at https://hub.qgis.org/issues/10747), which has been fixed for the upcoming 2.6 release.


0

The problem is solved by Matthias Kuhn, see Here. QgsLayerTreeMapCanvasBridge should help you there header: QgsLayerTreeMapCanvasBridge* mLayerTreeCanvasBridge; source: mLayerTreeCanvasBridge = new QgsLayerTreeMapCanvasBridge( QgsProject::instance()->layerTreeRoot(), mMapCanvas, this ); QgsProject::instance()->read( path_to_your_project_file ...


3

I think you should check that you are using the List By Drawing Order view of your Table of Contents. Of the four views described in Using the table of contents it is the only one which will allow you to change the drawing order.


1

It works with this demo using your code So, how do you call init() and how your HTML look?


0

I think this code is a bit sloppy, but it gets the job done: # Adjust layer symbology out_layer = "shape.lyr" layer = "shape.lyr" arcpy.MakeFeatureLayer_management(Output_Feature_Class, out_layer) arcpy.SaveToLayerFile_management(out_layer, layer, "ABSOLUTE") arcpy.ApplySymbologyFromLayer_management(out_layer, symbology) ...


1

If you mean minimum bounding box of your data that the WMS is rendering you need to make a separate call to geoserver (WPS) to get that given that your datasource is in a vector format. Or you could call the REST-API to get the configured bounding box of the layer.


0

Your longitude and latitude on your icon is reversed in comparison to your view.. Also you'll probably have to use ol.proj.transform(Longitude, Latitude fromProjection, toProjection) on the icon as well. (Not sure what your projection_lan and projection_lat is)


2

I am going to write this in VB.Net since that is what I know, and hopefully you can figure out the C# way to do it: To find all the layers, use IEnumLayer interface: Dim pEnumLayer As IEnumLayer = My.ArcMap.Document.ActiveView.FocusMap.Layers(Nothing, True) The second argument determines if this drills down into composite layers. To get the layer from ...



Top 50 recent answers are included