Tag Info

New answers tagged

0

Information on creating Projections is available here from the Esri Site. See the part on Manual Creation down the page. There is an excellent discussion on ShapeFile Projections and PostGis here and an example of the SQL to insert the Custom Projection into PostGis can be seen here The SQL to insert the Custom Projection is probably of the most interest ...


1

1) You seem to have a mix of projections in your original files (shapes) so, How are you loading the files to Postgis? Specifically, What projection are you passing as a parameter to shp2pgsql? because if I remember correctly, if you don't specify a srid then Postgis assumes it to be in local coordinates (srid 0) and planar units so that maybe why you're ...


1

Expanding on my comment: Mapfish Print versus GeoServer Print module The MapFish Print Module is basically the exact same thing as the GeoServer printing module. In fact, the later is built from the former (the 2.4.x ad 2.5.x modulees is built from mapfish print 1.8. The 2.6 release will include MFP 2.0). At this stage you won't gain much of anything by ...


1

On The Geoserver Layer Page, there is the option at the bottom of the page Reload feature type ... Bear in mind if you change any of your existing columns, any SLD may need to be changed. If it is just adding additional columns, should be no need to recreate the layer


0

As you note, 2.2 is a special case. There are instructions on her to upgrade to 2.2 here: http://docs.geoserver.org/stable/en/user/installation/upgrade.html I'd suggest starting with that. Once that's done you can probably just jump straight to 2.5.2, the latest current release. If you want yet more information on the upgrade process and what files change, ...


0

Try to choose WorldMapImage instead of GeoTIFF when choosing store, I had this problem and this was good solution.


0

With Geoserver you might want to have a try with the CQL filters which are much easier to write than the official OGC style XML/GML filters. I took the "DISJOINT" example from the manual http://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html and converted into WFS GetFeature request with INTERSECTS filter. You can test it with the demo ...


0

I often have the same problem and I mostly solve it with following vendor options <VendorOption name="goodnessOfFit">0.1</VendorOption> <VendorOption name="conflictResolution">false</VendorOption> <VendorOption name="spaceAround">-1</VendorOption> I hope it helps.


0

Usually a request for features is done on a featureservice (WFS) - esp. when you have a more complex logic like querying features within a given polygon. The GetFeatureInfo is designed to perform a feature-query based on the mouse-position in native (meaning display-) coordinates rather the geographic (transformed) coords. But it is indeed restricted to that ...


4

You can only use a x,y (i,j) coordinate search for GetFeatureInfo requests http://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo However, you may test for interactions with polygons (and many other geometries) using a Web Feature Service (WFS) request. E.g. ...


0

By default GeoServer tries very hard to not overlap your labels (as this generally what the user wants). You can change this behaviour by setting the vendor option conflictResoloution to false. <VendorOption name="conflictResolution">false</VendorOption>


1

it depends which Beta Version of OL3 you are using. On the latest Version v.3.0.0 – gamma.2. there is no: new ol.source.SingleImageWMS The source name is: new ol.source.ImageWMS http://ol3js.org/en/master/apidoc/ol.source.ImageWMS.html Try to change that, maybe it solve the problem. Thank you for feedback.


-1

Miracle of miracles, all problems went away when I used Glassfish instead of Tomcat/Jetty.


0

Sorry for the late reply but there is also the leaflet-vector-layers plugin which has support for postGIS services http://jasonsanford.github.io/leaflet-vector-layers/demos/postgis-restful-web-service-framework/ By the looks of it you can filter the service. I've used this plugin for ArcGIS services and it's been really good. Hope that helps, Rowan


0

Try add third parameter to paste: self.im.paste(im, box, im)


2

You've switched the order of your lat,lon. See the documentation for ST_MakePoint() and you'll see that it requires: ST_SetSRID(ST_MakePoint(lon, lat),4326) Then, after to make your changes, try verifying: SELECT ST_AsText(location) FROM *tablename* LIMIT 10;


0

Figured out it's a styling problem. I'm using a custom RasterSymboliser style to show bands 3,2,1 and not (1,2,3). By doing that, the alpha channel is not respected and I get no transparency. This post talks a bit about this issue: Setting transparency in an SLD file for a 4 channel GEOTIFF I tried setting nodata value to each pyramid granule but that did ...


2

This is probably an artifact due to tiling. The layer preview map defaults to a single tile, but I'm guessing your openlayers map uses tiling. Geoserver insists on labeling every tile. GeoServer doesn't know that each request is for a tile in a larger map, so it treats a tile as a complete map and dutifully applies a label to it. So basically, if a road ...


1

I think so, but I would check this guide for more information: http://geoserver.geo-solutions.it/edu/en/clustering/load_balancing/microsoft_IIS.html Personal note, expose them on port 80 rather than 8080. Many close environmente won't let people access a link with port different from 80. Simone.


0

What about file system permissions for your data directory? Is your servlet container like Tomcat or jetty able to read AND write files in the directory? I had the same error using linux. After correcting the permissions for that specific directory (chown -R tomcat7:tomcat ) everything was fine.


1

You cannot have different tomcats listening to the same port. Said that, it is good to have separated tomcats for big java apps, just because if one of them have problems like running out of memory, you can restart that app without having to bother the other app. Running out of memory is common for certain use cases on geoServer. So, it really depends on ...


1

The quickest way to do this is https://mangomap.com, you should be able to get the whole thing set up in about 10 minutes without writing a single line of code. I'm the CEO, just give me a ping on chris@mangomap.com if you have any questions.


