title: How can I geocode to a shape instead of a coordinate?

text: **Geocoding to a shape instead of a point** The project I'm currently working on is Find-A-Record. We are geocoding genealogical record collections and storing them in a spatial index (browse our blog if you want to know more). Searches are based on a shape. We return collections which intersect or are contained within the search area. During the early states of development, we used geonames to geocode collections to a point. This works well for collections which are associated with lower administrative levels such as cities, towns, and villages. However it really breaks down when you get the county, state, and country level. The 1940 US Census is associated with the United States and would be assigned a point in Northern Kansas. Any queries within the US that aren't near that point won't return the 1940 US Census. To solve this we need to geocode collections with a shape instead of a point. **OSM** OpenStreetMaps has the data we need, but it's extremely difficult to extract. The administrative hierarchy is not explicitly stored. Nominatim is used to solve this problem for OSM a Nominatim search only returns features. So a query for Knighton on Teme returns two bus stops but not the administrative boundary relation. The Overpass API looked promising but it can't do fuzzy string matches. Overpass can only do exact or regex matches. We could use Overpass if there was an easy way to standardize place names. In other words, if OSM provided a way for us to standardize "Knighton on Teme, Worcestershire, England" to "Knighton on Teme CP, Malvern Hills, Worcestershire, West Midlands, England, United Kingdom" according to the OSM hierarchy then fuzzy string matching wouldn't be necessary. **Summary** What we need is a service which allows us to perform fuzzy string searches for a place (or administrative level) and retrieve it's boundaries. We recognize that it will be difficult to obtain boundary data for the entire world. Thankfully we probably won't need to anytime soon. We only need data for areas of the world where genealogical records exist and genealogists do research. It's looking like we will need to build our own service which indexes OSM in such a way that enables us to query for administrative boundaries. But we would really prefer not to. Is there any other way we can retrieve this data with existing services?


title: Error getting spatial reference as string in arcpy

text: I am trying to get the string associated with a spatial reference to print into an xml using arcpy and xml.cElementTree. Using the snippet:               ...     spatial_ref = arcpy.GetParameterAsText(3)     ...     Prj = et.SubElement(spaceref, "Prj")     space = arcpy.SpatialReference(spatial_ref)     Prj.text = arcpy.SpatialReference.exportToString(space)     ...      Using essentially the same method, I am able to get the string to print with IDLE by pointing directly to a projection (.prj) file, e.g.: > > u"GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 > -400 1000000000;-100000 10000;-100000 > 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision" but Arc returns this error when I try to run my script: > Traceback (most recent call last): File "\DEFOE\Proc Storage\ORTHO\Arc > Custom Tools\ImportUltracam.py", line 99, in space = > arcpy.SpatialReference(spatial_ref) File "c:\program files > (x86)\arcgis\desktop10.2\arcpy\arcpy\arcobjects\mixins.py", line 927, in > **init** self._arc_object.createFromFile(item) RuntimeError: ERROR 999999: > Error executing function. Is there a way to input a spatial reference with Arc and return the string to be printed into the xml? **Update** Playing with IDLE, I tried with an EPSG code and was able to do exactly what I wanted:               >>> epsg = arcpy.SpatialReference(32618)     >>> print epsg     <geoprocessing spatial reference object object at 0x000000000C7D0710>     >>> arcpy.SpatialReference.exportToString(epsg)     u"PROJCS['WGS_1984_UTM_Zone_18N',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-75.0],PARAMETER['Scale_Factor',0.9996],PARAMETER['Latitude_Of_Origin',0.0],UNIT['Meter',1.0]];-5120900 -9998100 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision"      So I tried with an EPSG code in the script:               spatial_ref = "32618"     Prj = et.SubElement(spaceref, "Prj")     space = arcpy.SpatialReference(spatial_ref)     Prj.text = arcpy.SpatialReference.exportToString(space)      And I get the same error.


title: How to handle QGIS 2.2 Data Defined Label Position on PostGIS Layer Null Defaulting to 0?

text: I just upgraded to qgis 2.2 from 2.0. In 2.2 there was a minor change to data defined label positioning at least when used with postgis layers. In Version 2.2 the labeling engine appears to be treating null values in labelX and labelY as 0 instead of null. It is also doing this in the feature form, but not when I view the Attribute table. The result of this is that when I have data defined label positioning turned on and I save a feature without moving the label the label is rendered at 0,0 instead of at the feature centroid. In postgis I have my label coordinates defined as real and qgis is treating them as a double float4. After looking at another thread I loaded the same label coordinates as first a String, and second as an Integer. My labels behaved properly when I had the coordinates defined as strings. Is there any way to fix this problem by changing a setting within qgis? My options currently appear to be either changing all of my label data types to strings or writing trigger functions to populate my label position fields with the centroid of each polygon. Is there another strategy that I can use to address this bug? Thank You.


title: Site Selection using Spatial Analyst

text: How can I select a recreation site location based on the criterion that it should AT LEAST be 500 m from a river (shapefile) and AT MOST 15000 m from the same river using Spatial Analyst Extension? -Umair


title: What is ArcGIS 10 definition query to select max value from table?

text: I want to select max date from may layer by below query in my Web GIS but I cannot.               (SELECT MAX( GregorianDate ) FROM DrillingProgress WHERE Crew = 'c-Chabock')


title: How do I get around license error when creating custom tool?

text: I created a custom geoprocessing function tool according to this link . . http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Building_a_custom_geoprocessing_function_tool/00010000049w000000/ I went through the following instructions in order to create a custom tool in a toolbox, but got the error "You do not have the necessary license to execute the selected tool" when attempting to run the custom tool . . . 1) Register the DLL (in the Debug folder) with ESRIRegAsm utility. ESRIRegAsm.exe is located at, ~:\Program Files\Common Files\ArcGIS\bin folder. Use this example . . . Do the following to register the assembly: Desktop—ESRIRegAsm /p:desktop "C:\Test\MyAssembly.dll"                          Engine—ESRIRegAsm /p:engine "C:\Test\MyAssembly.dll"      2) Create a custom toolbox in a folder or a geodatabase. ArcGIS for Desktop users have the option to add the tool to a custom toolbox manually in ArcCatalog, ArcMap, or ArcGlobe. Right-click a custom toolbox, choose Add, click Tool, expand my function factory, select my tool, and click OK. The tool is added to the custom toolbox.


title: Ubuntu Raring - Openlayers Plugin 1.8 or 1.9 Master

text: Relative newbie to Ubuntu and QGIS. Many questions are posted relating to the Openlayers plugin. It works fine in windows but I cannot get it to work or even appear in either 1.8 or 1.9. The "fetch python plugins" option is missing from the menu. I've tried the temporary fix for 1.9, also no go. I've used Synaptic packet manager, the wiki and sources.list and every other tip. It does not work. I can install, uninstall, purge, clear the source.list, remove entries from Synaptic, re-install from software centre, etc etc but nothing works. Thanks in advance, JH


title: OpenLayers create marker (feature with icon) from WKT

text: I have a point object WKT. Like this: `POINT (25.04568 48.221548)`. Also I have an icon in my project folder. My goal is to show on a map **an icon** that represents a feature. Can it be just a normal OpenLayers feature (if yes, then how can I define that it should represent and icon) or do I need to create an OpenLayers marker (somehow create `LonLat` from WKT)?


title: How can I get the vertical profile of my trail?

