Tag Info

New answers tagged

0

Melvin should've just replayed to the thread on the mailing list... Looks like you invented a new gxp prototype that doesn't exist in gxp_arc... The proper syntax to use is; source: gxp_olsource with type: OpenLayers.Layer.XYZ You can also add the name as an additional variable like this: "name":"Name", Heres a full example: { "source": {"ptype": ...


0

here a few leads : make sure Geoserver doesn't reproject all the layers everytime a query is made Have a look at the GeoWebCache for more info the docs should help you : superdocs


3

Assuming all your text files are into the same directory, you can run this code snippet in the QGIS Python console to get your files loaded as individual layers in QGIS: import os.path, glob layers=[] for file in glob.glob('/tmp/xy/*.txt'): # Change this base path uri = "file://" + file + ...


0

I would try this: import arcpy mxd = arcpy.mapping.MapDocument("C:\Project\Project.mxd") #I'd like to create a list for lyr in arcpy.mapping.ListLayers(mxd): if lyr.dataSource == (r"C:\Project\Data\Aerial\SID_2014"): lyr.replaceDataSource(r"C:\Data\Aerial\SID_2015", "SHAPEFILE_WORKSPACE", "SID_2015") mxd.save() At the moment you are making ...


1

For anyone who is interested, I just learned a really quick way to do this. Zoom into the area / extent you are working with > open image analysis window > click the clip tool under processing. A layer will be added to the map of the area in the extent when you performed the clip function.


2

If you won't use ArcGIS Online basemaps, then don't add any map of the basemap type. Add Tiled map service and then add Dynamic map service. Add a slider to manage opacity of the top layer. Generally, Esri refers to a basemap as to any reference map that is drawn underneath all other layers and is used for orientation. In terms of JS API, basemaps are Esri ...


0

I have found a solution to my problem. I spent quite a bit of time trying to find the solution to the 64 bit problem. Instead, I installed 32bit version of QGIS v2.8.2 and now it works perfectly. Perhaps just a version error. This fixes the solution. 32bit it is.


0

In this case, You can add the layer multiple times to the table of contents for each color you wish to display. Set your definition queries for each layer so that only the features you want are shown on your map. Apply the same graduated symbols to each. If you have a large number of colors, this will be a bit intensive.


0

Looking good! The problem seems to be using createVis (which already includes the setup from the map you created in CartoDB) with creating a map through Leaflet. Something like this should work: window.onload = function() { var vizjson_url = 'https://shane-mccoy-design.cartodb.com/api/v2/viz/40df9536-ef52-11e4-af32-0e0c41326911/viz.json'; ...


1

Image services such as these do not perform at full capacity unless your dataframe is in the same projection as the image service. To rectify the situation make sure your current data frame is set to the SouthAfrica_Albers_Equal_Area_Conic projected coordinate system. Once you do that, you will find the image service is quite snappy. Right click the ...


1

You could use this method: http://support.esri.com/em/knowledgebase/techarticles/detail/30330 or create a polygon representing the area you need to clip and use the Clip function to clip it out.


0

Your code is not going to work for these reasons: You need to add a wildcard "*" to ".mxd" and ".lyr" so that these return something (lines 3 and 4) You referenced "mxds" instead of "maps" on line 6, and it needs to be referenced as a arcpy.mapping.MapDocument because you need to save later. You need to nest the add each layer in a loop (line 8) You ...


2

Regarding CartoDB: Those 10 layers that you mention can be moved to CartoDB in just one single layer. :-) CartoDB allows you to edit your layers in two ways: by using SQL (to filter or alter the actual data you want to show) and/or by using CartoCSS, which will allow you to style your geometries even independently inside the same layer. I recommend you ...


0

I would suggest managing your data as 3 separate layers and setting their order in Leaflet via MapBox.js. You would essentially have one base layer from MapBox Studio that is just background data like imagery or topography. Next you would have your CartoDB layer. Lastly would be a layer of labels, roads and places from MapBox Studio. I have done this ...


0

One solution is to make the landmine points transparent. Another is to add the place name labels as a new layer - This assumes you can find a place name layer and reuse it. If you have a map option that hides everything except placenames and another map option that shows a base map without labels, then you could draw the base, then add the landmines, then ...


2

For the second problem, I contacted the author (as suggested by DWynne) who gave the correction: for filename in dirpath[2]: That corrected the problem. The author told me he contacted Esri shortly after this made it into print but Esri hasn't changed it on the web. He told me he'd contact them again. For the first problem of this script not listing ...


3

Combine all text files in a windows directory with the copy command: copy *.txt river.txt On Linux use the cat (concatenate) command: cat * > river.txt Then in QGIS for the merged text file use 'Add Delimited Text Layer' button.


2

Leaflet's map.fitBounds has an option padding which you can use like so: map.fitBounds(polygon.getBounds(), { padding:[50,50] } ); JSFiddle demo: http://jsfiddle.net/1vjqjx6h/


0

I believe this occurs because the ESRI JavaScript API actually adds separate graphics layers for different feature types within the KML file. These layers are added after the KML file is loaded and so loaded on top of any previous maps. Perhaps you could explicitlyreorder the KML layer(s) from within an invisible widget once all the layers have been loaded. ...


5

Yes, very simple: Just use the Categorized Symbology. If you do not have any attributes, you can just use $id as your "Column". Result:


0

You can access the number of features in the cluster strategy object. If there were no more strategies added to the layer, the correct path to the array is the following: mylayer.strategies[1].features


1

based on srussking answer I wrote the following code assuming the main map object called map and it is a global var, I preferred using find layer by name and not by id, here is my code: function moveLayerBefore(old_idx, new_idx){ if((old_idx === -1) || (new_idx === -1)){ return false; } layer = map.getLayers().removeAt(old_idx); ...



Top 50 recent answers are included