-1

Ok, my assumptions in 2 were incorrect. You can use mapbox.js. The end result will be a bit different, I believe - the markers themselves will be a static raster layer, but they'll be clickable. The spec that makes large scale interactivity work is https://github.com/mapbox/utfgrid-spec It's implemented clientside in ...


0

I'm not sure this is the appropriate answer, but I wanted to point out that setting up the proxying in nginx is very easy. Let's say Geoserver is running on port 8080, and your web server (nginx) is running on port 80. It's as simple as adding: location /geoserver { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:8080; } to your ...


1

Already solved, Just edit and add new geoserver url in : ../suite/geoexplorer/app/template/composer.html add this custom geoserver : > customserver: { url: "http://yourcustomdomain/geoservernotinroot/wms", title: "yourservername" }, *Dont forget to set Declared SRS in each your geoserver ...


1

Install Java, Git, Ant and Maven are not enough, I've succeed build that geoexplorer.war by using some git url change. Use the branch 4.1 and build using "mvn install" don't forget to build dependencies first. I assume you have installed Git, Ant, JDK (NOT JRE!!), and Maven. Clone it, type this in youre command prompt (run it twice to make sure no file ...


0

Install Java, Git, Ant and Maven are not enough, I've succeed build that geoexplorer.war by using some git url change. Use the branch 4.1 and build using "mvn install" don't forget to build dependancies first. I assume you have installed Git, Ant, JDK (NOT JRE!!), and Maven. Clone it, type this in youre command prompt (run it twice to make sure no file ...


1

Your problem is that WFS 1.0.0 does not support reprojection of the coordinates. If you switch your request version to 1.1.0 then GeoServer will take your srs into account.


0

I have encountered your problem previously and I managed to fix it using this method which I hope works for you too. I added my file to ArcMap and, while the overlap is fine, I exported each layer, and in the export dialog I selected Use Same Coordinate System as the Data Frame. I then added the exported layers again to GeoServer.


0

Here is the way I do it. Two Base Layers, base and mq are defined and assigned in a global scope map.events.on({ "zoomend": function (e) { if (this.getZoom() < 9 ) { if (mq.visibility == false ) { mq.setVisibility(true); base.setVisibility(false); ...


2

The Docs Page for the OpenGeo Suite QGIS plugin , has a link titled Support, which leads to the Issue tracker on the github reprository. I suggest that you open a new Issue on the Issue Tracker for this Problem.


0

Possible options: .prj file Create a .prj file which contains the EPSG:4326 that GeoServer does recognise. You can get this from the Demos -> SRS List admin page. Name this .prj file the same as your shapefile and if necessary overwrite the one that exists. Force declared When adding the layer, set the "Declared SRS to 4326" and the SRS Handling to ...


1

If you have a table with a row for each combination of year and point ID, then you have a many-to-one relationship ... multiple rows (years) for each point. This is always a pain in GIS because you have can't visualize multiple related rows very easily. If you have few enough years you have to deal with, you can work around the problem by creating a column ...


0

I had a similar issue (java.lang.nullPointerException resulting in pink screen in layer preview), although I was not able to preview the layer at all. The cause was that the layer store was configured without a workspace. I was able to fix the problem by removing and rebuilding the layer store within a valid workspace. See this post from the Geoserver ...


1

I've got it working using: fonts: - 'C:\Geoserver_data_dir\printing\arial.ttf'


2

If you use geoserver's Shapefile Output on the WFS service, it doesn't matter what the source of the data was. It doesn't matter whether the data is coming from Shapefiles or PostGIS or something else. Let me try to provide answers to all your sub-questions. It doesn't matter about how big the table was, or how many features it contained, Geoserver can ...


2

When performing the attribute join in ArcMap, the joined information (that you can see in the attribute table) is stored within a map document (.mxd) file. In order to save joined fields in the new shapefile (so it will have fields for each year you need), you have to export the joined layer from the table of contents. The result shapefile exported on the ...


0

Try defining the resource first and pulling the layers from it: myResource = cat.get_resources(store='storeName', workspace='workspaceName') layers = cat.get_layers(myResource)


1

Could be - it would be useful if /geoserver/rest/layers returned the workspace qualified names, such as: <layer><name>mylayer</name><atom:link rel="alternate" href="http://localhost:8080/geoserver/rest/layers/WK1:mylayer.xml" type="application/xml"/></layer> <layer><name>mylayer</name><atom:link ...


0

Try using window.onload=function(){ init(); } instead of body onload=init(), because window.onload waits until all resources has loaded. Onload triggers when the html (without resources) has loaded.


0

By default, It will show both the polygons without any merging or averaging , and the result of GetFeatureInfo on the WMS service will return results from each of the polygons.


0

There was a 4.1 upgrade bug found that we are trying to address. Unfortunately I suggest you back up your existing configuration, uninstall previous versions and re-install 4.1.


0

You can use the same layer in different layer groups as long as (a) the layer group is global (ie not local to a workspace) or (b) the layer is in the same workspace as the layer groups.


0

You can store images in postgresql using the following function : create or replace function bytea_import(p_path text, p_result out bytea) language plpgsql as $$ declare l_oid oid; r record; begin p_result := ''; select lo_import(p_path) into l_oid; for r in ( select data from pg_largeobject where loid = ...



Top 50 recent answers are included