text: I am creating some online maps for trails and I'm trying to figure out how to turn my lat/long data into vertical profiles roughly like the following. I'm not so concerned about the markers/labels, though the x/y axes would be nice to have. ![enter image description here](http://i.stack.imgur.com/guA6I.jpg) So far I have just been building out a prototype using Leaflet.js - soon I expect to do a full overhaul, possibly using Drupal as a framework/CMS. So the door is wide open as far as implementation goes - it would just need to be something I can do programatically from a web server.


title: Is there any learning material available for GE Smallworld?

text: I have been searching for any kind of tutorial or getting started kind of material for GE Smallworld. From there website, I couldn't find anything relevant. May be I am missing or overlooking sometging there. Also is there any demo or trial version available for the same to explore? It is surprising that there is no tag for Smallworld yet at GIS SE!


title: Calculating distance to a feature from a reference line

text: I have multiple shapefiles, each containing a coastline for a specific year. I want to calculate the perpendicular distance to the shoreline from a fixed vertical reference line. Please recommend me the best tool (in ArcGIS-Desktop) to find out the perpendicular distance from each point (or a definite number of multiple points) on the reference line to the shoreline shapefile. I have included a screenshot to describe what I am planning to achieve. I am hoping to be able to create 1 custom point per 100m on the reference line and then calculate the distance to the shoreline from these points. ![Measuring distance from Reference line to Shoreline](http://i.stack.imgur.com/eUS52.png)


title: how to add a raw input to a SQL string?

text: I have this py script for selecting one point. _# Within selected features, select only those points of a chosen value_   arcpy.SelectLayerByAttribute_management("Stations", "NEW_SELECTION", ' "OID" = 465 ') That works but every time I want to select a new station then I have to change the station number in the SQL statement. How can I select a new station as a raw input instead of editing the script every time?


title: osm2po vertices table, what does ref_count stands for?

text: i am using osm2po to import osm file, into postgres/gis. after de commenting in osm2po config file:               #postp.2.class = de.cm.osm2po.plugins.PgVertexWriter      i get a nice vertices table, with turn restrictions. i also get a ref_count column for each vertex id. i am trying to understand what it stands for. initially i thought its how many times this vertex exist in the table, but quickly i discovered its untrue. i will appreciate any help/insights as to ref_count column and its meaning. specifically, i am trying to understand, given a target vertex, how many options for turning i have. (how many vertex and which are accessible via this vertex) example: if im on vertex id 111, -> can access vertex id 112 and 113 i thought ref_count might help with that. (just the number of possible vertex's will be useful for me, and yes i can count it easily myself, but im curious about ref_count) thanks for your help!


title: Copy text to clipboard with MapBasic

text: I think the title says it all - is it possible to programmatically copy/paste some text to/from the windows clipboard using MapBasic? I have found this discussion but it only discusses copying and as it's two years and 1.5 versions ago I'm wondering if there's a better/more native option.


title: How to creat a graph from a Field values (VBA_ArcObjects)

text: I have a combobox that shows all fields of a shapefile. I want to get these values programmatically in a label--Count, Minimum, Maximum, Sum, Mean, Standard Deviation--and populate a graph of the selectable fields in the combobox. All that in the same form. Please could anyone help me :(


title: Why is this line split in two?

text: Even though this is a single line, it is stored as a two-part polyline. I can split it and rejoin at the break, but whatever I do it won't join the two into one line. (This is most obvious if you turn on labels.) What's going on here? http://pastelink.me/dl/a8ca3e


title: Mapserver can't write in /var/www/mapserver/log/

text: I'm executing Mapserver 5.6.4 under Apache2 in a Ubuntu 10.04 machine. I'm having problems writing log file. In the mapfile, I have:               CONFIG  "MS_ERRORFILE" "/var/www/mapserver/log/mylogfile.log"     DEBUG   5      Any request I make gets the same answer msSetErrorFile(): General error message. Failed to open MS_ERRORFILE /var/www/mapserver/log/mylogfile.log If I change the path to /tmp/mylogfile.log it works, but then I have a similar problem with SLD: msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with curl error code 7 (Failed connect to mymachine:80; Operation now in progress) for http://mymachine/sld/polygon_simplepolygon.sld msSLDApplySLDURL: WMS server error. Could not open SLD http://mymachine/sld/polygon_simplepolygon.sld and save it in temporary file /var/www/mapfiles/4df0f886_22dd_0.sld.xml. Please make sure that the sld url is valid and that imagepath and imageurl are set properly in the map file IMAGEPATH and IMAGEURL are properly set in Mapfile (a writable directory and a correct url). The log directory belongs to www-data, and the SLD directory too, and www-data has write permission in both directories. I made a test executing, with the www-data user, a python script that creates a file in those directories and it works. Why mapserv process can't do it? Even when I change the permissions of log directory or SLD directory to 777, mapserv can't write on them, but it can it /tmp. Why? Many thanks in advance, and best regards,


title: looking for free shapefiles, communications and water infrastructures

text: im looking for communications layers shp format, covering all middle east. anything free? thanks also im looking for water bodies, rivers, anything related to water in the same area. any suggestions? thanks


title: Creating and serving pdf files from ArcGIS server 10.0

text: I am tasked with sending map data from the Flex client to an MXD then to serve that as a PDF to the client and/or a server side location. Creating the PDF isn't an issue, however, I am having trouble finding a resource to let you now how to serve it to the client. Does anyone have any experience of this? Thanks in advance.


title: How to get index number of list item using Python?

text: this gives me a list of all 55 layers in my mxd               import arcpy      mxd = arcpy.mapping.MapDocument("CURRENT")      df = arcpy.mapping.ListDataFrames(mxd, "Layer")[0]      for lyr in arcpy.mapping.ListLayers(mxd, "*", df):         print lyr.name      What I want to do is get the index number of a specific layer. For example, I want to look for the layer named 'Water' and I want the script to tell me "Water' is at position 50, so I know to look for it at the bottom on the TOC. How can I do this?


title: Openlayers map WMS stretched by latitude

text: I am working on a small javascript application for displaying map with WMS layers from 2 servers. The problem is, that image is stretched by latitude, it is wider, as it should be. This is is how it is working now: http://postimg.org/image/pxk8lfnnd/ and this is how it should be, and how it Google maps displaying: http://postimg.org/image/al321lg6l/ This is javascript code:               var map = new OpenLayers.Map("map");     var ol_wms = new OpenLayers.Layer.WMS(     "NP Podyjí WMS",         "http://mapy.nppodyji.cz/cgi-bin/mapserv.exe?map=f:/mapserv/projects/map/nppodyji_wms.map",     {        layers: "nppodyji_wms,hranice_npt,hranice_np,cyklo_CR",        transparent: "true",       format: "image/png"     },     { isBaseLayer: false, visibility: true }      );          var ol_cz = new OpenLayers.Layer.WMS(     "Česká republika",     "http://geoportal.gov.cz/ArcGIS/services/CENIA/cenia_arccr/MapServer/WMSServer",     {layers: "0,3,4,6,7,10,12,13,14,15,16,17,19,20,21,22,23,24"}     );          map.addLayers([ol_cz, ol_wms]);     map.addControl(new OpenLayers.Control.LayerSwitcher());     map.zoomToMaxExtent();          setTimeout(function() {     var fromProjection = new OpenLayers.Projection("EPSG:102067");   // Transform from WGS  1984     var toProjection   = new OpenLayers.Projection("EPSG:900913"); // to Spherical Mercator Projection      var position       = new OpenLayers.LonLat(15.8186 + (15.9626 - 15.8186) / 2,48.8027 + (48.8866 - 48.8027) / 2 ).transform( fromProjection, toProjection);       map.setCenter(position, 13);         }, 100);      I tried many map.projection and map.displayProjection changes, but I'm not really sure, if it's projection problem. It is only an example of bigger application, which take points from database and displays them dynamicaly. Displaying is correct; problem is, that client don't want it in different shape Projection should be EPSG:102067, in HTML I have also included proj4js.js. Thanks a lot for any help! EDIT: I've solved only half of the problem: Without any display settings, it is displayed like this: http://postimg.org/image/czs81gzwj/ When I used:               var ol_cz = new OpenLayers.Layer.WMS(         "Czech",         "http://geoportal.gov.cz/ArcGIS/services/CENIA/cenia_t_podklad/MapServer/WMSServer",     {layers: "blablabla"},         { projection: new OpenLayers.Projection('EPSG:3857')}      );      it looks like this: http://postimg.org/image/vm8rkxgoz/ so exactly what I want! However problem is with another WMS server. When I was trying to change projection, or displayProjection in:                   var ol_wms = new OpenLayers.Layer.WMS(         "NP Podyji WMS",         "http://mapy.nppodyji.cz/cgi-bin/mapserv.exe?map=f:/mapserv/projects/map/nppodyji_wms.map",         {             layers: "nppodyji_wms,hranice_npt,hranice_np,cyklo_CR",             transparent: "true",             format: "image/png"         },         { isBaseLayer: false, visibility: true } ,         { projection: new OpenLayers.Projection('EPSG:XXX'),         displayProjection: new OpenLayers.Projection("EPSG:XXX")     }              );      It has basicly no efect :/. I was trying several projections in "projection" attribute, also in displayProjection, but only visible output was http://postimg.org/image/yv0oe22tf/ (note the pink square on the bottom). So it get some parameters, but they are wrong, or maybe he server is wrong, I'm not really sure. The 2nd wms did not fit in the baselayer (1st WMS)


title: Issues when importing line shapefiles into NetworkX

text: Note that although I am using Python Console from within QGIS for this, I don't think it's a QGIS issue. Below is the difference of how NetworkX is dealing with 2 line layers created by the same source and of the same geographic area: **Layer 1 behaviour:**               >>> import networkx as nx     >>> import matplotlib.pyplot as plt     >>> lyr_1 = nx.read_shp(str(iface.activeLayer().source()))     >>> lyr_1.nodes()[:10]     [(-66.9813, 46.988354), (-66.927948, 45.855299), (-66.019929, 45.902869), (-64.862855, 46.686669), (-65.678366, 47.000052), (-67.335783, 47.350849), (-64.903621, 46.102999), (-66.525846, 46.049331), (-64.834094, 46.105918), (-64.780438, 46.095201)]          >>> lyr_1.edges()[:10]     [((-66.9813, 46.988354), (-66.973318, 46.982436)), ((-66.927948, 45.855299), (-66.929311, 45.855625)), ((-66.927948, 45.855299), (-66.92766, 45.857282)), ((-66.019929, 45.902869), (-66.017847, 45.902763)), ((-64.862855, 46.686669), (-64.861357, 46.688359)), ((-64.862855, 46.686669), (-64.861859, 46.685471)), ((-65.678366, 47.000052), (-65.67414, 47.00105)), ((-67.335783, 47.350849), (-67.335363, 47.353686)), ((-67.335783, 47.350849), (-67.326822, 47.349927)), ((-64.903621, 46.102999), (-64.903472, 46.103577))]          >>> route = nx.shortest_path(lyr_1, lyr_1.nodes()[1], lyr_1.nodes()[10])          >>> route_length = nx.shortest_path_length(lyr_1, lyr_1.nodes()[1], lyr_1.nodes()[10])     >>> route_length     158          >>> route_graph = nx.subgraph(lyr_1, route)      >>> nx.draw(route_graph)     >>> plt.show()      The following is the result: ![enter image description here](http://i.stack.imgur.com/quRWM.png) **Layer 2 behaviour:**               >>> lyr_2 = nx.read_shp(str(iface.activeLayer().source()))     >>> lyr_2.nodes()     []          >>> lyr_2.edges()     []          >>> nx.draw(lyr_2)     >>> plt.show()      No plot is shown of the second layer. I am confused to this problem as both layers were created by the same source. **Question:** Why isn't NetworkX reading my second layer properly?


title: Pie-Chart Coordinates in QGIS

text: I have a map of a region and I am plotting pie-charts (as diagrams) over every country in that region in QGIS (1.9.0). I also need to connect those pie- charts with lines (which I am creating in the Mapping Toolbox of MATLAB as a separate shape-file). Can you please tell me if there is a way of knowing in advance what coordinates of a country QGIS shows its pie-chart at? Also, can I capture those coordinates automatically (even before the pie-charts are drawn) just as I would normally do using the Coordinate Capture plugin? That way, I can create the lines from one point to another before even plotting the pie- charts. Thank you.


title: Adding KML to OpenLayers as a textstring

text: I am trying to display a kml as a vector Layer. I have it stored as a Perl scalar variable but have also tried setting it as a javascript variable. I've tried to separate bits of code that I got from questions on here. The first one produces no error but the vector_layer doesn't display http://www.geos.ed.ac.uk/~s0825955/cgi-bin/maps4.pl:               var kml_string = '<?xml version="1.0" encoding="utf-8" ?><kml xmlns="http://www.opengis.net/kml/2.2"><Document><Folder><name>scotland_one_inch_1st</name><Schema name="scotland_one_inch_1st" id="scotland_one_inch_1st"><SimpleField name="Name" type="string"></SimpleField><SimpleField name="Description" type="string"></SimpleField><SimpleField name="SHEET" type="string"></SimpleField></Schema><Placemark><name>John Thomson, Linlithgowshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Linlithgowshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.8271,56.0204 -3.3023,56.0204 -3.3023,55.8149 -3.8271,55.8149</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Stirlingshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Stirlingshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.6992,56.2988 -3.6282,56.2988 -3.6282,55.8927 -4.6992,55.8927</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Berwick-Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Berwick-Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-2.9047,55.944 -2.0344,55.944 -2.0344,55.5665 -2.9047,55.5665</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Peebles-Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Peebles-Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.5401,55.8247 -2.9182,55.8247 -2.9182,55.403 -3.5401,55.403</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Kirkcudbright-Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Kirkcudbright-Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.6636,55.3226 -3.563,55.3226 -3.563,54.7662 -4.6636,54.7662</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Edinburgh Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Edinburgh Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.7407,55.9899 -2.8252,55.9899 -2.8252,55.6441 -3.7407,55.6441</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Lanarkshire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Lanarkshire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.3831,55.9402 -3.394,55.9402 -3.394,55.2893 -4.3831,55.2893</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Haddington....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Haddington....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.0132,56.0792 -2.364,56.0792 -2.364,55.8175 -3.0132,55.8175</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Orkney Islands....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Orkney Islands....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.4344,59.3921 -2.3736,59.3921 -2.3736,58.6868 -3.4344,58.6868</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Roxburghshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Roxburghshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.1198,55.7047 -2.1658,55.7047 -2.1658,55.1084 -3.1198,55.1084</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Kincardine Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Kincardine Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-2.7564,57.1307 -2.0535,57.1307 -2.0535,56.7444 -2.7564,56.7444</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Caithness Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Caithness Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.8585,58.6938 -3.024,58.6938 -3.024,58.1369 -3.8585,58.1369</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Western Isles....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Western Isles....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-7.698,58.5156 -6.1365,58.5156 -6.1365,56.7781 -7.698,56.7781</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Dumbartonshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Dumbartonshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.8813,56.3316 -3.8628,56.3316 -3.8628,55.8899 -4.8813,55.8899</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Buteshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Buteshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.3982,55.9269 -4.899,55.9269 -4.899,55.424 -5.3982,55.424</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Sutherland Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Sutherland Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.4047,58.6275 -3.5972,58.6275 -3.5972,57.8487 -5.4047,57.8487</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Argyll Shire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Argyll Shire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-7.1189,56.8668 -4.5622,56.8668 -4.5622,55.2767 -7.1189,55.2767</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Selkirk Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Selkirk Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.3554,55.6913 -2.763,55.6913 -2.763,55.3408 -3.3554,55.3408</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Skye Island, &#38;c....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Skye Island, &#38;c....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-6.7898,57.7461 -5.648,57.7461 -5.648,56.8242 -6.7898,56.8242</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Angus Shire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Angus Shire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.4065,56.9857 -2.3875,56.9857 -2.3875,56.4327 -3.4065,56.4327</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Ross and Cromarty Shires. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Ross and Cromarty Shires. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.8722,58.1262 -3.7721,58.1262 -3.7721,57.0951 -5.8722,57.0951</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Aberdeen &#38; Banff Shires. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Aberdeen &#38; Banff Shires. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.8016,57.7065 -1.7667,57.7065 -1.7667,56.8723 -3.8016,56.8723</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Perthshire with Clackmannan....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Perthshire with Clackmannan....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.8529,56.9484 -3.0572,56.9484 -3.0572,56.0796 -4.8529,56.0796</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, County of Wigtown or Shire of Galloway...</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, County of Wigtown or Shire of Galloway...</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.1864,55.0613 -4.3442,55.0613 -4.3442,54.6336 -5.1864,54.6336</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Renfrew Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Renfrew Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.8985,55.9624 -4.226,55.9624 -4.226,55.6724 -4.8985,55.6724</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Fife with Kinross Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Fife with Kinross Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.7405,56.453 -2.5472,56.453 -2.5472,56.0059 -3.7405,56.0059</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Ayrshire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Ayrshire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.1242,55.8898 -3.9608,55.8898 -3.9608,54.9976 -5.1242,54.9976</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Dumfriesshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Dumfriesshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.1218,55.4606 -2.857,55.4606 -2.857,54.9645 -4.1218,54.9645</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Shetland Islands....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Shetland Islands....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-2.1162,60.8545 -.7347,60.8545 -.7347,59.5132 -2.1162,59.5132</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Nairn and Elgin....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Nairn and Elgin....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.0087,57.7248 -2.9907,57.7248 -2.9907,57.2932 -4.0087,57.2932</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Inverness Shire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Inverness Shire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-6.0806,57.6319 -3.4317,57.6319 -3.4317,56.6859 -6.0806,56.6859</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark></Folder></Document></kml>'; // you kml text stored as a javascript string     var kmlParser = new OpenLayers.Format.KML({extractAttributes: true});     var featurelist = kmlParser.read(kml_string);          var vector_Layer = new OpenLayers.Layer.Vector(featurelist);      Here is a second attempt. It produces `Uncaught SyntaxError: Unexpected identifier` when I try and add controls `select = new OpenLayers.Control.SelectFeature(vector_Layer);`. http://www.geos.ed.ac.uk/~s0825955/cgi-bin/maps3.pl               var vector_Layer = new OpenLayers.Layer.Vector();          function GetFeaturesFromKMLString (strKML) {         var format = new OpenLayers.Format.KML({            'internalProjection': myMapObject.baseLayer.projection,             'externalProjection': new OpenLayers.Projection("EPSG:4326")         });         return format.read(strKML);     };          vector_Layer.addFeatures(GetFeaturesFromKMLString('<?xml version="1.0" encoding="utf-8" ?><kml xmlns="http://www.opengis.net/kml/2.2"><Document><Folder><name>scotland_one_inch_1st</name><Schema name="scotland_one_inch_1st" id="scotland_one_inch_1st"><SimpleField name="Name" type="string"></SimpleField><SimpleField name="Description" type="string"></SimpleField><SimpleField name="SHEET" type="string"></SimpleField></Schema><Placemark><name>John Thomson, Linlithgowshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Linlithgowshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.8271,56.0204 -3.3023,56.0204 -3.3023,55.8149 -3.8271,55.8149</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Stirlingshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Stirlingshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.6992,56.2988 -3.6282,56.2988 -3.6282,55.8927 -4.6992,55.8927</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Berwick-Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Berwick-Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-2.9047,55.944 -2.0344,55.944 -2.0344,55.5665 -2.9047,55.5665</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Peebles-Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Peebles-Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.5401,55.8247 -2.9182,55.8247 -2.9182,55.403 -3.5401,55.403</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Kirkcudbright-Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Kirkcudbright-Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.6636,55.3226 -3.563,55.3226 -3.563,54.7662 -4.6636,54.7662</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Edinburgh Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Edinburgh Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.7407,55.9899 -2.8252,55.9899 -2.8252,55.6441 -3.7407,55.6441</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Lanarkshire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Lanarkshire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.3831,55.9402 -3.394,55.9402 -3.394,55.2893 -4.3831,55.2893</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Haddington....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Haddington....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.0132,56.0792 -2.364,56.0792 -2.364,55.8175 -3.0132,55.8175</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Orkney Islands....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Orkney Islands....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.4344,59.3921 -2.3736,59.3921 -2.3736,58.6868 -3.4344,58.6868</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Roxburghshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Roxburghshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.1198,55.7047 -2.1658,55.7047 -2.1658,55.1084 -3.1198,55.1084</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Kincardine Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Kincardine Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-2.7564,57.1307 -2.0535,57.1307 -2.0535,56.7444 -2.7564,56.7444</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Caithness Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Caithness Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.8585,58.6938 -3.024,58.6938 -3.024,58.1369 -3.8585,58.1369</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Western Isles....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Western Isles....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-7.698,58.5156 -6.1365,58.5156 -6.1365,56.7781 -7.698,56.7781</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Dumbartonshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Dumbartonshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.8813,56.3316 -3.8628,56.3316 -3.8628,55.8899 -4.8813,55.8899</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Buteshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Buteshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.3982,55.9269 -4.899,55.9269 -4.899,55.424 -5.3982,55.424</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Sutherland Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Sutherland Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.4047,58.6275 -3.5972,58.6275 -3.5972,57.8487 -5.4047,57.8487</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Argyll Shire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Argyll Shire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-7.1189,56.8668 -4.5622,56.8668 -4.5622,55.2767 -7.1189,55.2767</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Selkirk Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Selkirk Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.3554,55.6913 -2.763,55.6913 -2.763,55.3408 -3.3554,55.3408</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Skye Island, &#38;c....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Skye Island, &#38;c....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-6.7898,57.7461 -5.648,57.7461 -5.648,56.8242 -6.7898,56.8242</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Angus Shire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Angus Shire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.4065,56.9857 -2.3875,56.9857 -2.3875,56.4327 -3.4065,56.4327</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Ross and Cromarty Shires. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Ross and Cromarty Shires. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.8722,58.1262 -3.7721,58.1262 -3.7721,57.0951 -5.8722,57.0951</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Aberdeen &#38; Banff Shires. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Aberdeen &#38; Banff Shires. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.8016,57.7065 -1.7667,57.7065 -1.7667,56.8723 -3.8016,56.8723</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Perthshire with Clackmannan....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Perthshire with Clackmannan....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.8529,56.9484 -3.0572,56.9484 -3.0572,56.0796 -4.8529,56.0796</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, County of Wigtown or Shire of Galloway...</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, County of Wigtown or Shire of Galloway...</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.1864,55.0613 -4.3442,55.0613 -4.3442,54.6336 -5.1864,54.6336</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Renfrew Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Renfrew Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.8985,55.9624 -4.226,55.9624 -4.226,55.6724 -4.8985,55.6724</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Fife with Kinross Shire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Fife with Kinross Shire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-3.7405,56.453 -2.5472,56.453 -2.5472,56.0059 -3.7405,56.0059</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Ayrshire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Ayrshire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-5.1242,55.8898 -3.9608,55.8898 -3.9608,54.9976 -5.1242,54.9976</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Dumfriesshire....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Dumfriesshire....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.1218,55.4606 -2.857,55.4606 -2.857,54.9645 -4.1218,54.9645</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Shetland Islands....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Shetland Islands....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-2.1162,60.8545 -.7347,60.8545 -.7347,59.5132 -2.1162,59.5132</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Nairn and Elgin....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Nairn and Elgin....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-4.0087,57.7248 -2.9907,57.7248 -2.9907,57.2932 -4.0087,57.2932</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark><Placemark><name>John Thomson, Northern Part of Inverness Shire. Southern Part....</name><ExtendedData><SchemaData schemaUrl="scotland_one_inch_1st"><SimpleData name="SHEET">John Thomson, Northern Part of Inverness Shire. Southern Part....</SimpleData></SchemaData></ExtendedData><Polygon><outerBoundaryIs><LinearRing><coordinates>-6.0806,57.6319 -3.4317,57.6319 -3.4317,56.6859 -6.0806,56.6859</coordinates></LinearRing></outerBoundaryIs></Polygon></Placemark></Folder></Document></kml>'))      I thought It should have a semicolon at the end but it spat that out. So what I want to ask is which technique would you recommend I persevere with and what do I need to fix? EDIT: after adding a ) to the second attempt I no longer get an error but have the same problem as I have in the first one


title: How to define coordinate system and geographic transformation for a CAD drawing?

text: I am a GIS guy and I occasionally work with CAD files as well. Now I need to know how I can define a coordinate system and a geographic transformation for a CAD Drawing. According to ESRI: _"You can define a coordinate system and a geographic transformation and create and edit metadata for CAD datasets. The information is stored in external support files and moves with the CAD dataset when it is managed in the Catalog window."_ But don't know how to do this! Can you please let me know or point me to a tutorial to understand this?


title: Using Matlab to build adjacency matrix from Arcmap OD Matrix table

text: I was trying to use the function Network Analyst in Arcgis to generate the network to display the small world phenomenon, so i have to transport the shapefile (which contains originalID &destination ID & degree data)for Matlab to use it for further geostatistical analysis, so I was wondering that how to transfer the data to adjacency matrix for further calculations. (My shapefile type is polyline or point.) No need for weights, just the 0,1 matrix, further calculation is for the path length and clustering coefficient. thanks a lot!


title: Linking multiple map displays in Internet Map Server (IMS)?

text: Has anyone heard of any GIS Internet Map Server (IMS) capability program that will allow multiple displays of data to be geo linked. For example, when one pans on one view it will automatically relocates the extent on the corresponding linked viewer.


title: Can custom map tiles be consumed via ArcObjects within my ArcGIS 10 Desktop AddIn?

text: Can I programmatically consume and render custom map tiles in ArcMap via our ArcGIS 10 Desktop AddIn? The AddIn is built using the ArcObjects SDK for C#/.NET and ArcGIS 10. Pulling and rendering map tiles is NOT the AddIn's primary function. But we would definitely like to implement this feature if it can be done. More specifics:   * I received a tip that the ITiledMapServer2 interface is involved but it is unclear to me, and there is a dearth of info in ArcObjects docs regarding this task. The equivalent class within the ArcGIS for Flex API is TiledMapServiceLayer, but again this is an ArcMap AddIn in the desktop space, not a web app.   * We have in-house software to generate our own tiles in the same zoom, tile Y, tile X tiling scheme akin to the Google maps JS/Flash APIs.   * We are using Apache to serve the map tiles and thus are currently not using ArcGIS Server in any way (i.e. authoring the tiles, publishing as an ArcGIS Server map service, etc).   * I've posted the question to SO and received a recommendation to post here. Thank you in advance.


title: Is it possible to emulate "Swiss style" shaded relief with ArcGIS tools?

text: Is there a way to create a Swiss style (or other hand-shaded-like styles) shaded relief from a dem using ArcGIS tools alone?


title: Disable Panning in ArcGIS Silverlight Map

text: Is there a way to disable panning when using the ArcGIS Silverlight API? Other than enabling a Draw object.


title: Openlayers multiple zoom problem

text: I have a simple WebGIS with Mapserver, Tilecache and Openlayers. This project has something like 12 zoom levels. The problem is when I zoom for several layers (say 8 lavels), it becomes very slow, since it tries to load images for all the previous 8 zoom levels. Has nay body have any idea how to overcome this problem?


title: Is it possible to open ModelBuilder SCREEN from .NET base command class?

text: I simply want to open the custom model's SCREEN (ModelBuilder) from .NET.


title: How to covert gridded (gnomonically projected by distance) data to lat/long data

text: I have a grid of data that is in a gnomonic projection, centered on a lat/long point (WGS-84). The grid has a 1km spacing. Given this I can easily obtain the x,y coordinates/distances from centre point where the latitude and longitude is known. What is the best way to obtain the lat/long for any arbitrary datum in this grid (ie, how can I create a grid of lat/long pairs)?


title: Where can I find a good Mbtiles to png tiles converter?

text: I'm trying to create a slippy map and I need to obtain png tiles. I have exported a .mbtiles file from TileMill and I tried several python scripts to convert this file into png tiles but I always end up with a messy folder where the tiles are misnamed, and I can't use them into my app. Does anyone know a good converter which organize and name your tiles properly ?   Thanks in advance !


title: How to Start Web Mapping?

text: I want to start working on a web map at work to map some of our statistics by city. I have an idea, but I'm not exactly sure where to start. Are there any definitive resources that provide step by step guidance on how to do this?


title: Beginner web mapping advice

text: > **Possible Duplicate:**   >  Steps to Start Web Mapping I'd like to get some expert opinions on how to get started in web mapping. First, a bit about my skills, then what I'd like to do. I've got many years of experience with GIS, mapping, and cartography. And I'm pretty good with PHP, mySQL, HTML, and CSS. But I now need to bring all of that together into a web mapping project (I can't avoid it any longer!). What I want to build is a mapping site where I can have something like a Google or Bing map base, then on top of that bring in my own township grid, and many thousands of points, with several pieces of data for each one. These points will represent wells or sampling points and will be updated monthly, and some of them will be updated daily. I'd even really like to have it so that users can add their own information to these points, and I'd really really like to have users able to draw in their own lines and polygons, and text tabels. So without opening up a giant can of worms, is there a general type of approach to something like this? I'm looking at Manifold [which I already use] and mapserving.com, or MapserverPro and one of the mapping packages they provide. What about OpenLayers and embedding OL maps right into my own pages? Jim If anyone can steer me in the right direction with some general advice, I'd sure appreciate it!


title: Getting into WebMapping

text: I've been experimenting with leaflet and google maps javascript api to build some very simple maps on my local machine. However, I'm searching for a tutorial or any advice to get started with using my own shapefiles and datasets and integrating them with the webmap and putting it onto a website. I've heard using an Apache web server is the best way to do this? Can someone explain how the whole process works between client, data, and webmap? If there are any tutorials aimed at beginner web mappers too that would be great. Thanks so much.


title: Setting up an online map site

text: > **Possible Duplicate:**   >  Steps to Start Web Mapping I have taken on setting up a database which stores information of an annual country-wide survey of alien aquatic weeds, linked to a GIS program to map the sites and attributes. For my database I am using postgres, with qgis for the mapping. The eventual aim is to publish it online for anybody to access, and get basic maps detailing the surveys. I have been going around in circles trying to understand what process to follow. What tools do I need to get from my qgis map to an online map, and what is the basic outline of the process I need to follow? I have managed to derive a map and attributes from my database. Thanks, any help is greatly appreciated.


title: making a interactive map

text: I have a georeferenced map that gives a view of 3D,which I have created in ArcScene and exported as jpeg(or tif if necessary).What I want to do is create a interactive map that allows user to click on a certain building on that image and a marker that shows the information about that building appears...and also the options of zooming,panning and scale displaying would add favour to the map... Is there a way that one can give the coordinate extent of that image and marker be displayed on exact certain LatLong?Or is there other way around to deal with it please suggest...I looked upon internet and came up with nothing


title: How to start WebGIS for broke people?

text: I want to make a web GIS system. I will be graduating in 3 months and have time on my hands before going for interviews. if i can build something then i can show it off in the interviews and hopefully make me stand out. However how do i go about this with zero budget but i have lots of public data from university?


title: overlay my shapefiles stored in database to the web/browser

text: I am very much strrugling on how to display my shapefiles stored in postgis database to the browser or to the web.. is there anyone there knows how to do it.? I am using geodjango framework in python,. I already achieve the displaying of maps in admin interface but when I create my public page for displaying the maps, its make my head aching,.I did not konow how to overlay my shapefiles stored in database to the base map openlayers / openstreetmap.


title: Development guide for beginner?

text: Im new to GIS and mapping, and I need to learn how to create web map application for my project. I'm really confused on what to use. I have read PostGIS, OpenStreetMap, and Openlayer. I'm wondering how those API's work together. I'm an experienced PHP programmer, so is there a way that I can apply my PHP skills? Later on this project, I'll be calculating the shortest path and creating a routing guide. Can you guys suggest a best guide for accomplishing my project? Also, is there a way that I can use only domain server or host like bluehost? Since I'm only required to work within a small town? Thank you!


title: free webgis environment solution?

text: > **Possible Duplicate:**   >  Steps to Start Web Mapping soon I will be trusted to develop a webgis system. This project will take an advantage of a currently developed business system. The business system is using pure PHP, Java and MySQL. The project plan is to embedded a mapping system so the management will be able to see all the report tables (from the business system) and when they click on some "numbers" they can view the map as well. I guess it's a standar nowadays. What I'm hoping to get answer is what free webgis environment that you are suggesting to accomplished this? I'm not new in webgis but I'm not following the recently updated information about this webgis environment. Mostly I'm using desktop GIS. Thank you.


title: Online GIS app that allows users to log points

text: I am developing a website for a dolphin volunteer group, on this website they want a system to let volunteers and the public log sightings against a map and add some comments. I have made a system using the google maps API and a database, which does the job but will need more work. I was just wondering if there is a web based, simple GIS framework that would do the same thing? They are just using it to gather data for research purposes, so something open-source or freely useable for this purpose would be what we are after.


title: Web Mapping Tips

text: I'm willing to learn web mapping but the problem is I'm quite confused. Please recommend about the tools (software), books and websites that I must go through!


title: Getting started to Web GIS development using JAVA

text: I am a newbie in GIS web development with java. I am starting to chose the tools(open source) to start with. Can i use degree with eclipse or should i use geomajas instead. thank you


title: What software is required to run the Web wigs?And what are the steps to set it up?

text: I want my laptop to start a WEBGIS. But I do not have any information about Web wigs. I can easily work whith Desktop GIS. and I am familiar with the GIS discussions.


title: Creating a Simple, Free Web Mapping Application

text: I have recently left my job as a GIS Specialist that I've held for a number of years. This was my first GIS job and I managed to lean a lot. Now that the holidays are over, I've decided to search for the next position. Obviously, someone in my position should want to garner a few new skills while I'm on the job hunt. One thing that I didn't have a chance to work with, is web mapping applications in my previous position. It's a skill I'd really like to pick up because it's the present and future of GIS. My idea is, to start an online resume of sorts. Something I can create and send to prospective employers to show I can work in the GIS environment. Although resumes are great, I feel like this is a lot more tangible than spitting out a bunch of facts about what I do in a resume. When I was hiring people, I had a few people do this sort of thing and I find I have a lot more confidence in people I hire because I can see what they are capable of. I'm wondering, for all of you who work with web mapping, where should I start? I want to start simple, but have the ability to expand when I get comfortable with it. I'm not willing to fork out money for ESRI products because, well.....I'm unemployed. I want to start working on some open source freeware products. I think Quantum GIS with the OSGEO package seems to be the most popular? I've worked with QGIS in my previous position for desktop and development applications, but I haven't created a web application. What other good, free products are out there that you have used with some success. Is there anything really cool in open source like 3D mapping? I was thinking about creating a 3D fly through tour video using some DEM's or LiDAR if I can get my hands on that sort of data. Any thought, suggestions? Thanks, Mike


title: GIS web development

text: > **Possible Duplicate:**   >  Steps to Start Web Mapping I want to create a Web GIS using an open source software.Also the software should be capable of importing shape files and kml.I have good knowledge in Visual Studio .Net 2005.So kindly suggest me some good software.


title: Maps hosted on my own server instead of ArcGIS servers?

text: I know ArcGIS provides maps for me to use off of their server for the price of their services. http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000003vt000000 I want to share my map with other clients without requiring them to buy a license or anything. Is it possible for me to use my own map hosted on my own server, maybe something like google maps for free? The closest option I have seen is OpenStreetMap http://www.openstreetmap.org/. I want to add all the same layers as ArcGIS such as legend, shapes and editing.


title: Where/How to Learn about Getting Started with Web GIS

text: > **Possible Duplicate:**   >  Steps to Start Web Mapping Does anyone know of any classes or resources where I could learn about WebGIS? I'd like to learn the steps and technology involved. I'd be looking for something online or live in the San Francisco Bay Area. Thanks


title: Qgis dynamic web maps

text: I am new (Mac lion 1.8.3) Qgis 1.8 user . It was very easy till now to make a map. But now I am facing the next step that is out of my knowledge. I want to publish dynamically the map to my web page. Is that step so difficult? Is there any tutorial? Can you give any help?


title: Good Learning Resources

text: I am very new to the GIS, maps, openlayer , mapserver etc Can someone recommend some good intro resources that can start from basics and build up. Thanks


title: Simulating historic GPS data on map

text: I have some really basic newbie questions. I have following data with me: ESRI Shape files (.shp, .shx, .dbf, .prj, .sbn and .sbx)   KML/KMZ files   GPS coordinates (~400k) of some cars (~50) tracked for a week (csv file with lat, longs and timestamps) **_End Goal_** :   1) First, I want to overlay this data on some web-based system (like google maps), so that I can embed it in my website (I have the flexibility of running a server if a solution requires that).   2) On top of this layer, I want to overlay the gps coordinates based route for each of the cars. The end user should be able to select some of the cars and the routes for only those cars should be visible.   3) Finally, I should be able to simulate the routes, something similar to this http://hobbycoders.com/demos/gpssimulation/ **_Problem_** : If someone can direct me to the right set of tools/technologies that I should use to implement this. As of now I am just hopping from one technology to another without knowing what I should choose. The shapefiles are for some hypothetical place in the middle of pacific ocean.


title: Choosing web mapping API to use with MySQL for making map of one country?

text: I hope this question isn't too general, but I'm new to using maps, I'd like to make a map of one country on which I can plot points according to their geocodes from my mysql database, and to have the administrative districts outlined, like on google maps api, except I have read that google maps doesn't allow you to show just one country, and also, I'd like to use a free api if possible. Would anyone be able to point me in the right direction?


title: Can We build a search function using GeoExt?

text: Or do I need another technology? I need to build a web gis server and I need map display, layers switch, search function and attribute display feature. I am currently using GeoServer, OpenLayers and GeoExt.


title: loading multiple shapefiles using shp2pgsql in a bash script

text: I have this bash script (loadShapefiles.sh) to load multiple shapefiles at a time. The script and the shapefiles are stored in the same directory. When I run the bash file with the command of `bash loadShapefiles.sh`, I have this error message: `syntax error near unexpected token '$'do\r''` I appreciate your suggestions to fix this problem!               for f in *.shp     do         shp2pgsql -d -I -s 2913 $f rlis.`basename $f .shp` > `basename $f .shp`.sql       done              for f in *.sql       do           psql -d portland -f $f       done


title: Where can I find a comprehensive overview of QGIS geoalgorithms?

text: i am looking for an overview of processing toolbox / qgis geoalgorithms tools   unfortunately the link http://www.qgis.org/de/docs/user_manual/processing/toolbox.html seems to be dead. SEXTANTE ... (which apparently (?) is the ancestor) doesn't provide any up to date documentation does anyone have any idea where to find a comprehensive tool-reference including detailed description of in- out-put and parameters ?


title: Is my Geoserver "Direct WMS Integration" working?

text: I have activated the "Enable direct WMS Integration" switch in Geoserver 2.5. As far as I can understand, this enables caching of layers without having to use the "gwc/service/wms" endpoint in the WMS URL. I assume that this enables geowebcache tilecaching dynamically when the tiles are requested. However, I am not seeing the correponding cache being created in the gwc directory in geoserver_data_dir. Is it working? How can I tell?


title: Dismiss invalid Polygons in PostGIS

text: I Have a massive Dataset from OpenStreetMap and imported it into a Postgres- Database using ogr2ogr. I got several warnings during this process because of multipolygons with too little vertices. Now I can’t transform the data in the Database using PostGIS, because of this invalid features. It is no Problem to losse the invalid features but I don't know how to delete them or correct them. I tried: `ALTER TABLE multipolygons ALTER COLUMN wkb_geometry TYPE geometry USING ST_Transform(ST_MakeValid(ST_SetSRID(wkb_geometry,4326)),3857);` But I got the error Message: `Polygon must have at least four points in each ring` Any recommendations? Thx! UPDATE: I tried: `Alter table multipolygons ADD COLUMN wkb_geom_valid geometry; Update multipolygons SET wkb_geom_valid = ST_MakeValid(wkb_geometry);` `delete from multipolygons where ST_NPoints(wkb_geometry)<4 ;` `select * from multipolygons where ST_isvalid(wkb_geometry)=TRUE ;` All without success...


title: Changing tracks to vectors in a grid

text: This is a version of a question that I posted on the GRASS list, but I didn't get any suggestions there. I would like to overlay a grid (cell size about 500 m x 500m) over an animal track created from hourly locations. For each cell that contains a track segment I want to record a direction vector which represents the direction that the animal was traveling when it passed through that cell. I tried using the GRASS command "v.to.rast use=dir", which should create a directional vector in every raster cell that the track passes through. It almost works, but the command does not seem to respect the _order_ of the track. It seems just as likely to classify a particular segment as having a direction of NE as to classify the same segment as SW (180 degrees opposite) and I couldn't see any consistency to how the directions were chosen, although I may have missed something. Another challenge is that the animal often re- crossed its own track so that individual grid cells may contain more than one track segment--in those cases I want to sum the direction vectors using regular vector algebra. I am new to GRASS and a bit overwhelmed, and I would be very grateful for any suggestions that would get me started in the right general direction. Thanks!


title: Errors uploading plugin to QGIS python plugin repository

text: I'm trying to upload my first plugin to: http://plugins.qgis.org/plugins/add/ I keep getting the following error: > There were errors reading plugin package (please check also your plugin's > metadata). Package name must start with an ASCII letter and can contain > ASCII letters, digits and the signs '-' and '_'. My package name is "DEMTools" and I've checked the plugin's metadata file, but everything looks to be in order. This error message doesn't give me a lot to go on and I've never uploaded a plugin before. Are there some common issues I should look for or is there some detailed guide to preparing a plugin package for **upload**? (I don't need help with creating the plugin just uploading it to the Plugin Repository. I used Plugin Builder to create the plugin and it runs fine on my local machine.) Thanks for any help you can offer.


title: Arcgis AttributeEditor getcodedvalues of domain

text: i develop map project with arcgis android sdk, i searh attribute editor and i found one sample, it works but if my item field has codedvalue, it put edittext to UI but i want to add spinner and i want to do this manual so in AttributeListAdapter class they wrote comment for domain "if you want to support domains, add checks here and use the createSpinnerViewFromArray to create spinners " and i check my field also i can get my domain of field but i couldnt get my codedvalues. How can i do that ?


title: Where to get night satellite imagery of South Sulawesi, Indonesia

text: I need night satellite imagery of South Sulawesi, Indonesia but could not find any one my own. Does anyone know of sources? Free would be best but if quality and resolution is good i would also pay for them.


title: Problem with QgsVectorFileWriter

text: I am trying to write a python script that when it is called it will take an .sqlite layer and save it as a GeoJSON layer. This will be used in a leaflet app but for now my problem is with this script. This script was firstly written and tried in Ubuntu (with the correct prefixpath, database and vector layer directories for ubuntu of course!) and it worked perfectly! So i transfered it to Windows changed all the paths and added new data and now everything crashes... I have read PyQGIS Cookbook about loading and using vector layers and i wrote this script:               # -*- coding: utf-8 -*-     from qgis.gui import *     from qgis.core import *          QgsApplication.setPrefixPath("C:\\Program Files\\QGIS Valmiera\\bin", True)     QgsApplication.initQgis()          app = QgsApplication([], True)          uri = QgsDataSourceURI()     uri.setDatabase('C:\\project\\leaflet\\python_files\\test_files\\simeia_meleton_win.sqlite')     schema = ''     table = 'simeia'     geom_column = 'Geometry'     uri.setDataSource(schema, table, geom_column)          display_name = 'simeia'     vlayer = QgsVectorLayer(uri.uri(), display_name, 'spatialite')          if vlayer.isValid():         error = QgsVectorFileWriter.writeAsVectorFormat(vlayer, "simeia", "utf-8", None, "GeoJSON")         if error == QgsVectorFileWriter.NoError:             print "success!"          else:         print "Layer failed to load"          app.exitQgis()      First i tried to run it outside of the QGIS python console, in Pyscripter, and when i try to run it prints: `sys:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal` Then the PyScripter crashes! When i try to run it in the QGIS python console line by line and when i insert: `QgsVectorFileWriter.writeAsVectorFormat(vlayer, "simeia", "utf-8", None, "GeoJSON")` The QGIS prints Crash Dumped and then just crashes. Any thoughts anyone??


title: Inverse of Selected Records using ArcObjects?

text: What is the Process to find the inverse of selected data from featureclass using vb.net arcobject?


title: Carto-CSS/ Mapnik XML Text background color

text: I want to add a background color to my labels. How do I do that with Carto-CSS in Tilemill or with Mapnik? Carto-CSS               #marker_labels {       text-name: "[name]";       text-face-name:@sans;       text-size: 20;       text-fill: #FFFFFF;       text-allow-overlap: true,     }      Mapnik XML               <TextSymbolizer face-name="Air Soft Cond Heavy" size="20" fill="#ffffff" allow-overlap="true" ><![CDATA[[name]]]></TextSymbolizer>      Here is a example on how the label should look like (ignore the line to the label):![enter image description here](http://i.stack.imgur.com/uZasi.png)


title: CartoDB - How would I customize my legend to not be white and have blocks instead of bullets?

text: First off, CartoDB is amazing. I am trying to modify the look of my legend to look something like the one as seen on the "Elephant Movement in a Human Landscape" example on the CartoDB website. (http://spaceforgiants.org/?q=blog/2013/02/28/elephant-movement-in-a- human-landscape) ![Elephant Movement Customized Legend](http://i.stack.imgur.com/jb1Po.jpg) Similar to that example, my map has both point data and polygon data. I want to represent the point data with the standard bullets provided with the default category legend, but for the polygon layers I want to create colored (and also preferably semi-transparent) blocks. Is there any way I can make these stylistic changes within the UI/legends/custom html window? One last question, how would I go about changing the color of legend background? My code looks like this: EcoRegions   * Cascade Crest Montane Forest    * Cascade Subalpine/Alpine    * Pluvial Lake Basins    * Cold Wet Pumice Plateau Basins    * Deschutes River Valley    * Ponderosa Pine/Bitterbrush Woodland    * Pumice Plateau Forest    * John Day/Clarno Uplands    * High Lava Plains  I thought maybe I could replace the word "bullet" with something like "box" or "block" but it didn't work. I am not a programmer so don't laugh - I thought it was a good try. Anyway, thanks for your help! El_Tigre


title: Icon in my map using his natural size

text: I'd like to show the Icon in my map using his natural size (width and height original). How can i do it? Now i have this code:               var contextResource =      {         getWidthIcon : function(feature){             //i'm trying to get the current width         },         getHeightIcon : function(feature){             //i'm trying to get the current height             },              getMarker : function(feature)           {             // getting the icon with a rest reponse             var lstIcons = feature.attributes.satellites;             var sUrlIcon = "${sBaseURL}"+ feature.attributes.orientation;             for ( var n = 0; n < lstIcons.length; n++) {                 sUrlIcon = sUrlIcon + "/" + lstIcons[n];             }             return sUrlIcon;         },         getBackgroundMarker : function(feature)         {             ///blah blah blah             }                  return urlBackground;         },         getVisibility : function(feature)         {             ///blah blah blah         },         getLabel : function(feature)         {             ///blah blah blah         }          };          //This is my style builder     var resourceStyle = new OpenLayers.Style({         externalGraphic : '<% out.print("${getMarker}"); %>',         backgroundGraphic : '<% out.print("${getBackgroundMarker}"); %>',         graphicOpacity: 1,         graphicWidth: '<% out.print("${getWidthIcon}"); %>',         graphicHeight:'<% out.print("${getHeightIcon}"); %>',         label: '<% out.print("${getLabel}"); %>',         fontFamily: "Arial",         fontSize: '11px',         labelYOffset: -30,         labelOutlineColor: "white",         labelOutlineWidth: 3,         display: '<% out.print("${getVisibility}"); %>'     }, { context: contextResource });      If I put a fixed graphicWidth and graphicHeight works normally. I want to display icons in different sizes. Is it possible using this strategy? Thanks


title: Is there MapInfo Label Expression to label lots in format Map-Lot (017-001) with just Lot?

text: I am trying to label map lots in this format Map-Lot (017-001) and I was wondering if there was a label expression that would allow me to only show the lot number and not the map number. Any help would be greatly appreciated.


title: What are the white grids at 9.6953038715817,98.576672019046 in Google map?

text: A friend asked me to help interpret the white grids at 9.6953038715817,98.576672019046 in Goole map. In satellite image the grids are connected to rivers flowing into the Andaman sea. Most of the rivers are also covered with snow-white material. I guess the grids are for polluted water treatment. But these grids seem to lack patterns of water treatment plants. Can anyone help interpret these grids? Clues are also appreciated! Thanks in advance.


title: Creating TFW and PRJ files for folder of GeoTIFF files?

text: I have a folder which contains a large number of files in GeoTIFF format. I need to generate both PRJ and TFW files for each of these images. Is there some way to do this?


title: How to distinguish an installation of ArcView from ArcEditor?

text: How would I tell an installation of ArcView from ArcEditor, if looking at only the installed files? Specifically, how do I distinguish   * ArcView 9.3 from ArcEditor 9.3   * ArcView 10.0 from ArcEditor 10.0 For example, the file ArcSOC.exe indicates an installation of ArcGIS Server.


title: Converting KML files for use with Python library Shapely

text: I am trying to get a KML-file (wijken.kml) into Shapely. The KML-file is validated against the proper XML schema, so I guess the input is correct. Routes I have tried: ### 1) Converting to WKT or WKB format, and reading in with build in functions Conversion:               ogr2ogr -f CSV wijken.csv wijken.kml -lco GEOMETRY=AS_WKT     ogr2ogr -f SQLite wijken.wkb wijken.kml      In shapely:               from shapely import wkt, wkb     f = open('../kml/wijken.wkb')     wkb.load(f)       Which gives (same for `wkt()`):               ReadingError: Could not create geometry because of errors while reading input.      As it provides no further info, and the Python code wraps other (C?) libraries, I do not know what is wrong with the format. The CSV-file contains multiple columns, perhaps something is wrong there, but I have not found a comparable online WKT-example to test. ### 2) Converting to GeoJSON and using the build in Shapely `asShape` function               ogr2ogr2 -f GeoJSON wijken.json wijken.kml      In Shapely:               import json     from shapely.geometry import asShape     f = open('wijken.json', 'r')     js = json.load(f)     f.close()     asShape(js)      Which gives:               ValueError: Unknown geometry type: featurecollection      This error is the same for a minimal, valid GeoJSON example. Looking at the Shapley code, the problem is that basic GeoJSON types such as "Feature" and "FeatureCollection" are not recognised. It is not clear which route to take to get from GeoJSON features to features Shapely understands. ### 3) Read in KML with fastkml, which returns Shapely objects This works, but it seems to lose the properties/ExtendedData values in the KML (or at least does not pass it to the Shapely objects). I feel that I'm missing something, it can't be so hard to get data into Shapely. Can someone point me towards the most robust/a working solution?


title: Convert an ESRI File GDB Table to Access 2007 ACCDB table programmatically

text: Does anyone know of a method to convert an ESRI File Geodatabase Table into Access 2007 Table programmatically. I have been trying using the PYODBC library and a series of insert statements but am having difficultly with some of the data types and NULL values. Any help is appreciated. Basically an unload to Access.


title: How to reclassify grey scale tiff in qgis

text: I downloaded a raster image of the sea floor age. The values in band 1 ranges from -32768 to 32767. I need to reclassify it to no. of million of years to make sense of the data. How can I do so? I try to use Raster Calculator but I do not know how to input the syntax. Any kind soul able to help? Thanks.


title: Mapnik server with Navteq Data

text: Is anyone here using navteq data for a GIS app? I'd like to work with navteq data and using mapnik-tilecache as a WMS server. The reason is, I use OSM data as well on my other server. And as the two servers need to be interchangeable I have to stick to one software technology. Importing the .shp files in a PostGIS DB and adjust the .xml config file for the mapnik render engine seems to be the right strategy. Has anyone another idea, or can confirm this route?


title: What happens to a feature class when importing to a feature dataset?

text: I am creating a model that needs to ensure that all input datasets end up in the same coordinate system (among other things). I was originally going to batch project all of the datasets whether they need to be projected or not, but then there's the issue of assigning the correct geographic transformation. Then I remembered that all data that is input into a feature dataset has to be the same coordinate system, so I decided to put all the data into one. My question is: When a feature class is imported into a feature dataset that is of a different coordinate system, does it automatically project the data? What happens? I tested this myself on roads data and it seemed to project the data, as they lined up nicely with my other data. The thing is, no transformation was needed (and a transformation method was needed had I projected it), so it seems fishy that the data is just automatically projected. Maybe it makes a best guess?


title: define parameter descriptions in ESRI Python Toolbox

text: I'm trying to create some Python Toolboxes for our ArcMap application (e.g. MyTool.pyt) I can see that the help text is defined with the classes self.description attribute. However, once I run the program, and click into any of the parameter fields, the help/description text goes empty. I would like to be able to provide the description field for each parameter. How is this accomplished? EDIT: After some responses, I see that via the 'Item Description' right-click context menu there are many fields that may be populated. Is there a 'pythonic' way to do this? That is, just by embedding some attributes in the .pyt file classes? For instance, in the .pyt toolbox definition you have the Toolbox class:               import arcpy          class Toolbox(object):         def __init__(self):             """Define the toolbox (the name of the toolbox is the name of the             .pyt file)."""             self.label = "My Toolbox"             self.alias = ""                  # List of tool classes associated with this toolbox             self.tools = [MyNiceTool]               class MyNiceTool(object):         def __init__(self):             """Define the tool (tool name is the name of the class)."""             self.label = "My Tool Class"             self.description = """     A description that shows up in the help context side pane when the tool is launched.             """             self.canRunInBackground = True              def rest_of_required_methods....      From the self.description string the Tool dialog help window will display this text. However, what I am wanting to do is have a 'description' embedded in my code for each parameter also, so that when the tool is launched, and the user clicks into a parameter field, the parameter description is shown. If I were to do this using the 'Item Description' method referenced in the replies below, I would edit the fields Dialog Explanation under the Syntax section for each parameter... I guess.


title: Problems with connecting QDateEdit and QTimeEdit widgets to corresponding Field in QGIS Layer (shp/spatialite)

text: Could anybody give me a hint how to connect the QDateEdit and the QTimeEdit widgets with a field in a QGIS layer (shp or spatialite). The fields in the QGIS layers are from datatype "date" (dd.MM.yyyy) and "datetime" (HH:mm). ObjectName in **Qt-Designer** and the layer in QGIS are equal. For some reason the connecting doesnt work and the entry in my table stays "NULL". The binding with normal LineEdits works. I tried to describe my problem here but obviously I wasn't that precise. I'm not a programmer and until now I haven't worked with C++. Thanks in advance!


title: How to run an external program on "identify" on a WMS layer?

text: I have a QuantumGIS project with several WMS layers. When I select one of these, the identify-function shows a windows with more information on the feature I clicked. It gets this data from the GetFeatureInfo-request to the WMS. Now I would like to pass a part of that to an external program. All I have found so far is how to do this with actions, but these seem to work only on vector layers. Is there a way to accomplish this with a WMS layer and its GetFeatureInfo response? Thank you very much Norbert


title: When I export shapefiles from ArcMap 10 there appears to be no xml file created?

text: When I create shapefiles in ArcMap, be it by selecting certain features from existing data or creating new polygons/points/lines,   I look in My Computer and see a dbf prj sbn and sbx file.   These shapefiles all successfully open in ArcMap, but I'm trying to upload these shapefiles to Mangomaps.com and the lack of an shp file is crucial.   When I open up the shapefiles in ArcMap an shp mysteriously appears in the form of "(Whatever the name of my shapefile is).shp.URA-0422.6328.6588.sr.lock" URA is the name of the place where I work and just fyi before someone harps on me for sharing important information I changed some of those numbers in case they have significance.   However this locked shp can't be uploaded and immediately disappears once ArcMap closes.   What's going on? Do I have some sort of setting preventing ArcMap from creating an shp/xml document?


title: Are there any examples of the Esri GeoPortal REST API in use?

text: Are they any public examples of sites built on top of the Esri GeoPortal's REST API? I would like to use the back-end functionality of the GeoPortal to manage the metadata, but serve it up using a custom front-end. Before I undertake this task I'm interested to see whether anyone has successfully achieved this. Thanks.


title: Update shapefile data source with wildcard using python

text: I am attempting to update a layer's data source in Arcmap using python               for lyr in arcpy.mapping.ListLayers(mxd, "*", df):         if lyr.name == "project_whl":             lyr.replaceDataSource("F:\\Jobs2012\\05665\\EPASS\\", "SHAPEFILE_WORKSPACE","1205992_whl")      This WORKS! HOWEVER I would like to use a wildcard instead of explicitly stating the dataset_name Example below:               for lyr in arcpy.mapping.ListLayers(mxd, "*", df):             if lyr.name == "project_whl":                 lyr.replaceDataSource("F:\\Jobs2012\\05665\\EPASS\\", "SHAPEFILE_WORKSPACE","*whl")      Yet does not work, I have tried *, ?, %, _, & none of these work... Just get the following error message               <type 'exceptions.ValueError'>: Layer: Unexpected error      Your thoughts, ideas?


title: OpenLayers - Vector Layer and Google Maps - vector layer and google layers don't seem to be in sync when zooming on Chrome

text: I am working with a Google Layer and a vector layer in OpenLayers. I was wondering if anyone else noticed any problems with Chrome displaying Google Maps layers on OpenLayers? It seems that when I zoom, it is much slower than doing Google Maps by itself (say, at the google maps site). And when I zoom with a Vector Layer that has features, they don't zoom in sync with the google map. It seems like I zoom, and the vector layer will get more zoomed in much faster than the Google maps layer. I tried it in firefox and it seems to work much much better (still notice it if you zoom in super super fast, but it is barely noticable). I also noticed that the google layers have some kind of strange space between the tiles, like a 1px split between each map tile. For example this code will do it: http://openlayers.org/dev/examples/spherical-mercator.html But it works fine in Firefox. Does OpenLayers and Google Maps just not work well in Google Chrome?


title: Experiences with ArcGIS Data Interoperability

text: In order to import/extract data from tons of DWG files, I'd like to know experiences with ArcGIS Data Interoperability, and its strong points versus FME or GeoKettle. Thank you very much.


title: Is there a way to erase GeoTIFF header?

text: I've got some GeoTIFF files that have wrong bounding box extent and wrong CRS associated to. Fortunately I know the right CRS, but even associating it to the files (I've tried both with QGIS and ArcCatalog) their extent remains the wrong one. So I was wondering if there's a way to completely erase the GeoTIFF header file, then assigning the CRS and obtaining the correct bounding box.


title: ArcServer 10.1 - Publishing C# Executable as a Geoprocessing Service

text: I am trying to publish an arcobjects C# executable as a gpservice. We did this in 10.0 by adding it to a toolbox and hitting publish. Using ArcCatalog in 10.1 you must first run the script before you can 'Share as a Geoprocessing Service'. I've run the GP tool successfully and have tried both 'Publish to Server' and 'Save as a Service Definition' file. It won't let me go any further though. It comes back with Script Syntax Error Line: 1 - which leads me to believe it is trying to parse the executable as a python script. Does anyone know how to overcome this? And better yet is there any way to publish a GP service without running it first?


title: Multiple Google fusion table layers with queries using javascript

text: I am making a web mapping application using Google fusion tables and JavaScript. Earlier I had only one Layer on it, but now I have to put another layer. Both the layers have bunch of queries. I am following the online examples but it is not working. Below is my initial code before applying any queries. The first layer is coming but as soon as i put the function for second layer, the first layer disappears. Also the query result is produced as a JSON.               var tableid_1 = 3775xxx;       var tableid_2 = 4313xxx;      var layer_1, layer_2;     var queryUrlHead = 'http://www.google.com/fusiontables/api/query?sql=';     var queryUrlTail = '&jsonCallback=?';     var zoom = 7;     var latlng = new google.maps.LatLng(3xy.7996, -11x.1668);          function initialize() {               var myOptions = {         zoom : zoom,         center : latlng,         mapTypeId : google.maps.MapTypeId.TERRAIN,         mapTypeControl: true,         mapTypeControlOptions: {         style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,         position: google.maps.ControlPosition.TOP_LEFT     },         scaleControl: true,         scaleControlOptions: {         position: google.maps.ControlPosition.BOTTOM_LEFT     },     };          var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);                   // first layer//               layer_1 = new google.maps.FusionTablesLayer(tableid_1);          layer_1.setMap(map);     layer_1.enableMapTips({             select: "'Name'",             from: tableid_1,             geometryColumn: 'Location',              suppressMapTips: false,              delay: 50,             tolerance: 5     });         addListeners();               layer_1.setQuery(qry);          var col_list = 'Name';          if(order_list && order_list !== 'Name') {         query += " ORDER BY " + order_list;     }          var queryurl = encodeURI(queryUrlHead + qry + queryUrlTail);                              $.ajax({         type : "GET",         url : queryurl,         dataType : "jsonp",         success : dataHandlerCallback,         error : function() {             alert("AJAX ERROR for " + queryurl);         }     });     }


title: How to get travel time and link used from osm2po http service

text: I used osm2po to get shortest paths but I would like to get travel time and osm links ids used in the path. Is it possible? Here is the osm2po service url format I use (this is an example): http://localhost:8888/Osm2poService?cmd=fr&source=26915&target=106044&findShortestPath=false&ignoreRestrictions=false&ignoreOneWays=false&routerClassId=0&heuristicFactor=0.0&maxCost=0.0&debugExpansion=false&key=Key&value=Value&tsp= Thanks! Leo Comment: Well, I just found I can add format=geojson to the query string and I can then get the line strings associated with the path. Perfect. I then just need to match the id in the db with the travel speed.


title: GIS application for sewer design...how is it done?

text: I need to know from the very beginning about how I start.


title: Transform ssf to shp

text: Good Morning Do you know a free program that transform *.ssf to *.shp files? Thanks Eduardo Abade


title: Read (old?) Trimble files into ArcGIS?

text: I have a number of files that I believe are from a Trimble GPS. The file extensions are: .cor .gic .gip .gis .giw .gix .obs .obx .SSF I need to be able to map the data in ArcGIS (these are old files and no one really knows what the heck they are!). I haven't been able to figure out how these files work together (the .SSF is a compiled version of the others, maybe?). And I don't know if I need to look into Pathfinder Office, or the GPSAnalyst extension or.... So, assume I'm an idiot (easily done), and give me an idea of where to start and where to go from there? THANKS!


title: How to integrate Openstreetmap in Rails3.2 using Mongodb?

text: I'm planning to use Open street map in my Rails app to track locations, Can any one guide how to integrate Open street map with Rails 3.2, using MongoDB. Thanks


title: What does 1:10m mean related to map resolution?

text: On Natural Earth they offer maps at various resolutions. What does 1:10,000,000 mean? Does it translate to the number of points per square meter or mile?


title: What do I need in order to show offline map (tile cached based) of area from OSM using Openlayers?

text: I want to make an offline map with certain zoom levels of an area from OSM (preferably keeping the styles of OSM). Client will use OpenLayers , If needed I can install Geoserver/Mapserver and MS-SQL Express. What will be the easiest way to such a thing ? Do I need to use XYS layer type or local WMS? How do I automatically cache the area I need ?


title: What is the unit of measurement for scale?

text: Maybe this is standard across mapping engines, but in MapGuide if I set the scale to 7 million I can see about half the world. At about 4 million I can see a continent. What unit of measurement could this scale possibly be in?