New answers tagged

1

Currently, it is forcing the polygon to draw at an absolute elevation (looks to be above sea floor?) You can clamp it to the surface, which will essentially 'drape' it over your elevation / DEM. To fix the issue the KML syntax is <altitudeMode>clampToGround</altitudeMode> If you could post some of your raw code, might be able to help with ...


0

Don't know if I should have modified my previous answer. Perhaps, but that covers some things not in this answer, so I decided to leave it. Anyway, the code below works well for me. It looks for all of xmlNodes in the kml file that are called "Folder" and then sets the layer parameter of readOGR to that xmlValue. Tested on working directory with around 6 ...


0

I've come up with a workflow that works for me. Create UTM coordinates in Excel with x, y and z values. Save as this Excel sheet as CSV. Import the CSV into QGIS. Reproject the CSV from UTM into WGS84 (lats and longs). In the reprojected layer, add coordinates values to the attribute table. Save as the reprojected layer with the added coordinate values in ...


0

Don't know if this is still a problem for anybody else, but I was running in circles for a while with this. What finally worked for me is below. It uses the XML package to get at the xmlValue of the right node. I had to set the layer parameter of readOGR to the name of the one of the folders within the kml file. When I set the layer parameter to the of ...


0

allow access to 66.249.82.* and deny rest others for your kml file using any front end proxy servers or apache/nginx anything you use to serve kml files.


0

Could it be due to the typo in the line: <ogr:col>>#00248F</ogr:col>


2

I was unable to resolve this. No matter what version of QGIS I used, no matter how I formatted the ExtendedData, I was unable to get it to import this data. So I found a work around. My end goal is to save the KML file out of QGIS as a shape file to send to my client after I had manipulated it. So based on this post about converting a KML file to shape ...


0

Another option if you're automating or scripting the workflow is to turn off the KML capability when you create the .SDDRAFT. See this help link, specifically example #4 on how to disable KML everytime you generate an SDDRAFT file.


2

I can't answer the "why" question. I just know KML has been a default ever since 10.0 or 10.1? Anyways, if you want a heavy handed approach to disabling KML... and when I say disabling, it wont ever be an option, you can try the below. Note that if you 'break' your Server following these steps, you're on your own. Tech support will need you to do a repair ...


0

Another spatial-join method (similar to what @Detlev posted) is to use the Join attributes by location tool from either the toolbar (Vector > Data Management Tools > Join attributes by location) or from the Processing Toolbox. You can use this for both your points and polygons where each should receive the attributes (including the ID field) of the grid. ...


2

You may use plugin spatialJoin, available from the official plugin repo. I named the point layer "Islands" and the polygons "Coast". The points are WITHIN the grid cells. The result are points having the attributes of the grid cell they are within (prefixed with "spj_"). Now the polygons. I suggest to convert them to centroids (Processing -> QGIS ...


2

One workaround would be the following procedure: Turn off the visibility of the layer that you want to be queried in Google Earth (e.g. parcel) Use "Map to Kml" and make sure to check "Convert Vector to Raster". This will convert all of the visible layers to raster. When using this option, enter the "Map Scale Output" parameter carefully, so your scale ...


0

If you look at the syntax section of the help file for this tool, what is the output? Then look at the syntax section of the feature class to feature class tool, what is the expected input type? Do they match? This why you should be reading the help file as this explains why the tool will not connect.


0

It looks like it might be a GeoServer bug on creating the KML. I can see that a GetMap request with image/png output works: ...


0

I could resolve one problem of displaying the kml using openlayers API. We can use Openlayers.Layer.GML //Adding KML file to map map.addLayer(new OpenLayers.Layer.GML("KML", "college.kml", { format: OpenLayers.Format.KML, formatOptions: { extractStyles: true, extractAttributes: true, ...



Top 50 recent answers are included