ERROR with shape file
Not sure if this is the correct forum but though I would give it a shot.I am new to this so please under my lack of knowledge. I built a shape file using SQL Spatical Query Visualizer based off a table...
View ArticleHow to pick the right Points to draw the Polygon
Hi,I need to draw a polygon with the Latitude and Longitude Points. I am getting all the points from SQL Server 2008 from the Table. How to pick the Border Points to draw polygon. Is there any method...
View ArticleExport a File of All Contiguous Polygons
I have a ZIP Code boundary file and would like to create a CSV file with all ZIPs and the adjacent (contiguous) ZIP codes to that ZIP in separate rows. For instance, if the 3 contiguous ZIPS to ZIP...
View ArticleSQL Server 2008 cannot load Microsoft.SqlServer.Types
Hi!After a restart of the database server, SQL Server 2008 cannot load Microsoft.SqlServer.Types any more.A simple querydeclare @pointgeometry=geometry::Point(10,10, 3006)select @pointGets this error...
View Article2012: STIntersects() not using spatial index
It looks like spatial indexes aren't considered when there's any kind of non-spatial predicate on the same table. Is this a known limitation? I've done some googling but haven't seen it mentioned on...
View ArticleSQLGeometryBuilder.AddLine(...) takes longer when adding more points
We have a few hundred thousand Polygons (zipcodes) with more than 4000 points in them. Adding the first few coordinates to a SqlGeometryBuilder seems quick, but adding more points it gets slower. It...
View ArticleUnable to set the Polygon in a regular manner
Hello everyone,I am able to create a Org chart kind report using the SSRS Spatial data using the Polygon & line layer but the Polygon boxes are placed in a irregular manner. Please see below scree...
View Articleshape2sql runs without error but no table was added to the db
I tried to use Shape2sql to load a federal land shape file ( fedlanp020.shp downloaded from http://www-atlas.usgs.gov/atlasftp.html#fedlanp) into a sql server 2008 express db. I tried a couple times,...
View ArticleHow to make spatial computations use more/all CPU power?
Hi,In an service I'm calculating spatial data (using Microsoft.SqlServer.Types) in memory. These calculations often take 4-5 minutes but they are never, ever, using more than 50% CPU. I have tried this...
View ArticleSQL server 2012 database advice older versions
We are switching to sql server 2012 for use with Geomedia, and would appreciate any suggestions.We would like changes to be reflected immediately, no problem there.We have maps that are based on...
View Article'geography::Point' failed because parameter 1 is not allowed to be null
I have the following query imbedded in an SSIS packageSELECT name, geography::Point(STR(Shape.EnvelopeCenter().Lat, 18, 9), STR(Shape.EnvelopeCenter().Long, 18, 9), 4326) AS SHAPE FROM PolygonLayerI...
View ArticleSqlGeography.STBuffer() bug
declare @g geography = geography::STGeomFromText('LINESTRING (45.000514 53.163967, 45.000086 53.164266, 45.000044 53.164336)', 4326) select @g.STBuffer(13.0).ToString()Result in SQL Server 2012...
View Articlecreate a polygon via SQL
I have an existing spatial/polygon table in my database. I want to join it to a view and load the join into a new spatial enabled polygon table. In case you are wondering the join is very slow. I am...
View ArticleSTExteriorRing of Multipolygon
I'm trying to get the outside shape of multipolygons. I've tried using ConvexHull but that returns a polygon with straight lines and I lose my border.Is there a way to get the outermost border for a...
View ArticlePoints in Polygon Query
Hi All - I have been looking at taking advantage of SQL Server 200* spatial toolset to do some points in a polygon join. Anyhow, I have large tables (~500K records) that I would need to query with...
View ArticleGeometry query help
Hi,I have 2 tables:CREATE TABLE AREA([ID] [int] IDENTITY(1,1) NOT NULL,[ZONENAME] [nvarchar](255) NULL,[geom] [geometry] NULL)GOCREATE TABLE TRIP([TRIP_ID] [int] NOT NULL,[DUE_TIME] [datetime]...
View ArticleGeography fields in SQL Server 2012
I have SQL Server 2012 running in 2012 mode.I run IIS 7.5 on Windows Server 2008.I use ASP.NET and after the login form, I issue a SQL select command which include the selection of a Geography field in...
View ArticleHow to pick the right Points to draw the Polygon
Hi,I need to draw a polygon with the Latitude and Longitude Points. I am getting all the points from SQL Server 2008 from the Table. How to pick the Border Points to draw polygon. Is there any method...
View ArticleHow to use neighborhood data in SQL Server?
I found some interesting neighborhood date which seems quite useful.http://www.zillow.com/howto/api/neighborhood-boundaries.htmI'm wondering how to consume this data in SQL Server. How can I do some...
View ArticleWKT STArea value is huge (looks like a bug)
Trying to get the area of the following polygon returns a huge value: 510064605194832.DECLARE @ggeography;SET @g=geography::STGeomFromText('POLYGON((-77.06771850585938...
View Article