Tag Info

Hot answers tagged

4

According to a recent comparison of different mapping engines in performing tile seeding (see Section 4.3), MapServer should be much faster than GeoServer. Is there any re-projection of geometries in your rendering stack? An old version of MapServer might have the same issue with proj4 lib as Mapnik had.


3

Definitely that's not an obvious way of loading a WMS. This is what have worked for me (QGIS v.2.8.1): urlWithParams = "url=http://maps.itu.edu.tr:8082/geoserver/sf/wms&format=image/png&layers=sfdem&styles=&crs=EPSG:26713" rlayer = QgsRasterLayer(urlWithParams, 'DEM', 'wms') rlayer.isValid() # Returns True this time ...


3

It's been added since 2.7.1. See release note here. Here the JIRA report. Simone.


2

"Normally" the bbox should be: left, bottom, right, top west, south, east, north minX, minY, maxX, maxY so I would try: bbox: [-1050091.8944356, 4675576.582525099, -990623.88643799, 4733515.8499572] PS: there is a nice BBOX-Cheatsheet: https://github.com/perrygeo/bbox-cheatsheet/blob/master/reference.md Even if OpenLayers/Geoserver is missing there I ...


2

While typing the question, I found out how to do it. However, sharing is caring ;-) Maybe this will be useful to somebody else one day. For escaping URLs when using cUrl to access the GeoServer REST API, special characters can be replaced with their respective ASCII codes, so that the problematic example above becomes: curl -v -u admin:geoserver -XDELETE ...


2

A new projection was introduced in GeoServer 2.2 to handle exactly this kind of situation: Better support for un-referenced data with the new EPSG:40400 code that identifies a coordinate system made up of a generic 2D Cartesian plane. Your data will be representated correctly, but it will not be possible to reference it relative to data in another ...


2

No, there is no REST based API for data manipulation, only for configuration. To modify vectors you should use WFS-T


2

Use QGIS and save your layer style as *.sld file. After this, load your *.sld file to the GeoServer and connect your .shp to the right style. you can also use multiply styles for one .shp.


1

You should be able to use the mul function (see Filter Expressions). So something like: <rotation> <mul> <literal>${obj_orientation}</literal> <literal>0.9</literal> </mul> </rotation>


1

Another option can be using User-friendly Desktop Internet GIS (uDig) which is JAVA based. I tested this software to create sld for geoserver. Source can be reached at here.


1

I have a project on Github (http://github.com/ianturton/ShapefileViewer) that does SLD generation from shapefile. It's in Java and based on GeoTools if that's any help.


1

Found this page where someone else had the same problem. Format image/gif does not support opacity. Changing my format to image/png solved the problem.


1

This is just a guess, but I assume, its about the distortion inherent to your Projection EPSG:3574 which is extremal because displaying the pole(s). I guess there's only data in your raster layer until around 85°N or something, and you are trying to display data further north. You could try a projection that is "closer" to EPSG:4326 and then also first ...


1

As far as I checked in code, the feature id (FID) should be put into SVG, but that possiblity is commented out :/ https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/java/org/geoserver/wms/svg/SVGWriter.java private void setUpWriterHandler(SimpleFeatureType featureType, boolean doCollect) throws IOException { if (doCollect) { ...


1

FYI, reproduced and fixed on master and 2.7.x: Fix for 2.7.x You should be able to get a new nightly tomorrow. For the time being I would suggest to download the corresponding netcdf plugin and take the cdm-4.5.5.jar from it.


1

Yes, as @juls says you can use a view to filter by ID (or other unique attribute). But really why would you?


1

To produce a rotation of ( the rot variable or 2 ) plus the value of the property mystyle you should use: mark-rotation: [env('rot',2)+mystyle]; To generate SLD that uses rot, followed by mystyle, or 2 you should use something like (and I haven't tested this). If it doesn't work you can check the syntax page: mystyle is null { mark-rotation: ...


1

Instead of manually looking up ASCII codes, try URL encoding the string. I don't know much about Curl, but I found a few posts that should help anyone else having this problem. This one deals with Unix/Linux and this one deals with the bash shell. In most languages, you should be able to find a way to URL encode the string and append it to your URL. This ...


1

This is caused by the WKT and GML standards using a different convention for separating pair of points and each coordinate of a point. GML uses comma to separate coordinates and space to separate pairs, eg, 52.52735668,12.71762844 52.52633816,12.71518035 whereas WKT uses the opposite, eg, 52.52735668 12.71762844, 52.52633816 12.71518035 You have a ...


1

INTERSECTS(geom, collectGeometries(queryCollection('topp:states', 'the_geom', 'STATE_ABBR=" + "'" + "'" + 'CA' + "'" + "'" + "')))


1

I will try to be as clear as possible, but I am not sure I understood everything that your are asking. You might want to edit your post with additional information or a concrete example and the version of Geoserver you are using. Problem 1: you have duplicate labels due to the tiling of your WMS request by OL -> solution: in Open Layer, request a single ...


1

You should read the full documentation before going into production, but the short answer is you change the format parameter of your WMS request to be format=mbtiles. If you need to produce a larger set of tiles then you probably want to explore the WPS mbtiles service.


1

Zoom-level depending mis-alignments are often caused by the OL client and the server having either slightly different zoom level definitions, or different maximum extent definitions. Try looking at the GWC preview (you can find it in the tile layers menu) and check its setup, then make sure your client does the same.


1

Those technologies are going to be fine to setup your base imagery and terrain, but your dynamic data will best served via CZML. You can setup CZML streaming to allow your data to be continually updated and it will allow you to group your objects for a much easier filtering of visible objects. https://github.com/AnalyticalGraphicsInc/cesium/wiki/CZML-Guide ...


1

I do not believe there is anything that for sure reveals that WFS server is GeoServer but with standard settings the schema location refers somehow to geoserver and some supported functions are special for GeoServer. However, others can implement functions using same names: ...


1

You can use Tilemill to create a cartocss style which you can then use with Mapnik (might need to convert to Mapnik XML). GeoServer supports SLD styles which you can create with many GIS tools, for example QGIS or OpenJUMP.


1

You have probably hit a side effect of heavy work what was done with GeoServer GetFeatureInfo to return info from what is exactly rendered on the map. With the style used in your map there is nothing rendered between the markers. You can have a try by adding a buffer vender parameter into your GetFeatureInfo request. The default value is 3, try to add ...


1

To get two labels you will need two textSymbolizers one for the start point and one for the end point. So it becomes: <TextSymbolizer> <Geometry> <ogc:Function name="endPoint"> <ogc:PropertyName>the_geom</ogc:PropertyName> </ogc:Function> </Geometry> <LabelPlacement> ...



Only top voted, non community-wiki answers of a minimum length are eligible