Tag Info

Hot answers tagged

4

In line $polywrite = "<script>document.write(polygon)</script>" you are trying to use javascript code while it is imposible in php side. All php scripts run before javascript. You can use proj4php as mentioned in the comments. Another solution is to fill the polywrite variable at javascript side and create an Ajax request sending `polywrite' to a ...


3

It seems you try to persist your entity and its id remains null. That's why your get a constraint violation error. To simply solve this error I suggest you to try create your database table using auto-incrementation option on your SHAPE field. It should solve your problem, I guess. OR Reading the documentation on LAST_INSERT_ID() I would suggest that the ...


3

This is quick and dirty. Most of this was adapted from the following website: http://www.movable-type.co.uk/scripts/latlong.html I haven't tested this too much but it seemed to work after initial testing. It will return a list of lat, long coordinate pairs along a line at a specified interval. I wrote it in python since I don't know php very well. from ...


2

Yes, you can do it. Just render the HTML you need in the view and "inject" that code in the visualization infowindow template. For example: ... layer.infowindow.set('template', document.getElementById('infowindow_template')); ...


1

As mentioned by TsvGis, you'll probably need to embed the font in the document. You appear to be using reportlab for this, check the FAQ on their site, they have an example of how to embed fonts - section 2.6.2 Be aware that there might be licensing issues on some commercial fonts (they may not embed properly). If this is the case there are plenty of ...


1

If you have access to the Geocortex Site, then the easy way to consume your data is by using a Workflow to make the web request from the Geocortex Essentials server, which can then create a new Graphics Layer and add it to their map. If you don't, then making a WMS server is one option. However, it would be simpler to generate a GeoRSS feed of your points ...



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