New answers tagged

1

For panToExtent use the coordinates of your data frames coodinate system. As you said and Midavalo explained, the Point x = 30.317459, y = -97.694778 is measured in meters. So if you want to use geographic locations, change the coordinate sytem of your data frame or project the geographic coordinates into your UTM-Zone. For the last, it is discussed here: ...


2

You're passing coordinates in meters to the panToExtent. It is not expecting Lat/Long, so when it pans it is correctly panning to 30m east and 97m south of your origin. This modification to your code will temporarily change your data frame's spatial reference, pan to your Lat/Lon, and change back. Note: I am unsure on the effect this may have on any ...


1

Try this, use IActiveView interface to set the current view of map private void button4_Click(object sender, EventArgs e) { IMap map = mxdoc.FocusMap; // get activview of the map IActiveView activeView = (IActiveView)map; gl.map = map; ILayer layer = gl.getSelectedLayer(comboBox1.SelectedItem.ToString()); ...


2

I'm still a little unclear on what you are trying to do but if all you need is to simply reproject the native bounds to WGS84 (as GeoServer does) then the following code will work for you: String wkt = "PROJCS[\"unnamed\"," + " GEOGCS[\"WGS 84\"," + " DATUM[\"WGS_1984\"," + " SPHEROID[\"WGS ...


1

Solved: I must use the source CRS from the GDALINFO output, since it is a custom reference. And the Target CRS is the EPSG4326. And then: DirectPosition dpLc = env.getLowerCorner(); DirectPosition dpUc = env.getUpperCorner(); DirectPosition destLc = new DirectPosition2D(); DirectPosition destUc = new DirectPosition2D(); MathTransform transform = ...


3

To create a grid of lines: # grid properties left = 0 # left/west of area bottom = 0 # bottom/south of area width = 50 # width of area height = 50 # height of area x_min = 2 # left most vertical line y_min = 2 # lower most horizontal line x_spacing=15 # spacing between vertical lines y_spacing=15 # spacing between horizonatl lines # target layer ...


0

I encountered the same problem after GeoServer was updated from 2.5. to 2.7.5. Trying to view a layer in GML led to the following error message: <ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.2.0" xsi:schemaLocation="http://www.opengis.net/ogc ...


1

not the best solution but solved the problem for me. For anybody who wants to know how I did it: gdal_contour -i 1000 -off 0.05 input.grd output.shp -i = some very high number -off = minimum pixel value then: ogrinfo -al -so output.shp and parse the ogrinfo output to get the extent coords EDIT Better Solution (Python3 with Subprocess): gdal_calc.py ...


1

An example of a geoserver layer WFS bbox request would go something like this: http://myserver/geoserver/wfs?srsname=EPSG:4326&BBOX=xMinimumValue,yMinimumValue,xMaximumValue,yMaximumValue&typename=workspaceName:layerName&version=1.0.0&request=GetFeature&service=WFS


2

One solution would be to use bookmarks. Bookmarks can be saved to and loaded from an xml. So you can modify the xml (add the names and extent coordinates of the cities) also externally and then load the xml to bookmarks and use bookmarks to navigate.



Top 50 recent answers are included